I have two grids. This first one accepts a list of categories and the second shows a list of reports.
The second grid has a dropdown editor column for the category based on the items on the first grid.
When a new category is entered into the first grid I want the dropdown editor to update with the new values.
I have tried calling "dropdown.loadItems("", false)" in the AJAX complete event of the first grid but get a blank list of items in my editor. The elements seems to have been created but there is no text values, instead I get a hyperlink <a onclick="j avascript: void(0)" /> for each li created. The number of items is correct as I have used the ItemsRequested event to check if there are items being returned.
Hello Rich,
Please let me know if you have any further questions regarding this matter.
Hello RichBamford,
Are you binding the webdropdown in the itemrequested event like below?
productDropDown.Items.Clear(); SqlDataSource2.SelectCommand = "SELECT * FROM [Products] where [CategoryID] = \'" + (string)e.Value + "\'";
"SELECT * FROM [Products] where [CategoryID] = \'"
string
"\'"
productDropDown.DataBind();
Can you post the code the you are using to load the webdropdown?
Please let me know if you have any questions.