How to change the grid height dynamically without scrollbars in it
Hi Everybody,
I am having an issue. i.e., I am using the pagination with grid control.I mean, when i select say 50 in my combo(pagination), i need to set the height of grid accordingly.Similarly, when i select say 100 in my combo(pagination) the grid has to increase accordingly.
I tried with the logic as,
var rowHeight = obj.getRowHeight();
var records; (getting from my db(mysql) )
gridHeight = rowHeight * records;
if(records >=50)
obj.setControlSize(x,y); // where x is some int value & y is gridHeight.
This code is working fine to display for 40 rows.If it is more, then the grid height is increased accordingly but all rows are not displayed.
Note: I dont want to display the scrollbars in the grid.
Can anyone help me out. Thanks in advance.
I am having an issue. i.e., I am using the pagination with grid control.I mean, when i select say 50 in my combo(pagination), i need to set the height of grid accordingly.Similarly, when i select say 100 in my combo(pagination) the grid has to increase accordingly.
I tried with the logic as,
var rowHeight = obj.getRowHeight();
var records; (getting from my db(mysql) )
gridHeight = rowHeight * records;
if(records >=50)
obj.setControlSize(x,y); // where x is some int value & y is gridHeight.
This code is working fine to display for 40 rows.If it is more, then the grid height is increased accordingly but all rows are not displayed.
Note: I dont want to display the scrollbars in the grid.
Can anyone help me out. Thanks in advance.
Nag.
February 28,