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
445
Clear styles on individual cells set in javascript
posted

I am setting the style on individual cells in javascript using code like this:

oCell._element.className = strRedCellClass;

The styling works properly.  My problem is that if I bind grid to new data and there is not any data in the cell that was previously styled the style remains.  I am clearing the grid on the server side before binding like this:

WebDataGrid1.Columns.Clear()
WebDataGrid1.Rows.Clear()
WebDataGrid1.ClearDataSource()

This does not clear any cell styles that were previously set.  How can I clear the styles?

Parents
  • 7566
    posted

    Hello wamanring,

     

    Thank you for posting in our community. I have created a sample that reproduces this scenario. Try it and let me know your comments. If the sample is different than yours you can modify it in the way this issue is reproducible.

     

     

    I hope this information helps.

    For any other questions with this matter do not hesitate to contact me.

     

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

    WDDchangeColors.zip
Reply Children