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

RadComboBox OnSelectedIndexChanged Simple test, what is wrong?

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Najid Hanif
Top achievements
Rank 2
Najid Hanif asked on 20 Jul 2011, 10:37 PM
Not sure what is wrong with this, could anyone please help? OnSelectedIndexChanged does not seem to get fired at all. 

Thanks


CS
protected void RadComboBox_StatusList_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
    SetMessage("Hello");
}

ASPX
<telerik:RadComboBox ID="RadComboBox_StatusList" runat="server" DataSourceID="StatusList"  AutoPostBack="true" OnSelectedIndexChanged="RadComboBox_StatusList_SelectedIndexChanged"
    DataTextField="Status" DataValueField="StatusID"
    SelectedValue='<%#Bind("StatusID") %>'>
</telerik:RadComboBox>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 21 Jul 2011, 05:21 AM
Hello Najid,

I tried the same scenario and OnSelectedIndexChanged event fired as expected. Please try the same in a seperate page.

aspx:
<telerik:RadComboBox ID="RadComboBox_StatusList" runat="server" DataSourceID="StatusList"  AutoPostBack="true" OnSelectedIndexChanged="RadComboBox_StatusList_SelectedIndexChanged"
    DataTextField="Status" DataValueField="StatusID"
    SelectedValue='<%#Bind("StatusID") %>'>
</telerik:RadComboBox>

C#:
protected void RadComboBox_StatusList_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
    Response.Write("Hello");
}

Thanks,
Princy.
Tags
Grid
Asked by
Najid Hanif
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
Share this question
or