Hi.
I am using this JS function on the client to resize the columns in a RadGrid located on a RadMultiPage. It works on FireFox as long as the Grid is "visible" i.e. in the active tab. If I do a post back from another Tab and then change back to the tab containing the Grid the MasterTableView has lost its width and the columns/headers are rendered inside the 0 px MasterTableView so they are not visible but they are there if i look at the html.
It works great on Chrome and IE but not on Firefox. Any ideas?
function ResizeGrid() {
var grid = $find("<%= RadGrid1.ClientID %>");
var masterTableView = grid.get_masterTableView();
if (masterTableView) {
var columns = masterTableView.get_columns();
for (var i = 0; i < columns.length; i++) {
columns[i].resizeToFit();
}
}
}
BR
Johan
I am using this JS function on the client to resize the columns in a RadGrid located on a RadMultiPage. It works on FireFox as long as the Grid is "visible" i.e. in the active tab. If I do a post back from another Tab and then change back to the tab containing the Grid the MasterTableView has lost its width and the columns/headers are rendered inside the 0 px MasterTableView so they are not visible but they are there if i look at the html.
It works great on Chrome and IE but not on Firefox. Any ideas?
function ResizeGrid() {
var grid = $find("<%= RadGrid1.ClientID %>");
var masterTableView = grid.get_masterTableView();
if (masterTableView) {
var columns = masterTableView.get_columns();
for (var i = 0; i < columns.length; i++) {
columns[i].resizeToFit();
}
}
}
BR
Johan