Announcement

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

    How to enable/disable columns in editable grid ?

    I am using SmartGWTPro with hibernate/spring integration similar to the Showcase example using .ds.xml. http://www.smartclient.com/smartgwtee/showcase/#hibernate_spring

    I have a editable listgrid. I want to show 2 fields as editable and rest non-editable.
    I did referred to http://www.smartclient.com/smartgwt/showcase/#grid_editing_disable
    but here since I am using ds.xml bindings and calling DS.getDatasource("app.ds.xml"); I m not able to figure out how to achieve this.

    Can you guide me in this ? Any Hint ??

    #2
    Isomorphic.... I m stuck here and need help in this regard.... Do you need any more information from my end ?? Let me know....
    Thanks

    Comment


      #3
      Is it possible through SmartGWTPro ? Can anyone hint me on this ?

      Comment


        #4
        learnsnip,

        I have not used the Pro version before, but from taking a look at the xml in that example, it appears that you are manipulating the properties of the DataSourceFields directly. The property you will want to change is the "canEdit" property. I think DataSourceFields of type "text" are editable by default, so just put canEdit="false" on the fields that you don't want to be editable. I can't guarantee that this will work, but you might give it a shot.

        Let me know if that helps.

        Comment

        Working...
        X