Rad combobox doesn't update data after edit

2 posts, 0 answers
  1. Praveen
    Praveen avatar
    14 posts
    Member since:
    Oct 2011

    Posted 23 Nov 2011 Link to this post

    I am using RadCombo box for my Asp.net Application.

    On the page load data is being bound to the combobox. Now there is an option to edit the data in the Combo box by clicking on a link that is beside the combobox which brings a popup window where we edit the data and Update. On Updating the value the popup window is closed thereby refreshing the Combobox (client side).

    For that i am using the following code.

            cboCases.clearItems();

            cboCases.requestItems(sel, false); //Here value of sel is the selected index’s value.

     

    After the request_Items fires the sever side event is called to bind the combobox.

    The server side code is

    cboCases.DataSource = listObjects;

    cboCases.DataBind();

    cboCases.SelectedIndex = int.Parse(sel); //sel is the values passed from Request_Items

     

    My Issue is that even though we are setting the selected index value, what is being reflected in the UI is the same old value.But once we change the index of the combobox manually from the UI the data is the updated value.

  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 25 Nov 2011 Link to this post

    Hi Praveen,

    I could not produce the same behavior, locally.
    The sample page I have been testing on, is attached to the message.  You could download it and see if I am testing the right scenario.

    If you are still having troubles, you could send a support ticket with a runnable sample page illustrating the issues, attached to it. Or, you could paste here a bigger portion of your code, so I will be able to troubleshoot the very same scenario, on which the behavior in question in produced.

    Regards,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top