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

ComboBox Postback Through Javascript

1 Answer 90 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Amanda Hayden
Top achievements
Rank 1
Amanda Hayden asked on 02 Mar 2011, 07:10 PM
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

1 Answer, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 08 Mar 2011, 11:59 AM
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!
Tags
ComboBox
Asked by
Amanda Hayden
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Share this question
or