How to remove the themes from a GridView ?

Posted by: cotinga_comet on 10 September 2017, 11:48 am EST

  • Posted 10 September 2017, 11:48 am EST

    Hi,

    Recently we upgraded to component one asp.net wijmo from an old version.
    So we have our own theme, then how can we display a GridView from a custom css without applying a built-in theme ? (there's artic etc. but no option to leave the Theme propertie empty).

    Thx.

    Fabrice
  • Replied 10 September 2017, 11:48 am EST

    Hi Fabrice,

    Try setting the EnableThemimg property to false, Make sure you set this in the PreInit event of the page :

    protected void Page_PreInit(object sender, EventArgs e)
    {
    C1GridView1.EnableTheming = false;
    }


    Regards
    Abdias
  • Replied 10 September 2017, 11:48 am EST

    Hi Abdias,

    The Gridview is not yet instanciated in the PreInit event. The WebGrid is "null".

    I have tried to set this property to false in the aspx, it worked for the first display but after a refresh it's still the ComponentOne theme.

    Regards,
    Fabrice
  • Replied 10 September 2017, 11:48 am EST

    This works for me. Could you please post a sample which replicates the issue so that I can investigate further on the issue?

    Thanks
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels