Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Showing some rows in bold in List Grid

    I have some columns in my grid say ItemName, ItemQty, deliveryTime, and status and I want to show whole row in bold when value of status is 'NEW'.
    I want to show some rows( not only cell ) in bold based on the value of one cell Without affecting alternate row style.
    I have override getCellCSSText method but it shows only status value in bold. and when I have override getCellStyle method then alternate style of grid gets affected.
    Can any body give any Idea how to show whole row in bold. based on value of the cell and without affecting the alternate style of the grid.

    #2
    Are you ignoring the colNum value in getCellCSSText()? That looks like the right way to handle it.

    Comment


      #3
      it would be easier if you would provide a code sample.

      Comment


        #4
        Code:
        getCellCSSText : function (record, rowNum, colNum) {
            if (record.status == "NEW") return "font-weight:bold";
        },

        Comment


          #5
          Thanks!! Devid I was ignoring rowNum in method now works fine
          Once again Thanks!!

          Comment

          Working...
          X