Hi - we have a RadGrid that has an edit form associated with each row, and the edit form loads a custom control.
When the edit form control loads, I am able to get a reference back to the RadGrid data item using this._dataItem;
The edit form control loads some basic data and then another grid for some detail data, and we use the id from the parent RadGrid dataitem to load this detail grid in the edit form. We have enabled paging on the grid in the edit form.
The problem is that when one of the paging controls is hit on the grid in the edit form, and the grid tries to "re-get" the data in the "Grid_NeedDataSource" method in order to display the next subset, this._dataItem is now null, so we don't have access to the parent data item id in order to re-get the detail data for the edit form.
So, the question is, is there something I need to do to make sure that I still have a reference to the data that opened the edit form, when the request for the next page of data is made on the edit form?
thanks,
Sheryl
When the edit form control loads, I am able to get a reference back to the RadGrid data item using this._dataItem;
The edit form control loads some basic data and then another grid for some detail data, and we use the id from the parent RadGrid dataitem to load this detail grid in the edit form. We have enabled paging on the grid in the edit form.
The problem is that when one of the paging controls is hit on the grid in the edit form, and the grid tries to "re-get" the data in the "Grid_NeedDataSource" method in order to display the next subset, this._dataItem is now null, so we don't have access to the parent data item id in order to re-get the detail data for the edit form.
So, the question is, is there something I need to do to make sure that I still have a reference to the data that opened the edit form, when the request for the next page of data is made on the edit form?
thanks,
Sheryl