Jump to content

Recommended Posts

Posted
22 minutes ago, Sherzod said:

For all filter editors:

LayoutConfig -> Width = calc(100% - 5px)

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!

Posted
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
    ...

 

  • 5 months later...
Posted

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

Posted
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?

Posted
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]);
    }
}

 

  • 4 weeks later...
Posted
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]);
    }
}

 

 

Posted
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 ?

  • 1 year later...
Posted
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.

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...