Announcement

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

    Workaround for using ListGridEditorCustomizer and alwaysShowEditors?

    This thread mentions that ListGridEditorCustomizer and alwaysShowEditors were not designed to work together. I'm wondering if you have any ideas for workarounds to create similar functionality? I understand that the editor to display is calculated in real time when the user begins editing a cell. In my case, the calculation of all editors could be done once upon initially loading the form, so it doesn't need to be checked each time an edit is started. I would still need the ability to use different editors within a single ListGridField, however.

    Are there any alternative ways to set up a custom editor configuration in a ListGrid and then use alwaysShowEditors(true)?

    I'm using SmartGWT 3.0 in Chrome and FF.

    Thanks

    #2
    ListGrid recordComponents can be used for a particular column or all columns in lieu of the built-in editors. Set the field as canEdit:false and have it show a recordComponent instead; you will need to manage populating the record component with a value and saving it back to the grid via setEditValue().

    Consider also just a VStack of DynamicForms styled to place all editors adjacent if data volume isn't too high.

    Finally, sponsorship is always an option to get new functionality built into the framework.

    Comment


      #3
      Thanks for the options, I'll look into these.

      Comment

      Working...
      X