Jump to content

PageSize Extension for UniDBGrid


Recommended Posts

On 8/17/2019 at 11:08 PM, eduardosuruagy said:

If you test the example in chrome you will see that when you resize the column it automatically increases in size. In firefox this does not happen!

The issue was resolved as follows:

    ...
    dbgrid_cadastro2.JSInterface.JSCode(#1'.columnManager.columns[0].setMaxHeight('#1'.columnManager.columns[0].getHeight());'); //<-----
    BtnFiltro.Tag := 1;
  end
  else if BtnFiltro.Tag = 1 then
    ...

 

Link to comment
Share on other sites

  • 5 months later...

Hi,

I have a problem. After changing the number of records per page, for example to 50, after modifying record number 48, the grid is positioned in record 23, that is 48-25 = 23. Also, if I refresh on the dataset, I shows 25 records per page again, until the page changes.

Regards

Link to comment
Share on other sites

On 1/24/2020 at 11:55 PM, lcolombo said:

I have a problem. After changing the number of records per page, for example to 50, after modifying record number 48, the grid is positioned in record 23, that is 48-25 = 23. Also, if I refresh on the dataset, I shows 25 records per page again, until the page changes.

Hi,

Which build are you using? Can you make a simple testcase for check?

Link to comment
Share on other sites

1 hour ago, lcolombo said:

Do you have any news about it?

Yes.

1. 

type
  TExUniCustomDBGrid = class(TUniCustomDBGrid)

  end;

2. 

procedure TMainForm.dbg1AjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
  if EventName = 'setLimit' then
    TExUniCustomDBGrid(Sender as TUniDBGrid).RowLimit := Params.Values['limit'].ToInteger;
  
end;

3.

function store.load(sender, records, successful, operation, eOpts)
{
    if (this.lastOptions.limit) {
        ajaxRequest(this.grid, 'setLimit', ['limit=' + this.lastOptions.limit]);
    }
}

 

Link to comment
Share on other sites

  • 4 weeks later...
On 2/3/2020 at 3:29 PM, Sherzod said:

Yes.

1. 


type
  TExUniCustomDBGrid = class(TUniCustomDBGrid)

  end;

2. 


procedure TMainForm.dbg1AjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
  if EventName = 'setLimit' then
    TExUniCustomDBGrid(Sender as TUniDBGrid).RowLimit := Params.Values['limit'].ToInteger;
  
end;

 

Cannot access protected symbol TUniCustomDBGrid.RowLimit

3.


function store.load(sender, records, successful, operation, eOpts)
{
    if (this.lastOptions.limit) {
        ajaxRequest(this.grid, 'setLimit', ['limit=' + this.lastOptions.limit]);
    }
}

 

 

Link to comment
Share on other sites

Just now, Sherzod said:

Can you check on the latest build?

My license goes up to that version.
I did not receive the promised licensing time increase.
I checked the log and found nothing related to that version afterwards that could indicate something non-functional in this sense.
You can verify ?

Link to comment
Share on other sites

  • 1 year later...
On 1/27/2020 at 11:32 PM, lcolombo said:

Hi, 

I'm using Unigui Version:1.90.0 build 1514 and I'm testing with the file attached to this post (http://forums.unigui.com/index.php?/topic/4210-pagesize-extension-for-unidbgrid/&do=findComment&comment=63430)

http://forums.unigui.com/applications/core/interface/file/attachment.php?id=6620 7.73 kB · 48 downloads

Regards,

 

This example works for me, thank you! 1551 version.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...