Hi,
I'm using a ComboBox that when the TextChanged event is fired, it updates a datalist on the page. Works fine, when I hit the enter key, it fires the event. Then, if I click out of the combobox somewhere else on the page (because only hitting the enter key in the combobox maintains the focus), the event is fired again. You can see the DataList updates two times. I've tried to cancel a second postback using the combobox's onclientblur, however there doesn't seem to be a way to cancel postbacks through that function. If I click in the combo box and then click out again, without changing text, however -- the ajax update happens yet again and refreshes the datalist.
The weird thing is that the text_changed event still only gets fired once (when I actually changed the text) -- which is proper functionality. I'm not sure what server-wide event is getting fired when I click off of the combobox, but if I disable autopostbacks for the combobox, it doesn't do it anymore (but then of course I can't use the enter key to postback the page)...
For reference, this is the code I'm using:
<telerik:RadComboBox ID="RadComboBox1" Skin="Vista" Width="265" EmptyMessage="Search for your favorite game!" AllowCustomText="true"
OpenDropDownOnLoad="false" ShowDropDownOnTextboxClick="false" ShowWhileLoading="false" ShowMoreResultsBox="false" ShowToggleImage="false"
ExpandAnimation-Type="None" AutoPostBack="true" runat="server" />
And the DataList:
<asp:DataList ID="DataList_Content" runat="server">
<ItemTemplate>
Content...
</ItemTemplate>
</asp:DataList>
I have the AjaxManager on the page making sure the ComboBox can update the DataList, and there's also the default loading panel on the page.
Any help would be appreciated.
I'm using a ComboBox that when the TextChanged event is fired, it updates a datalist on the page. Works fine, when I hit the enter key, it fires the event. Then, if I click out of the combobox somewhere else on the page (because only hitting the enter key in the combobox maintains the focus), the event is fired again. You can see the DataList updates two times. I've tried to cancel a second postback using the combobox's onclientblur, however there doesn't seem to be a way to cancel postbacks through that function. If I click in the combo box and then click out again, without changing text, however -- the ajax update happens yet again and refreshes the datalist.
The weird thing is that the text_changed event still only gets fired once (when I actually changed the text) -- which is proper functionality. I'm not sure what server-wide event is getting fired when I click off of the combobox, but if I disable autopostbacks for the combobox, it doesn't do it anymore (but then of course I can't use the enter key to postback the page)...
For reference, this is the code I'm using:
<telerik:RadComboBox ID="RadComboBox1" Skin="Vista" Width="265" EmptyMessage="Search for your favorite game!" AllowCustomText="true"
OpenDropDownOnLoad="false" ShowDropDownOnTextboxClick="false" ShowWhileLoading="false" ShowMoreResultsBox="false" ShowToggleImage="false"
ExpandAnimation-Type="None" AutoPostBack="true" runat="server" />
And the DataList:
<asp:DataList ID="DataList_Content" runat="server">
<ItemTemplate>
Content...
</ItemTemplate>
</asp:DataList>
I have the AjaxManager on the page making sure the ComboBox can update the DataList, and there's also the default loading panel on the page.
Any help would be appreciated.