aristeo Posted January 31, 2018 Share Posted January 31, 2018 Is there any way to change the TUniDBGrid title height? Link to comment Share on other sites More sharing options...
Sherzod Posted February 1, 2018 Share Posted February 1, 2018 Hi, Can you try to use this config ?!: UniDBGrid -> ClientEvents -> UniEvents -> function beforeInit: function beforeInit(sender, config) { config.header = { height: 100 }; } Best regards, Link to comment Share on other sites More sharing options...
mehamada Posted January 29, 2019 Share Posted January 29, 2019 this will increase the height of the header not the height of the title Link to comment Share on other sites More sharing options...
Sherzod Posted January 29, 2019 Share Posted January 29, 2019 3 minutes ago, mehamada said: this will increase the height of the header not the height of the title Hello, Can you please explain what do you mean? Link to comment Share on other sites More sharing options...
mehamada Posted January 29, 2019 Share Posted January 29, 2019 i mean how to increase the first row of the gird (title) height size as example in dbgrideh dbgrideh1.title.rowheight = 24; not the header panel of the grid, your solution will only set the height of the header panel Link to comment Share on other sites More sharing options...
Sherzod Posted January 29, 2019 Share Posted January 29, 2019 9 minutes ago, mehamada said: i mean how to increase the first row of the gird (title) height size Without changing the Font Style ? Link to comment Share on other sites More sharing options...
mehamada Posted January 29, 2019 Share Posted January 29, 2019 2 minutes ago, Sherzod said: Without changing the Font Style ? font style changed to [bold, size=16] Link to comment Share on other sites More sharing options...
Sherzod Posted January 29, 2019 Share Posted January 29, 2019 7 minutes ago, mehamada said: font style changed to [bold, size=16] This post may help you: Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Share Posted May 10, 2021 On 1/29/2019 at 2:44 PM, mehamada said: i mean how to increase the first row of the gird (title) height size as example in dbgrideh dbgrideh1.title.rowheight = 24; not the header panel of the grid, your solution will only set the height of the header panel all of this is valid for dgrid. none of them did stringgrid. please try heigh of ColumnTitles for unistringgrid so you will see the problem Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2021 Share Posted May 10, 2021 27 minutes ago, Bektas said: all of this is valid for dgrid. none of them did stringgrid. please try heigh of ColumnTitles for unistringgrid so you will see the problem Hello, Try this approach: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns[0].setHeight(100); } Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Share Posted May 10, 2021 3 minutes ago, Sherzod said: Hello, Try this approach: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns[0].setHeight(100); } it is working but it is not working with small values . pls try columns[0].setHeight(10) Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2021 Share Posted May 10, 2021 10 minutes ago, Bektas said: it is working but it is not working with small values . pls try columns[0].setHeight(10) function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { sender.getColumnManager().headerCt.setHeight(10); if (sender.normalGrid) { sender.normalGrid.getColumnManager().headerCt.setHeight(10) } } 1 Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Share Posted May 10, 2021 you are wonderfull . it is ok. thanks a lot. 1 Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Share Posted May 10, 2021 35 minutes ago, Bektas said: you are wonderfull . it is ok. thanks a lot. nice in sight it is ok, but it doesn't work when I change size a column . so the problem is continue... pls try you will also see the problem . Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2021 Share Posted May 10, 2021 8 minutes ago, Bektas said: nice in sight, but it doesn't work when I change size a column . so the problem is continue... pls try you will also see the problem . Sorry for the hasty solution. Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2021 Share Posted May 10, 2021 One possible solution again... function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { //sender.getColumnManager().headerCt.setHeight(10); //if (sender.normalGrid) { // sender.normalGrid.getColumnManager().headerCt.setHeight(10) //} columns.forEach(function(col){col.titleEl.setHeight(10)}); sender.updateLayout(); } 1 Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Share Posted May 10, 2021 2 minutes ago, Sherzod said: Sorry for the hasty solution. It is ok . thanks with 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