Sure
I think I can shift it in
where do I get the specific release? sorry about that.
Hi.
I have a different approach because my application is for an intranet I just used there Ip and point it to a temp table, the table is manipulated by ajax. if the table with the ip is empty then the grid is empty
but may be you can use the one below although I havent tested the “setUrl” yet.
on your grid set the ff.
-> url: ‘server.php?mode=blank’;
then just change the url via setUrl before calling the ff
-> .triger(“reloadGrid”);
Hope this help.
tony,
i think that would be great. -> afterInsertRow(rowid)
and you can also add an optional flag to the grid like
-> editRowOnLoad: true; //false default
this way the grid will parse the editoptions in the colModel and load it automatically
what do you think?
Thanks for the reply tony.
but to be more specific my code and scenario goes something like you say.
loadComplete: function()
{
jQuery(‘#drlist tr’).hide()
if( $(‘#s_toolbar’).get(0).style.display != “none”)
jQuery.each( $(‘#drlist tr’),
function(i,val)
{ if (i === 0) return;
jQuery(“#drlist”).editRow(i,false);
}
)
jQuery(‘#drlist tr’).show()
}
–>
It acctually works well, but having a Query Large Query or even just a 50 rows comming from a 5 second query form a seperate server, clientside loading will fell the pain. once your grid load this (which means you already iterate through the 50rows by displaying, I will then reiterate through the rows to individualy sets its edit option by the “editRow” function. this somewhat doubles the loading time.
As you can see the code “jQuery(‘#drlist tr’).hide()/show” I hidden the Rows so the the user will not see the rows being populated with edit option by the loop.
–>
–>
1. your php query the record;
2. your php will loop through the record place it in a variable;
3. php then encode this variable as json data;
4. your grid will loop through the Json Data for loading;
5. loadComplete “editRow” will loop to make all rows editable
is there a way to minimized this process to save some seconds for the user. is there a way or can there be a way to just set a flag to the Grid itselft like “editRowOnload=true”, then grid plugin itself will parse the edit option while it is loading the each row. that way the loading time and edit row loop will be cut by half. before loadComplete is fire.
thanks
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top