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
215
CssStyle not applied when use LoadControl
posted

If your WebDataGrid is inside a dynamically loaded usercontrol, the CssStyle applied to any columns/headers does not get applied unless the page is reloaded (F5).

I'm not sure why this is. Any idea?

Parents
No Data
Reply
  • 215
    posted

    Ok, took some fiddling, but figured it out. It was because I was using the Infragistics stylesets. On the WDG I had set 

     

        StyleSetName="Office2007Black"

     

    So the standard settings of 

     

        TBODY > TR > TD.ColumnRight

        {

            text-align: right;

        }

        .HeaderRight

        {

            text-align: right;

        }

     

    did not work anymore, I had to add the names of the classes from the styleset in, so the CSS became

     

        .igg_Office2007BlackItem > TR > TD.ColumnRight

        {

            text-align: right;

        }

        .igg_Office2007BlackHeaderCaption.HeaderRight

        {

            text-align: right;

        }

Children
No Data