Jump to content

About UniDBGrid row number


loQsoft

Recommended Posts

I have a problem with line numbers in uniDBGrid!
As can be seen in the figures below,
uniDBGrid page 2
line numbers start again at 1
What would be the reason ?
How can I solve it?
Thanks in advance for your support and help.
Kind regards,

Delphi 10.2

UniGuiVersion : 1.90.0.1550

 

2021-10-29_14-08-31.png.0e0aa5e4bf2b8dfe3f6787edb2e51fac.png2021-10-29_14-08-45.png.015ab19423fe186bd2cdc007a8195eb0.png2021-10-29_14-11-42.png.b0ff50d46d089a59f16a78f03b2c2f9f.png

 

Link to comment
Share on other sites

Hello @Serzod

Thanks for the answer

it is demo from   \FMSoft\Framework\uniGUI\Demos\Desktop\GridGroupingSorting

and please make UniDBGrid -> Options -> dgRowNumbers = True

and you will see line numbers

Thanks again

Best Regards,

Page1.PNG.2bb7a6d63bfa84ce43148940fee3f4c7.PNG

 

Page2.PNG.778f9814e62a1304f86e94a0bb85087e.PNG

 

Page3.PNG.7661a5de39eacea4ec9cbc8928b957ae.PNG

 

Page4.PNG.c058db4a5650bd366f3698a23638de2f.PNG

 

Link to comment
Share on other sites

13 hours ago, loQsoft said:

it is demo from   \FMSoft\Framework\uniGUI\Demos\Desktop\GridGroupingSorting

and please make UniDBGrid -> Options -> dgRowNumbers = True

and you will see line numbers

Yes. You are right.

It was an ExtJS bug. It seems still hasn't been fixed.

https://forum.sencha.com/forum/showthread.php?305781-Wrong-numbers-in-RowNumberer-in-paged-Grid-with-Grouping-Feature

Link to comment
Share on other sites

14 hours ago, loQsoft said:

and you will see line numbers

Workaround.

MainForm -> Script:

Ext.override(Ext.grid.column.RowNumberer, {
    defaultRenderer: function(value, metaData, record, rowIdx, colIdx, dataSource, view) {
        var newDataSource = dataSource.isFeatureStore ? dataSource.store : dataSource;

        return this.callParent([value, metaData, record, rowIdx, colIdx, newDataSource, view]);
    }
});

 

  • Like 2
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...