Jump to content

unidbgrid extjs 6.5 recno


jahlxx

Recommended Posts

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.

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...