Hi,
I am new to Smart gwt..I am using List grid in my project and was able to display the data properly.I have the following question.
1)I want to add a filter to my listgrid.So,I enabled the filter as listGrid.setShowFilterEditor(true). But I am setting the data into the listgrid as
listGrid.setData(records.toArray(new ListGridRecord[records.size()]));
When i try to search for any data in the filter,its giving me an exception Data source is not set.
So,i create a datasource class and added my report fields as DataSourceDateField and set the data source as Clientonly...I am not sure if this is the right way to do it?
2)Is there anyway i can still use the filter option,by setting the Listgrid data in the setData instead of setDataSource?
Thanks
Can somebody help me on how to solve this?
Thanks
I am new to Smart gwt..I am using List grid in my project and was able to display the data properly.I have the following question.
1)I want to add a filter to my listgrid.So,I enabled the filter as listGrid.setShowFilterEditor(true). But I am setting the data into the listgrid as
listGrid.setData(records.toArray(new ListGridRecord[records.size()]));
When i try to search for any data in the filter,its giving me an exception Data source is not set.
So,i create a datasource class and added my report fields as DataSourceDateField and set the data source as Clientonly...I am not sure if this is the right way to do it?
2)Is there anyway i can still use the filter option,by setting the Listgrid data in the setData instead of setDataSource?
Thanks
Can somebody help me on how to solve this?
Thanks
Comment