Hi,
I am trying to Bind Values to RadCombo Box Dynamically when we perform “SelectedIndexChanged” event.
But I want to perform this operation without postback.
I taken one small Example as like
<telerik:RadAjaxManager ID="RadAjaxManager2" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadComboBox1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadComboBox1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<table cellpadding="0" cellspacing="0" width="100%" border="1" style="border-color: Green">
<tr>
<td>
<telerik:RadComboBox ID="RadComboBox1" Runat="server"
onselectedindexchanged="RadComboBox1_SelectedIndexChanged">
</telerik:RadComboBox>
</td>
</tr>
</table>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
RadComboBox1.Items.Add(new RadComboBoxItem("One"));
RadComboBox1.Items.Add(new RadComboBoxItem("Two"));
RadComboBox1.Items.Add(new RadComboBoxItem("Three"));
this.Label1.Visible = false;
}
}
protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
{
// Put a breakpoint here
RadAjaxPanel1.ResponseScripts.Add("alert('OnChangeEventWas Handled')");
Label1.Visible = true;
}
But I am nt able to do this …pls give some exaples on this.