Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
loadData on a dropdown editor in the add new row
posted

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.

  • 7499
    posted

    Hello Rich,

    Please let me know if you have any further questions regarding this matter.

     

     

  • 7499
    posted

    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 + "\'";                  

         productDropDown.DataBind();

     

    Can you post the code the you are using to load the webdropdown?

    Please let me know if you have any questions.