This is a migrated thread and some comments may be shown as answers.

Rad combobox doesn't update data after edit

1 Answer 41 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Praveen
Top achievements
Rank 1
Praveen asked on 23 Nov 2011, 10:00 AM

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.

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 25 Nov 2011, 07:46 AM
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
Tags
ComboBox
Asked by
Praveen
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or