ComboBox Postback Through Javascript

2 posts, 0 answers
  1. Amanda Hayden
    Amanda Hayden avatar
    1 posts
    Member since:
    Feb 2009

    Posted 02 Mar 2011 Link to this post

    Hi I am using Telerik Rad Combo Box, Telerik Rad Grid, Telerik Ajax Loading Panel, and Telerik Ajax Manager on a Page

    With the help of Ajax Manager and Ajax Loading Panel I am successfully reloading the grid without reloading the whole page based on the selection Index change of ComboBox(Using AuotPostBack=True property) without any code behind. Now I want to make the AutoPostBack property false because I don't want to postback every time, I will do postback only for particular selection. So I set Autopost back false and I tried to do the postback in Javascript, but now whole page is reloading when ever post back appears. So please help me to postback just the combo box and reload just the grid (not whole page) through javascript 

    Note : Here I put the combobox in a user control for some additional functionalities and then using that user control on the page with all other controls I mentioned above 


    Thanks
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 08 Mar 2011 Link to this post

    Hello Amanda Hayden,

    You can handle the OnClientSelectedIndexChanged event of the RadComboBox and initiate an AJAX request as described in this help article.
    I prepared a small example for you based on this online demo - please find it attached.
    The scenario that this sample demonstrates is very simple - there is a RadComboBox in a user control that updates RadGrid.
    I hope this helps.


    Regards,
    Kalina
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top