Jump to content


Photo

PageSize Extension for UniDBGrid

UniDBGrid PageSize Extension Plugin

  • Please log in to reply
23 replies to this topic

#21 multimesut

multimesut

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 85 posts

Posted 20 June 2017 - 09:31 AM

no. I will add it here. To do automatic all grid. (TMSTUniDBGrid.pas)

Procedure TMSTUniDBGrid.Loaded;
begin
  inherited;
  JSAddListener('store.beforeload',
      JSFunction('store, operation, eOpts',  'if (operation.params) {operation.params.limit = operation.limit;}')
   );
end;

  • 0

#22 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4968 posts

Posted 20 June 2017 - 11:09 AM

Can you try this ?!:

JSAddListener('beforeload', JSFunction('store, operation, eOpts', 'if (operation.params) {operation.params.limit = operation.limit;}'), DataStore);

  • 0

#23 multimesut

multimesut

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 85 posts

Posted 20 June 2017 - 11:17 AM

Yes, This work. Thank you. :)


  • 0

#24 Juugii

Juugii

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 24 April 2018 - 12:28 AM

i do unidbgrid runtime pagesized use PagingToolbarResizer.js

my data total record 180
first grid create weboptions page size 25
i runtime mode change page size to 100 then
i edit first page last row edit post but select cursor move other row two page first
why post data changed row select cursor? Help me


  • 0





Also tagged with one or more of these keywords: UniDBGrid, PageSize, Extension, Plugin

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users