Hi,
Could anyone please tell me - How to get the following dynamically in code behind (i was able to set values for these ...)
1. RadGrid's each row height (Row height of each row in MasterTableView)
2. Height of MasterTableView .
Why I need this:
One column in my radgrid is description. It can grow to huge size. I cant parse and give tool tip as I need to print and export(it exports/prints only the data on the grid)
So I gave scrolling to grid even though pagination is there .
Since the description can grow and shrink the following code inside DataBound Event is also not working
if (gridItems < 4)
{
grid.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(gridItems * 28);
}
So I tried instead of hard coded "28", the following
if
(grid.MasterTableView.Height.Value >= 150)
{
grid.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(150);
}
else
{
grid.ClientSettings.Scrolling.ScrollHeight = grid.MasterTableView.Height;
}
But grid.MasterTableView.Height is always 0.0 :(