Jump to content


Photo

PageSize Extension for UniDBGrid

UniDBGrid PageSize Extension Plugin

  • Please log in to reply
22 replies to this topic

#21 multimesut

multimesut

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 73 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
  • 3463 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
  • 73 posts

Posted 20 June 2017 - 11:17 AM

Yes, This work. Thank you. :)


  • 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