Jump to content


Photo

PageSize Extension for UniDBGrid

UniDBGrid PageSize Extension Plugin

  • Please log in to reply
26 replies to this topic

#21 multimesut

multimesut

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 90 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
  • 5312 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
  • 90 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

#25 delagoutte

delagoutte

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 364 posts

Posted 07 August 2018 - 03:28 PM

for info : the plugin don't work with extjs 6


  • 0

#26 delagoutte

delagoutte

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 364 posts

Posted 07 August 2018 - 06:27 PM

for extjs 6 change

        	ptStore.pageSize = value[0].data.field1;

by

        	ptStore.pageSize = value.data.field1;

  • 0

#27 delagoutte

delagoutte

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 364 posts

Posted 07 August 2018 - 06:30 PM

An other problem :

if you use the combo box for changing pagesize it seems that it is changed only on client side. If you change datasource on server(on applying filter for exemple), it used the value that is in weboptions.pagesize and not the value that is in combo.

 

How can we change value on serverside when we change on client side ?


  • 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