Announcement

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

    addField method for ListGrid, etc - help to uibinder project

    Hi guys,


    How few people already know, we are working on a project to make smartgwt compatible with uibinder.

    http://code.google.com/p/uibinding-smartgwt/

    so, basically we have to implement the method add for each widget.

    will be a great help for us, if we have a method like:

    listGrid.addField(listGridField);

    because right now, we rebuild the field array and call the method setFields four times for something like bellow:

    <zs:UIListGrid showResizeBar='true' width='100px'>
    <zs:UITreeGridField>Personal Info</zs:UITreeGridField>
    <zs:UITreeGridField>Avatar</zs:UITreeGridField>
    <zs:UITreeGridField>Address</zs:UITreeGridField>
    <zs:UITreeGridField>Email</zs:UITreeGridField>
    </zs:UIListGrid>

    Im not sure if call setFields N times is right or not but something looks weird.

    We decide handle the problem like this:
    http://code.google.com/p/uibinding-s...Widgettobuffer


    Really thanks for any help or tip.
    Last edited by sonnerdev; 15 Jul 2010, 05:49.

    #2
    Why doesn't the whole ListGrid element get parsed instead of parsing things one line at a time?

    Comment


      #3
      uibinder calls the add method for each xml element individually.

      Comment

      Working...
      X