PDA

View Full Version : Problem with a grid



Xcar
26 Sep 2007, 2:33 PM
Hi , There is my problem ..
I have a grid load some data the first time i enter to the page ..
this grid paging OK all the data ..
and show correctly the count of pages ..

later al filter int the side of server this way >


ds.load({params:{
start : 0,
limit : 200,
lempresa : empresa,
lmarca : marca,
llinea : linea,
lcolor : color,
lcodigo : codigo,
ltiposervicio :tiposervicio,
lpedido : pedido,
ldespacho :despacho,
lconcesionario : concesionario,
lbanco : banco,
lanno : annomodelo,
lestadovehiculo :estadovehiculo}});

and this code filter the data show in the grid correcty and show the count the pages ok ...

But when a go to the page 2 the load all data again .. the grid show the same data when a enter to the page for first time ...

I really need somebody help in tthis problem ...

evant
26 Sep 2007, 4:56 PM
On the server side, you need to return the correct data for the page. So your query needs to get the appropriate rows using LIMIT or some other SQL construct.

Xcar
27 Sep 2007, 5:10 AM
the problem no is the query i look the query execute correctly the problem is when a go to the page two o when i change the page ... the grid change the the datastore ..

Tony Mariella
27 Sep 2007, 5:41 AM
The post sends a start parameter and a limit parameter to the server. You have to step through the data on the server side and only send the records from start to start+limit.

Xcar
27 Sep 2007, 7:00 AM
hi ,
There is my problem .
I have a grid that load 5000 rows int page size of 200 rows but the time of load data for page is aprox.. 15 seg is to long time , somebody can tell a way to load more fast ..
for example the protein database show in forum ext ...

thank for you help

tryanDLS
28 Sep 2007, 9:35 AM
hi ,
There is my problem .
I have a grid that load 5000 rows int page size of 200 rows but the time of load data for page is aprox.. 15 seg is to long time , somebody can tell a way to load more fast ..
for example the protein database show in forum ext ...

thank for you help
Please do not hijack threads to repost a question from another thread - see the responses in your original thread.