loQsoft Posted October 29, 2021 Share Posted October 29, 2021 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 Link to comment Share on other sites More sharing options...
Sherzod Posted October 29, 2021 Share Posted October 29, 2021 51 minutes ago, loQsoft said: I have a problem with line numbers in uniDBGrid! Hello, Are you using this option? UniDBGrid -> Options -> dgRowNumbers = True Link to comment Share on other sites More sharing options...
loQsoft Posted October 29, 2021 Author Share Posted October 29, 2021 Hello @Sherzod Yes of course, UniDBGrid -> Options -> dgRowNumbers = True and you can see Grid options parameter at the pictures on my first post Best Regards, Link to comment Share on other sites More sharing options...
Sherzod Posted October 29, 2021 Share Posted October 29, 2021 1 hour ago, loQsoft said: Yes of course, UniDBGrid -> Options -> dgRowNumbers = True and you can see Grid options parameter at the pictures on my first post Hmm, can you make a simple testcase to reproduce? Link to comment Share on other sites More sharing options...
loQsoft Posted October 29, 2021 Author Share Posted October 29, 2021 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, Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2021 Share Posted October 30, 2021 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 More sharing options...
Sherzod Posted October 30, 2021 Share Posted October 30, 2021 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]); } }); 2 Link to comment Share on other sites More sharing options...
loQsoft Posted October 30, 2021 Author Share Posted October 30, 2021 Thank you very much Sherzod it works perfect Best regards, 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now