Settings cell backgrounds hides selection background

Posted by: developer on 7 November 2017, 10:21 pm EST

    • Post Options:
    • Link

    Posted 7 November 2017, 10:21 pm EST

    Hi

    I need to implement a highly flexible datagrid. Almost every cell can have different backgrounds, borders, paddings, etc.

    We use C1 flexgrid in WPF and Silverlight and are used to work with a custom cell factory to do this.

    Now I have to do the same with the wijmo grid. What is the best way to get this flexibility (we work with Angular 5)?

    I have implemented a custom cell factory to set cell backgrounds (based on the wijmo sample). But then I have the problem that that hides the selection background. How can I set a custom background (the color is not known at implementation time) and keep the selection background working?

    Thanks for your help.

    Martin Vogt

  • Posted 8 November 2017, 4:08 pm EST

    Hi Martin,

    You need to set wj-state-selected class with background property using !important.

    .wj-state-selected{
      background-color: #0085c7 !important;
    }
    .wj-state-multi-selected{
     background-color: #80adbf !important; 
    }
    

    If the issue persists, please share a sample depicting the issue.

    ~Manish

Need extra support?

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

Learn More

Forum Channels