Jump to content

Change TUniDBGrid title height?


aristeo

Recommended Posts

  • 11 months later...
  • 2 years later...
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

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

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

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)
    }
}

 

  • Like 1
Link to comment
Share on other sites

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

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();
}

 

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