Announcement

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

    Applying redraw in dynamic form

    Hi,

    Am newbie to SmartGWT framework. Currently in our project need of show / hide form item based on certain conditions. While changing the conditions, the code was supposed to show the form item as visible but it's not working here.


    for(int i=0;i<dff.getFields().length;i++)
    {
    dff.getFields()[i].setVisible(true);
    dff.redraw();
    }

    Note : dff is DynamicForm

    #2
    Attached the log trace
    Attached Files

    Comment


      #3
      Hello, I'm using SmartClient, not SmartGWT, but FormItem has got show() and hide() methods.
      Also, take a look at FormItem.showIf (http://www.smartclient.com/smartgwt/..._dep_show_hide), and FormItem.visibleWhen (http://www.smartclient.com/smartgwte...#formRules_new).

      Comment

      Working...
      X