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
585
Set cell color based on columnSettings
posted

I have set the "required" property for columns in the columnSettings dynamically during initialization. When loading the igGrid (and adding a new row), I want to indicate those required fields with the cell colored in red. How can I do that?

Thanks!

Parents
  • 845
    Suggested Answer
    posted

    hi Erica,

    The editor options provide you with the functionality to set a custom theme.

    Using the following code:

    editorOptions: { theme: 'requiredCell' }

    you may specify editor options for the columns that are required.

    You may use also the following CSS to mark the cell with red border:

    .requiredCell {border: 1px solid red !important;}

    Hope that helps. Let me know if you are unable to use my comments and/or you need a specific sample.

    regards

    Lyubo

Reply Children