Announcement

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

    How to add new row to Listgrid without using DataSource

    Hi

    I am using ListGrid widget for out project prototyping to evaluate smartGWT 3.1 ..

    This listgrid is without DataSource i.e. RPC mechanism is being used..

    There is a new text field where user enters some text and clicks on submit button..Upon submit button, I want to add a new row to Listgrid along with existing rows..Please share the method/API which needs to be used for this...

    Please help..

    #2
    Hoping you figured this out already...

    You have to add it to the underlying record list:

    listgrid.getRecordList().add(newRecord);
    or
    listgrid.getRecordList().addAt(newRecord, index);

    Comment

    Working...
    X