Hi guys, i try to implement the "resizeToFit" javascript method so that i have all my columns automaticly resize at the right size but i have the javascript performance warning all the time (A script on this page is causing Internet Explorer to run slowly,....) and then user have to click No dont stop running that script,
I think my problem is releated to the faq that i have 93 columns in my grid... cause i only have around 50 rows and i am also having a performance issue using the FrozenColumnsCount feature, there's a lag when im doing a vertival scolling
JS Method :
function pageLoad()
{
var grid = $find('<%=MyGrid.ClientID %>');
var columns = grid.get_masterTableView().get_columns();
for (var i = 0; i < columns.length; i++) //
{
columns[i].resizeToFit();
}
}
RadGrid Property :
<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
Anybody have an idea ?
Thanks
Dany
I think my problem is releated to the faq that i have 93 columns in my grid... cause i only have around 50 rows and i am also having a performance issue using the FrozenColumnsCount feature, there's a lag when im doing a vertival scolling
JS Method :
function pageLoad()
{
var grid = $find('<%=MyGrid.ClientID %>');
var columns = grid.get_masterTableView().get_columns();
for (var i = 0; i < columns.length; i++) //
{
columns[i].resizeToFit();
}
}
RadGrid Property :
<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
Anybody have an idea ?
Thanks
Dany