Chris Kulseth | 1 Mar 03:29 2010

New Page Call with XMLStore Loaded

I have a dojo DataGrid with a selectable row where I want to use a double click event to call up a different web page. The new web page has a dojo form in it that is fed from an XMLStore. How do I call up that web page and have the XMLStore loaded with parameters from the calling DataGrid selection?
 
Thanks.
 
Chris
 
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Jason Wang | 1 Mar 03:58 2010

No dropdown list in DataGrid when I use the "dojox.grid.cells.Select"


/********************************/
/**   My javascript is listed following   ****/
/********************************/

dojo.addOnLoad(function(){
	var storeGrid = new dojo.data.ItemFileWriteStore({
		url:"boxAsy.php?asy=gridlist0"
	});
	
	var layoutGrid = [{field: 'id',name: 'ID',width: '50px'},
	        {field: 'name',name: 'Book Name',width: '200px',cellType:
'dojox.grid.cells.Input',editable: true},
	        {field: 'year',name: 'Period Year',width: '120px',cellType:
'dojox.grid.cells.Input',editable: true},
		{field: 'month',name: 'Period Month',width: '120px',cellType:
'dojox.grid.cells.Input',editable: true},
		{field: 'confidential',name: 'Confidential',width: '120px',cellType:
'dojox.grid.cells.Select',options: ['B', 'C',''] ,editable: true}];
	var gridBox = new dojox.grid.DataGrid({
        query: {
            name: '*'
        },
        store: storeGrid,
        rowSelector: '20px',
        selectionMode: 'multiple',
        singleClickEdit: true,
        clientSort: true,
        structure: layoutGrid
    	},
    	document.createElement('div'));
    dojo.byId("gridContainer").appendChild(gridBox.domNode);
    gridBox.startup();
});

/******************************************************************************/
/** I want get a DataGrid with a field "confidential" could be selected with
three options ['B','C',''], 
/** but my problem is the DataGrid show me with a blank filed, I can input
any value in it.
/** Could anyone help me to troubleshooting it?
/** Thanks a lot for any help! http://n3.nabble.com/file/n421205/tmp.jpg 
/******************************************************************************/
--

-- 
View this message in context: http://n3.nabble.com/No-dropdown-list-in-DataGrid-when-I-use-the-dojox-grid-cells-Select-tp421205p421205.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Tully | 1 Mar 04:03 2010
Picon

Problem with 1.4.1 and APC with dojo.xhrPost


I have a problem with Dojo 1.4.1 using dojo.xhrPost on an PHP page that have
the APC-cache activated. 

I have handleAs json in my application.

Dojo errors out the JSON response when the APC-cache is enabled. If I
disable the cache in PHP.INI the response works fine in Dojo.

I have tried another PHP-cache called eAccelerator and it works fine with
Dojo. It only seems to be a problem with the APC-cache. As I understand it
must be some kind of json-format error that Dojo cannot handle. I have tried
making a similar call with JQuery Ajax using json format and it seems to
parse the response fine with APC-cache enabled. 

I want to use the APC accelerator and wonder if anybody knows about this
problem with Dojo failing to parse the json-response when I have APC-cache
enabled in my PHP server?
--

-- 
View this message in context: http://n3.nabble.com/Problem-with-1-4-1-and-APC-with-dojo-xhrPost-tp421212p421212.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Karl Tiedt | 1 Mar 04:10 2010
Picon

Re: Problem with 1.4.1 and APC with dojo.xhrPost

It would help to show us the difference in the data returned with APC
and eAccellerator.... otherwise we will just be guessing

-Karl Tiedt
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Wei CDL Huang | 1 Mar 04:38 2010
Picon

Re: Reg DOJOX Grid


Do you mean your Grid is rendering all 600 rows once the page get loaded(without any manual scrolling)? - this doesn't seem to be the native behavior of Grid

Normally Grid will only render several cached pages each time, there is an attribute "keepRows"(100 by default) - the maximum number of rows for rendering each time, based on "keepRows" and the total row count, Grid will calculate an internal attribute "keepPages" - the maximum number of pages for rendering each time. So I think your Grid should only render 2 pages(100 rows) at a time.

So to already render 1 page in your case(rowsPerpage = 50, total rows = 600), you may try - <div dojoType="dojox.grid.DataGrid" keepRows="50" rowsPerPage="50"...>

- Evan

>
Actually we get all the records at one shot. So if there are 600 > records, we get all the 600 records. > (We don't want to do the typical pagination going to server for every X > records.) > In the UI we want to display only Top X records. Lets take X = 50 as an > example. > So the UI would show only 50 records in the DOJOX Grid. (We then provide > client side filtering to make other records come into the 50 record > view/window.) > > We set rowsPerPage and rowCount attribute as 50, and everything works > fine. > > However we noticed that there is a slight delay in rendering. Once the > 600 records are fetched, we expected it would take very less time to > render the first 50 rows. > But we found out that, the Grid loads 50 at a time 12 times (600/15 = 12 > pages). The onFetchComplete gets called for every 50 records. So it gets > called 12 times. > > Is there anyway to make it get called just once even though the store > has 600 records. > > Is there a way to say maxPageToRender = 1 for Grid so that the Grid just > renders one page and stops even though there are 11 more pages in the > store. (in this example) > > Thanks > ?Kiran
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Tully | 1 Mar 04:59 2010
Picon

Re: Problem with 1.4.1 and APC with dojo.xhrPost


I actually examined the response with APC and without APC and found that it
contained an added application message at the end that was not in json
format, that is why dojo gave an error parsing the data.

So the problem was in the PHP framework I am using after all and I found the
solution as well from this page:
http://stackoverflow.com/questions/1364750/opcode-apc-xcache-zend-doctrine-and-autoloaders

--

-- 
View this message in context: http://n3.nabble.com/Problem-with-1-4-1-and-APC-with-dojo-xhrPost-tp421212p421262.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Karthik.k | 1 Mar 05:49 2010
Picon

Re: remove old content pane ?


Hi guys 
Thanks for the support

I just found myself what the problem is but not able to rectify
I have three pane (Left,Center,Right)

From Left pane one url will come and that url will be sent to the center
pane
So my problem is that when i click on the center pane border i am able to
view the the data 
But not able to view concurrently when url is changed  

Below is in the center pane 

 var pane = dijit.byId("tempPane");    
                   if(pane)
               {
                      alert("if");      
                pane.attr('href', url);      
                pane.startup();
               }else{
               alert("else");
                new dijit.layout.ContentPane({
              id: 'tempPane',
              href:url,
	      	refreshOnShow:true
              }).placeAt('contentPane').startup();    
               } 

Please guide me

Karthik.K
--

-- 
View this message in context: http://n3.nabble.com/remove-old-content-pane-tp417034p421331.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Karl Tiedt | 1 Mar 05:57 2010
Picon

Re: Problem with 1.4.1 and APC with dojo.xhrPost

Awesome, thanks for posting a followup on your findings :)

-Karl Tiedt
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

SteveF2 | 1 Mar 06:02 2010
Picon

Add a CSS class to an EnhancedGrid cell


I am very new to dojo and I would appreciate any help with the following:

I have a formatter and based upon the value of a different cell, I want to
add a CSS class to the cell related to the formatter.  I have seen other
postings similar to this, nothing that seems to work.  I know I can do
something with the customStyles, but I want to do the same thing by adding a
CSS class to the current cell.  I tried this.customClasses.push but that
didn't seem to work.  

	    function jeNumberFormatter(cellValue, rowIndex)
	    {
			hasDocs = grid.store.getValue(grid.getItem(rowIndex), "HAS_DOCS");
			if (hasDocs == true)
			{
           		          
this.customStyles.push("background-color:#990033;color: white");
			}
			return cellValue;
	    }

--

-- 
View this message in context: http://n3.nabble.com/Add-a-CSS-class-to-an-EnhancedGrid-cell-tp421335p421335.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Jean-Rubin Leonard | 1 Mar 08:05 2010
Picon

disabling hidden form widgets

Hi all,
I have a form on which some div that contain widgets are hidden because they are not necessary, depending on the choices users make. Now these divs have their display attribute set to none. I am told that they would still be submitted. Could anyone tell me what the proper way would be to identify those widgets (textboxes, datetextbox , checkboxes) that are part of those hidden divs so I disable them? What I'm trying to do is not have them submitted nor validated.

Thanks in advance,
JR

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Gmane