0 Replies Latest reply on Sep 5, 2011 5:15 AM by Srinivas Sanga

    Dynamic DataGridColumn Style Changes

    Srinivas Sanga Level 1

      Hi Guys,

       

      Am unable to update DatagridColumn Styles dynamically.

       

      1) I have created a contextMenu for DatagridColumn.

      2) onClick of contextMenuItem, opening a popup to change style properties.

      3) On popup close, am updating style properties on that column and validating datagrid.

      4) But style changes are not refreshing immediatley.I have to mouseOver on DatagridRow to get these style changes.

       

      Code Snippet:

       

      col.setStyle("fontWeight","bold");

      col.setStyle("fontStyle","italic");

      col.setStyle("textDecoration","underline");

       

      dataGrid.invalidateList();
      dataGrid.dataProvider.refresh();
      dataGrid.validateNow();