Cannot set DDL values after user leaves site

6 posts, 0 answers
  1. Phillip
    Phillip avatar
    23 posts
    Member since:
    Dec 2013

    Posted 21 Jan 2015 Link to this post

    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?
  2. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 26 Jan 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Phillip
    Phillip avatar
    23 posts
    Member since:
    Dec 2013

    Posted 30 Jan 2015 in reply to Aneliya Petkova Link to this post

    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.
  5. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 04 Feb 2015 Link to this post

    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.

     
  6. Phillip
    Phillip avatar
    23 posts
    Member since:
    Dec 2013

    Posted 09 Feb 2015 in reply to Aneliya Petkova Link to this post

    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.
  7. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 11 Feb 2015 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017