Hi
I have a SelectItem in a form which I'd like to disable when there are no values displaying in it.
The data is loaded up from a datasource and then filtered on the client side (I've overriden getPickListFilterCriteria()) and everything seems to work fine.
The problem is, I'm having a really difficult time trying to get the number of options that are currently displayed when filtered - Smart GWT just doesn't seem to have that information anywhere.
Things I have tried so far:
- filterClientPickListData() - this seems to return null for data bound pick lists
- add a DataArrivedHandler and extract the ResultSet directly. However each method I seemed to call on the ResultSet that was a subclass of RecordList seemed to be broken, i.e. it came up with "self.getLength is not a function".
I can't believe that something which is seemingly so simple is so complicated to achieve. If anyone has any ideas I'd be very grateful.
Smart GWT version: 2.2
Browser: Firefox 3.6.6
Thanks,
Phill
I have a SelectItem in a form which I'd like to disable when there are no values displaying in it.
The data is loaded up from a datasource and then filtered on the client side (I've overriden getPickListFilterCriteria()) and everything seems to work fine.
The problem is, I'm having a really difficult time trying to get the number of options that are currently displayed when filtered - Smart GWT just doesn't seem to have that information anywhere.
Things I have tried so far:
- filterClientPickListData() - this seems to return null for data bound pick lists
- add a DataArrivedHandler and extract the ResultSet directly. However each method I seemed to call on the ResultSet that was a subclass of RecordList seemed to be broken, i.e. it came up with "self.getLength is not a function".
I can't believe that something which is seemingly so simple is so complicated to achieve. If anyone has any ideas I'd be very grateful.
Smart GWT version: 2.2
Browser: Firefox 3.6.6
Thanks,
Phill
Comment