locked
CSS Friendly Adapters and Gridview autoformat RRS feed

  • Question

  • User1280087979 posted

     

    Hi

    I am using CSS Friendly Adapters.

    I have included following in my project:

    1.CSSFriendlyAdapters.browser in App_Browsers folder

    2. CSSFriendly.dll in Bin folder

    I have gridview for which I have selected AutoFormat scheme as 'Classic' 

    But when I run application  AutoFormat scheme 'Classic' is not applied to gridview.

     

      

     

     

    Wednesday, January 14, 2009 6:36 AM

All replies

  • User1759999623 posted

    This is working the way as designed. Note that these are sample adapters are designed to only use content attributes and ignore the style attributes of a control.  As with the autoformatting with the GridView, it is just another way of defining style attributes from your GridView.

    So, you have several options:

    • You can create a CSS file that uses the predefined CSS classes and selectors as outlined in this whitepaper
    • You remove (or maybe comment out) the GridView control from the browser file, though you eliminate the use of this adapter
    • You modify the underlying source for this adapter to allow for the style attributes to work, but you will then be defeating part of the purpose for using the adapter to begin with
    Wednesday, January 14, 2009 7:42 AM