This is a migrated thread and some comments may be shown as answers.

Overriding Defaults.skin UseStaticHeaders setting(RadGrid ClientSettings ) at Grid-level Not Working as Expected

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karrie
Top achievements
Rank 1
Karrie asked on 11 Apr 2013, 05:34 PM



Objective :
Have all RadGrids in a project default to UseStaticHeaders='True' while allowing certain RadGrids to individually override that ClientSettings Scrolling property to false ( UseStaticHeaders='False')


What's Actually Happening (the problem) :
Setting UseStaticHeaders='False' at the RadGrid level is not overriding the default 'True' setting.  When we set up an individual RadGrid with UseStaticHeaders='False' the setting doesn't stick & the page containing the control still renders with UseStaticHeaders='True'



The Setup:
The Default.skin file looks like this : 
<telerik:RadGrid runat="server" >
    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom"></HeaderStyle>
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
    <AlternatingItemStyle HorizontalAlign="Left" VerticalAlign="Top"></AlternatingItemStyle>
    <ClientSettings EnableRowHoverStyle="True">
        <Scrolling AllowScroll="True" SaveScrollPosition="true" UseStaticHeaders="true" />
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</telerik:RadGrid>




The individual RadGrid configuration looks like this : 
<ClientSettings AllowKeyboardNavigation="True" EnablePostBackOnRowClick="True" ActiveRowIndex="0">
        <Scrolling ScrollHeight="500px" AllowScroll="True" SaveScrollPosition="True" UseStaticHeaders="False" />
        <KeyboardNavigationSettings EnableKeyboardShortcuts="True" AllowSubmitOnEnter="True"
            AllowActiveRowCycle="True" CollapseDetailTableKey="LeftArrow" ExpandDetailTableKey="RightArrow" />
</ClientSettings>




Are we misunderstanding how this should work? Is UseStaticHeaders configurable on a grid-by-grid basis? If so, how?

1 Answer, 1 is accepted

Sort by
0
GreenLizzard
Top achievements
Rank 1
answered on 16 Apr 2013, 06:49 PM
Hi Karrie,

The property UseStaticHeaders is configurable on a grid-by-grid basis and it overrides the global settings as any other property. I have tested and it works as expected. Actually this property does not switch off the scrolling of the grid. 
Check out again your project :)

Kind regards, 
Greeny L
Tags
Grid
Asked by
Karrie
Top achievements
Rank 1
Answers by
GreenLizzard
Top achievements
Rank 1
Share this question
or