Hi,
I am using a microsoft ajax tab container to display the tabs. I have six tabs inside that container. In each tab, I have a radgrid. The columns for the radgrid are built dynamically. I am loading the data for all the grids during page load. I have a javascript function to adjust the grid height and width. I included this javascript function in the gridcreated event. So, when the tab loads the grid is firing that javascript. But I am not able to get the mastertableview height. The height is returned as zero. I tried using the page_init event to load the grids but it still has the same problem (the height is returned as zero). Is there something that I am missing?
function AutoSize(sender, args)
{
var dataHeight = sender.get_masterTableView().get_element().clientHeight;
}
I am using a microsoft ajax tab container to display the tabs. I have six tabs inside that container. In each tab, I have a radgrid. The columns for the radgrid are built dynamically. I am loading the data for all the grids during page load. I have a javascript function to adjust the grid height and width. I included this javascript function in the gridcreated event. So, when the tab loads the grid is firing that javascript. But I am not able to get the mastertableview height. The height is returned as zero. I tried using the page_init event to load the grids but it still has the same problem (the height is returned as zero). Is there something that I am missing?
function AutoSize(sender, args)
{
var dataHeight = sender.get_masterTableView().get_element().clientHeight;
}