Announcement

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

    Hide ListGridField Content

    Hi all,

    I have 10 list grid fields and they're all checkboxes. I need to hide some of the checkboxes dynamically without hiding the column, is there a way to accomplish this?

    Thanks.

    #2
    I haven't tried it yet, but I think I can accomplish this by overriding getCellValue() and just returning blank.

    Comment


      #3
      I don't see getCellValue() under ListGrid class, am I looking at the wrong place? Is there a better/another way to hide a certain cell's content?

      Comment


        #4
        How about formatCellValue?

        /isomorphic/system/reference/SmartClient_Reference.html#method..ListGrid.formatCellValue

        And BTW, I saw

        /isomorphic/system/reference/SmartClient_Reference.html#method..ListGrid.getCellValue

        Comment


          #5
          I see both of them mentioned in here, but they are not in the list below.

          http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/grid/ListGrid.html

          Am I not overriding these methods? I don't see them in ListGrid.

          Comment


            #6
            Note you're in the SmartClient forum asking SmartGWT questions and getting SmartClient answers.

            The equivalent SmartGWT API is to add a CellFormatter to a ListGridField.

            Comment


              #7
              Oh I see - sorry, I don't know SmartGWT - perhaps your question would be better answered in the SmartGWT Forum http://forums.smartclient.com/forumdisplay.php?f=14

              Comment


                #8
                I'm sorry for littering then, I didn't see there was a seperate forum for SmartGWT. Thank you!

                Comment

                Working...
                X