I'm having trouble with the controlparameter of a ListBox which points to same RadGrid where the Listbox is used.
I want to populate the Listbox depending on the selected value of the Grid, so I've set a controlparameter in the datasource of the ListBox which points to the selectedItem of the Grid. However, the controlparameter always gets the default value. If I set the controlparameter to another grid (not the grid which is the parent of the ListBox) it works fine.
| <GRID id=g1 Datasource = DS1> |
| <VIEW> |
| <EDIT> |
| <LISTBOX Datasource=DS2></LISTBOX> |
| </EDIT> |
| </GRID> |
| <DS1> |
| ... |
| </DS1> |
| <DS2> |
| <selectparameters> |
| <asp:ControlParameter ControlID="g1" DefaultValue="0" Name="id" PropertyName="SelectedValue" Type="Int32" /> |
| </selectparameters> |
| </DS2> |
