Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
How to keep style after sorting
posted

Hi,

I have defined a style for the header; however, after sorting via clicking a header, the formatting is lost as if the style is not there in the first place.

In addition, the additional header info I put in on InitializeLayout event disappears as well.

So my question is what is the "correct" way of defining a style for the header?

Thanks,
--Vincent 

  • 155
    Verified Answer
    posted

    To answer my own question, the cause of the problem is the declaration of the following inside <UltraWebGrid>

    EnableAppStyling="True" StyleSetName="UltraWebGridStyle" StyleSetPath="~/App_Themes/

    After sorting, the grid is looking for the style defined with UltraWebGridStyle instead of the one declared in the aspx page (I know... it is not the right thing to do....)

    The missing additional header is added back in PreRender event...