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

RadComboBox in updatepanel stop functioning after async postback

3 Answers 113 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 15 May 2012, 11:25 AM
Hello,

I have a updatepanel containing a list of items based on a datasource.
the list container is a ordinary div, called listingpanel.
I have a combobox in a different div which is invisible when source is selected and saved with the combobox.

I also have a radcontextmenu with a edit button in order to bring the panel to change source in the combobox to the front.
Called "editpanel", a ordinary div.

By default the editpanel is visible and everything works fine.
When using the radcontextmenu to bring the editpanel to the front, a partial postback is triggered, editpanel is displayed but the radcombobox is not functioning, I can see the first item displayed in the list but I'm unable to change it, it wont drop and there is no hover in the combobox when i point my mouse at it, which it is by default.

If I remove the display: none on the editpanel with firebug it works, so I know there must be something with the partial postback.
in the partial postback, all the items are being rebound in the page_init method.

Any ideas ?

Thanks in advance,

Lars

3 Answers, 1 is accepted

Sort by
0
Lars
Top achievements
Rank 1
answered on 15 May 2012, 11:31 AM
Appearantly the same thing happens to radnumeric and radtextbox.
After the partial post, a textbox containing user input is always empty when checking in codebehind;

string tmp = myRadTextBox.Text; // is always empty.
0
Ivana
Telerik team
answered on 18 May 2012, 08:55 AM
Hi Lars,

Have you inspected this behavior with an asp:DropDownList? If the asp:DropDownList's behavior is different, could you send a sample page or paste the troubled code here?

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.
0
Lars
Top achievements
Rank 1
answered on 18 May 2012, 01:54 PM
Yes, the same behavior is not present with a regular asp:DropDownList or asp:TextBox.

I will try to produce an example page on monday,

Thanks,

Lars
Tags
ComboBox
Asked by
Lars
Top achievements
Rank 1
Answers by
Lars
Top achievements
Rank 1
Ivana
Telerik team
Share this question
or