I have implemented RadGrid in my project for displaying data. But facing one severe issue, when trying to post back or going to the next page, the pager control is shifting down. In order to fix Grid height and width according to the page height and width, i have implemented bellow java script in page load. But unfortunately after post back it is not working.
var grid, gridHeight;
gridHeight = document.documentElement.offsetHeight - 130;
grid = $find('<%= GridControl1.FindControl("RadGrid4").ClientID %>');
if(grid !== null){
contentPane.set_height(document.documentElement.offsetHeight - 90);
grid.get_element().style.height = gridHeight+ "px";
contentSplitter.repaint();
grid.repaint();
}
else{
contentPane.set_height(document.documentElement.offsetHeight - 75);
}
Kindly suggest, how to fix Grid height in post back so that pager control should not shift down or disappear.
Thanks in advance.
Dipak