I'm setting the width of my radgrid and the scrollarea height as a percentage of the window size like so:
I've then got the below clientsettings
The frozen columns aren't frozen.
Yet if I set the width of the grid as a property in the <Telerik:RadGrid tag instead of by javascript the frozen columns stay frozen as expected.
Do you have any idea why this might be happening?
Thanks
function GridCreated(sender, args) {
var scrollArea = sender.GridDataDiv;
var gridHeader = sender.GridHeaderDiv;
scrollArea.style.height = $telerik.$(window).height() / 2 - gridHeader.clientHeight + "px";
sender.get_element().style.width = ($telerik.$(window).height() * .85) +
"px";
}
I've then got the below clientsettings
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"true"
FrozenColumnsCount
=
"2"
/>
<
ClientEvents
OnGridCreated
=
"GridCreated"
/>
</
ClientSettings
>
The frozen columns aren't frozen.
Yet if I set the width of the grid as a property in the <Telerik:RadGrid tag instead of by javascript the frozen columns stay frozen as expected.
Do you have any idea why this might be happening?
Thanks