Hi all,
I have just started developing with telerik and am having an issue with the autopostback.
I have a ddl with 3 columns; when the user selects an option from the ddl the page should postback and I would expect it to use the server-side SelectedIndexChanged method.
It postbacks, loading the Page_Load, though does not hit my SelectedIndexChanged method.
My Code:
Code behind:
I have tried adding OnSelectedIndexChanged="ddlAccount_SelectedIndexChanged" to the aspx side though with no difference.
Can anyone help?
Thanks in advance
I have just started developing with telerik and am having an issue with the autopostback.
I have a ddl with 3 columns; when the user selects an option from the ddl the page should postback and I would expect it to use the server-side SelectedIndexChanged method.
It postbacks, loading the Page_Load, though does not hit my SelectedIndexChanged method.
My Code:
<%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
<rad:RadComboBox ID="ddlAccount" Skin="WindowsXP" runat="server" Height="190px" AutoPostBack="true" |
Width="300px" EnableEmbeddedSkins="false" > |
<ItemTemplate> |
<table style="text-align: left;"> |
<tr> |
<td style="width:175px;"> |
<%# DataBinder.Eval(Container, "DataItem.AccountName") %> |
</td> |
<td style="width:75px;"> |
<%#DataBinder.Eval(Container, "DataItem.City")%> |
</td> |
<td> |
<%#DataBinder.Eval(Container, "DataItem.IsTarget")%> |
</td> |
</tr> |
</table> |
</ItemTemplate> |
</rad:RadComboBox> |
Code behind:
Protected Sub ddlAccount_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles ddlAccount.SelectedIndexChanged |
'My code here.... |
End Sub |
I have tried adding OnSelectedIndexChanged="ddlAccount_SelectedIndexChanged" to the aspx side though with no difference.
Can anyone help?
Thanks in advance