Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michal on Jan 05, 2010 15:02
open dhtmlx forum
grid+smart rendering+post

I have a grid with potentially many lines. Therefore I want to use smart rendering.
On the other hand, I can get the data from the server only by using POST (and not GET), as I need to post the server a string that is much longer than the permitted length of the URL.
How can I do this?
Is there a way to combine grid smart rendering and dhtmlxajax?

Thanks, Michal
Answer posted by Stanislav (support) on Jan 06, 2010 01:46
>> with potentially many lines
If you awaits about 1-2k of rows, you can use statis srnd mode ( when all data loaded at once ) , grid will be fast enough. 


>>Is there a way to combine grid smart rendering and dhtmlxajax?
The next code can be use

grid.attachEvnet("onDynXLS",function(pos,count){
       dhtmlxAjax.post("some.php?pos="+pos+"&count="+count,"some=value");  //or any other similar code
       return false;
})