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

combobox lose selected valeu and bound items after page postback

1 Answer 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 15 Apr 2015, 01:52 AM

Hi,

I create a visual web part in SharePoint 2013 and use the combobox control in the web part . I bind the combobox when page load (if (!this.Page.IsPostBack)), the issue is when I select a value in the combobox and click a button(check) to filter a gird, it works well, but after a while such as 20 minuets later, when I click the button(check) again, and the page postback, but the combobox is blank and lose bound items and selected value .

Can any body tell me how can I retain the selected value and the bound items after a postback ? By the way, it happens I open the page and leave it some times later(20-30 minuets).

Thank you!

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 16 Apr 2015, 02:08 PM
Hi Charles,

1. Is it possible that the session has expired?
2. Can you look into the java script console and see if there are any errors?
3. You can handle the OnClientItemRequestFailed event and see if it gets fired due to an error during the items loading.
4. If your RadComboBox is ajaxified you can remove the Ajax controls and check if this fixes the issues.

Regards,
Ivan Danchev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ComboBox
Asked by
Charles
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or