Announcement

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

    DataSource and ListGrid - Is the order important?

    Hello,

    I am using SmartGWT 2.4 LGPL and Internet Explorer 8.

    I have a question: Is the order important in declaration of components and why?

    I say, I want show only two fields in a ListGrid of a DataSource and if I put..
    Code:
    myListGrid.setFields(one,two);
    myListGrid.setDataSource(myDS);
    myListGrid paint all fields, even when I have put the property setShowLocalFieldsOnly of the DataSource to true.

    And when I put...
    Code:
    myListGrid.setDataSource(myDS);
    myListGrid.setFields(one,two);
    The DataSource does not overwrite the ListGrid fields, and the ListGrid only show two fields.

    Is there any procedure for "redefine" the listgrid? because "redraw" doesn't works...

    #2
    Also noticing this myself and curious if anyone has an answer...

    Comment

    Working...
    X