jahlxx Posted March 20, 2018 Share Posted March 20, 2018 Hi. when dbgrid is paged, (Sender as TUniDBGrid).DataSource.DataSet.RecNo allways returns the first row number of current page. how to get the correct value? This not happens with previous version of extjs. Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 20, 2018 Share Posted March 20, 2018 Hi, when dbgrid is paged, (Sender as TUniDBGrid).DataSource.DataSet.RecNo allways returns the first row number of current page. Where do you use this code ? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted March 20, 2018 Author Share Posted March 20, 2018 dbgrid onkeydown Enviado desde mi SM-A500FU mediante Tapatalk Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 20, 2018 Share Posted March 20, 2018 Can you make a simple testcase for this ?! Quote Link to comment Share on other sites More sharing options...
jahlxx Posted March 20, 2018 Author Share Posted March 20, 2018 difficult. if based in this code from tou, DD: (see: http://forums.unigui.com/index.php?/topic/7283-dbgrid-scroll/) in on keydown: if (Key = VK_DOWN)and((Sender as TUniDBGrid).WebOptions.Paged) then begin if ((Sender as TUniDBGrid).DataSource.DataSet.RecNo mod (Sender as TUniDBGrid).WebOptions.PageSize) = 0 then (Sender as TUniDBGrid).DataSource.DataSet.Next end; if (Key = VK_UP)and((Sender as TUniDBGrid).WebOptions.Paged) then begin if (((Sender as TUniDBGrid).DataSource.DataSet.RecNo - 1) mod (Sender as TUniDBGrid).WebOptions.PageSize) = 0 then (Sender as TUniDBGrid).DataSource.DataSet.Prior end; grid is peged, and 25 rows per page. and Sender as TUniDBGrid).DataSource.DataSet.RecNo is allways 1 (in 1st. page), allways 26 (in 2nd. page), and so on. is enough for you? thanks. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted March 23, 2018 Author Share Posted March 23, 2018 any answer? thanks. Enviado desde mi SM-A500FU mediante Tapatalk Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 23, 2018 Share Posted March 23, 2018 Hi, difficult. grid is peged, and 25 rows per page. and Sender as TUniDBGrid).DataSource.DataSet.RecNo is allways 1 (in 1st. page), allways 26 (in 2nd. page), and so on. is enough for you? thanks. I'm sorry, unfortunately no, please try to make a testcase for this issue Best regards, Quote Link to comment Share on other sites More sharing options...
jahlxx Posted March 25, 2018 Author Share Posted March 25, 2018 ok. here is. based in one of the demos. thanks test1.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 25, 2018 Share Posted March 25, 2018 In which conditions do you have problems ? if (key = VK_xxx) Quote Link to comment Share on other sites More sharing options...
jahlxx Posted March 25, 2018 Author Share Posted March 25, 2018 down and up Enviado desde mi SM-A500FU mediante Tapatalk Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 25, 2018 Share Posted March 25, 2018 down and up Enviado desde mi SM-A500FU mediante Tapatalk I'm analyzing Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 25, 2018 Administrators Share Posted March 25, 2018 I'm analyzingIf you can reproduce this please report to support portal. Sent from my SM-N950F using Tapatalk Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 26, 2018 Administrators Share Posted March 26, 2018 I'm looking into issue! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.