Populating DropdownList Row by Row in IntializeRow

1 reply. Last post: February 7, 2011 6:02 AM by Martin Lie
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Martin DavisMember
In the example below, I have two Dropdownlist (Syxxx and Mxxx). The first Dropdownlist drives what should be loaded in the second one. First example ,if the selected value of Syxxx is 'A' Mxxx should be loaded with (Tires,Wheels,Rubber). Second example, if selected value of Syxxx is 'B' Mxxx should be loaded with (Bears,Rabbits,Fish). I understand that InitializeLayout would load the Dropdownlist with the same value in that column for every row. How can I load or filter the WebValuelist at the cell level row by row in the IntializeRow Method? How can this be done on the client side also when a user selects a value from the first Dropdownlist?  I would need to clear out the second dropdown and reload with fresh data. Thanks for any help in advance.

<ISWebGrid:WebGridColumn Caption="Syxxx" FilterEditType="DropdownList" EditType="DropdownList"

Name="Syxxx" Width="150px" DataMember="Syxxx_Cd" > </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Mxxx" FilterEditType="DropdownList" EditType="DropdownList" Name="Mxxx" Width="150px" DataMember="Mxxx_Cd" > </ISWebGrid:WebGridColumn>
All times are GMT -5. The time now is 2:10 PM.
Previous Next