Well, I hope that title makes sense.
I am using the load on demand feature, and I want to be able to tell the difference between when the user starts to enter a string in the textbox, and the combo box does a MarkFirstMatch, and when the user clicks the "show more results" link at the bottom of the dropdown.
Both actions trigger the ItemsRequested event -- however, I want to do two different things in that event for the MarkFirstMatch and the ShowMoreResults click. But I can't figure out how to tell the difference.
I tried checking for [comboBox].Text == "", but if I have AllowCustomText set to false, this is never true. I tried checking e.Text == "", but this is also never true even when the user clicks the "show more results" link.
Here's my combo box declaration:
<telerik:RadComboBox
ID="employeeBox"
DataValueField="EmployeeDataID"
DataTextField="Name"
Width="350px" Height="300px"
runat="server"
Skin="WebBlue"
ShowMoreResultsBox="true"
ItemRequestTimeout="500"
EnableLoadOnDemand="true"
MarkFirstMatch="True"
OnItemsRequested="employeeBox_ItemsRequested"
>
<CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>
If someone could advise me as to how to accomplish this, I would be most appreciative!
I am using the load on demand feature, and I want to be able to tell the difference between when the user starts to enter a string in the textbox, and the combo box does a MarkFirstMatch, and when the user clicks the "show more results" link at the bottom of the dropdown.
Both actions trigger the ItemsRequested event -- however, I want to do two different things in that event for the MarkFirstMatch and the ShowMoreResults click. But I can't figure out how to tell the difference.
I tried checking for [comboBox].Text == "", but if I have AllowCustomText set to false, this is never true. I tried checking e.Text == "", but this is also never true even when the user clicks the "show more results" link.
Here's my combo box declaration:
<telerik:RadComboBox
ID="employeeBox"
DataValueField="EmployeeDataID"
DataTextField="Name"
Width="350px" Height="300px"
runat="server"
Skin="WebBlue"
ShowMoreResultsBox="true"
ItemRequestTimeout="500"
EnableLoadOnDemand="true"
MarkFirstMatch="True"
OnItemsRequested="employeeBox_ItemsRequested"
>
<CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>
If someone could advise me as to how to accomplish this, I would be most appreciative!