Announcement

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

    RemoveFieldProperties in ListGrid

    Isomorphic,

    I would like to do the following customizations to the removeRecord Icon column in Listgrid

    1) Increase the width of the column which has the RemoveIcon.
    2) I have a specific header style but that is overridden for RemoveIcon column header. Please find attached image.
    3) Also how to correct the styling mismatches in the attached image, especially the border mismatches in border between filter and header.
    4) I would like to show the removeRecord icon conditionally, i.e user cannot delete certain records .

    Also pointers to any documentation with the various properties could be helpful.

    Thanks.
    Attached Files
    Last edited by harsha.galla; 4 May 2012, 05:10.

    #2
    Also,

    I would like the expandComponent TextAreaItem to fill the complete width of the ListGrid. I don't find any methods like width100() on it.

    How do I achieve this. Please find the attached image.

    Thanks.
    Attached Files

    Comment


      #3
      For all such issues, use the Watch Tab to troubleshoot.

      getExpansionComponent has you return a Canvas, not a FormItem. Whatever Canvas you are returning (perhaps a DynamicForm) needs to setWidth100() or it will be sized to it's default size and any FormItem within it will not be larger than that.

      Comment


        #4
        Isomorphic,

        Can you guide me on 1 & 4.

        I have tried by setting width100 on dynamicform. Form scales to fill the space but textareaitem doesnt.

        Thanks.

        Comment


          #5
          1,3,4: use setRemoveFieldProperties to customize the auto-generated remove field, or if that ends up being insufficient, create your own equivalent field based on FieldType icon. On 3 specifically, we're not sure how you created this appearance, you'd have to show sample code.

          2: set both the form and TextAreaItem to 100% width and consider also colWidths and colSpan. The Showcase has samples of correct settings to have a TextAreaItem fill space under Forms -> Form Layout (multiple scenarios are shown).

          Comment


            #6
            Isomorphic,

            Where do i look for the properties that could be changed for RemoveField. Can't find it. As per the listgrid class only few properties could be changed like title , icon size etc. This is something I faced several times now. Java docs state that properties can be managed but then doesn't reveal what all properties could be affected. Documentation on the properties (ex: footerDefaults for window component, remove icon in list grid properties etc) would be helpful. 'footerDefaults' is just one example of it, there are a lot of properties which could be configured in load-skin.js which don't find a mention in any of the java docs.

            Thanks.

            Comment


              #7
              Hi Harsha,
              SmartClient supports customization of the remove field via a 'removeFieldProperties' block. This had not been wrapped for SmartGWT (there was no 'setRemoveFieldProperties()' API).
              We've now added this API to the framework - please try the next nightly build (3.1d branch) to pick up the change

              Regards
              Isomorphic Software

              Comment

              Working...
              X