OK, I am still trying to get my head around your original definitions:
Starting with #3 which is similar to what we were originally doing and having trouble with, I want to clarify that we were calling set data with a parameter of ListGridRecord..., not RecordList. I have know idea if this is an important distinction.
With regard to #2, this makes perfect sense to me (I think).
#1 is where all of my confusion is. First of all, it is not clear whether you are talking about fetchData() on the DataSource or the ListGrid. Also it is unclear how fetchData is getting called. We don't have any calls to it at all in our code at the moment. Should we be adding one, and if so where/when should that call be made. Next, I would want the fetch data to create the ResultSet from an in-memory List. Where would the code exist to build the ResultSet object from the in-memory data and how what that end up becoming the result from calling fetchData? Also there are several fetchData overloads, are you referring to fetchData generically or the specific overload that takes no parameters?
There are 3 relevant modes to consider:
1. ListGrid with DataSource and using a ResultSet (as a result of a call to fetchData())
2. ListGrid with DataSource and using a RecordList passed to setData()
3. ListGrid with no DataSource, using a RecordList.
1. ListGrid with DataSource and using a ResultSet (as a result of a call to fetchData())
2. ListGrid with DataSource and using a RecordList passed to setData()
3. ListGrid with no DataSource, using a RecordList.
With regard to #2, this makes perfect sense to me (I think).
#1 is where all of my confusion is. First of all, it is not clear whether you are talking about fetchData() on the DataSource or the ListGrid. Also it is unclear how fetchData is getting called. We don't have any calls to it at all in our code at the moment. Should we be adding one, and if so where/when should that call be made. Next, I would want the fetch data to create the ResultSet from an in-memory List. Where would the code exist to build the ResultSet object from the in-memory data and how what that end up becoming the result from calling fetchData? Also there are several fetchData overloads, are you referring to fetchData generically or the specific overload that takes no parameters?
Comment