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

Cannot set DDL values after user leaves site

5 Answers 48 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Phillip
Top achievements
Rank 1
Phillip asked on 21 Jan 2015, 03:47 PM
I have an asp.net 4 website.  The default page is using the radajaxmanager  The default page has two radcombobox controls.  Server side OnItemsRequested events are used to populate the radcombobox controls.  A radmultipage control is also on the page.  Each page in the rad multi page displays data in rad grids based on the selections for the two radcombobox controls.  The website uses session state to store the selections from the two radcombobox controls.

The problem is that a user can leave the website without closing the browser and then return to the website using a back button or favorite item.  The comboboxes do not show the previous selections.  However, the grids use the session variables to display data.  I have been unable to set the radcomboboxes values.  It appears that the page load event does not fire. 

I cannot remove the radajaxmanager because a tab strip control is also used.  The page needs javascript methods to control the tabs. 

Do you have any suggestions?

5 Answers, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 26 Jan 2015, 09:21 AM
Hi Phillip,

I would suggest you to try the approach described in the following help article:
http://www.telerik.com/help/aspnet-ajax/combobox-back-button-selected-value.html

Hope this will be helpful.

Regards,
Aneliya Petkova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Phillip
Top achievements
Rank 1
answered on 30 Jan 2015, 07:18 PM
That article does not apply to my website.  The combo box change event is using AJAX to update the page.  The selected index change event of the combo box does not use response.redirect. 

The main page is using a tab strip control with a multipage control.  Each tab has a separate pageview.  One combo box is tied to the other combo box.  The second combobox updates the multi page control.  Each control is tied together via Ajax Settings for the Rad Ajax Manager control.
0
Aneliya Petkova
Telerik team
answered on 04 Feb 2015, 02:11 PM
Hi Phillip,

Then you can try one of the other approaches suggested in UI for ASP.NET AJAX forum:
http://www.telerik.com/forums/how-to-save-last-selection-of-a-radcombobox-into-a-session
http://www.telerik.com/forums/persisting-selected-value-of-radcombobox-inside-radgrid-on-sorting

If this doesn't help you I will need a sample runnable project showing your exact scenario, in order to help you in most efficient way.

Regards,
Aneliya Petkova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Phillip
Top achievements
Rank 1
answered on 09 Feb 2015, 08:49 PM
The reason I cannot set the radcombobox value is that the radcombobox does not retain its values when I use the back button to go back to the site.  If the DDL retained its values, I could set the value to match a session or cookie variable.

I decided to set the session variables to null.  That way the grid that uses the session objects does not display any data.  The user is forced to select an item from the radcombobox.  That is one solution to the problem.
0
Aneliya Petkova
Telerik team
answered on 11 Feb 2015, 08:44 AM
Hi Phillip,

The resolution of this issue depends on your specific custom implementation for persisting control's selected values. In case no sample with a scenario similar to yours is provided, I could give you directions you could try on your side.

I would also suggest you to try the Telerik ASP.NET Persistence Framework:
http://www.telerik.com/help/aspnet-ajax/persistence-framework-overview.html

Regards,
Aneliya Petkova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DropDownList
Asked by
Phillip
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
Phillip
Top achievements
Rank 1
Share this question
or