Jump to content

Recommended Posts

  • Replies 95
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hi All!    PageSize Extension for UniDBGrid:     How to use?   1. Download the file from here https://github.com/loiane/extjs4-ux-paging-toolbar-resizer/blob/master/ux/PagingToolbarResizer.js

Replace:    sender.pagingBar.hide();     sender.pagingBar.border = "0 none";        sender.pagingBar.destroy(); With  sender.removeDocked(sender.pagingBar, true);

Example the latest version uniGui. Serverside its worked. https://github.com/marlonnardi/extjs-ux-paging-toolbar-resizer/blob/master/ux/PagingToolbarResizer.js   function beforerender(sen

Posted Images

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 post
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 post
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 post
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 post
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 post
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 post
Share on other sites

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