I have a RadGrid set up so that the user can select line items in the grid via a checkbox. The grid is using the ClientSelectColumn to allow for item selection. There is also a dropdown list on the control that will rebind the grid with different data based on the item selected in the dropdown list. Basically the user can selected from a list of items in a dropdown list, which should force the grid on that same user control to rebind with a different set of data (same structure - just different values). The control is set up to use the RadAjaxManager and RadLoadingPanel to provide partial page postbacks of the grid. It is desired that the user just see the loading panel as the grid data is rebound.
When I put this control in a regular ASP.NET page, it works just great. All the item selections seem to hold and I can view them server side (the user hits a submit button to submit the selected items in the grid). However, I now need to use this control from within a MOSS 2007 web part. When the control is used from the web part, the grid selected items no longer seem to hold.
When the web part first renders, the grid looks good. I can select items in the grid and the selected line highlights in the grid. If I then make a selection from the dropdown list and do the partial postback, the grid appears to rebind, but it seems as if something is wrong with the selected items. If I click on the checkbox to select a row, the row no longer highlights. When I submit the form, the grid's SelectedItems property is zero - even thought there are selected items in the grid.
This is really starting to confuse me. It seems to me like the problem has to be related to the ajax postbacks and being inside a web part, but I'm not sure where or how to fix it.
Any suggestions or advice on this would be greatly appreciated.
When I put this control in a regular ASP.NET page, it works just great. All the item selections seem to hold and I can view them server side (the user hits a submit button to submit the selected items in the grid). However, I now need to use this control from within a MOSS 2007 web part. When the control is used from the web part, the grid selected items no longer seem to hold.
When the web part first renders, the grid looks good. I can select items in the grid and the selected line highlights in the grid. If I then make a selection from the dropdown list and do the partial postback, the grid appears to rebind, but it seems as if something is wrong with the selected items. If I click on the checkbox to select a row, the row no longer highlights. When I submit the form, the grid's SelectedItems property is zero - even thought there are selected items in the grid.
This is really starting to confuse me. It seems to me like the problem has to be related to the ajax postbacks and being inside a web part, but I'm not sure where or how to fix it.
Any suggestions or advice on this would be greatly appreciated.