Announcement

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

    Disable row on grid

    I see on your example there is a way to do this. However, your data record is a ListGridRecord and that is set to the grid.

    We are pulling data from SQL and the record that is return is not of type ListGridRecord. This code is not working for me. Is ther another way I can do this?



    getMainGrid().fetchData(donwloadCriteria, new DSCallback() {
    @Override
    public void execute(DSResponse response, Object rawData, DSRequest request) {
    Record[] records = response.getData();
    for (Record record : records) {
    if (record instanceof ListGridRecord ){
    ((ListGridRecord)record).setEnabled(false);
    }
    }
    }
    });

    #2
    Record.setAttribute("enabled", false) is equivalent.

    Comment

    Working...
    X