| Public Sub BindSecondCombo(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) |
| Dim radCombo1 As RadComboBox |
| Dim radCombo2 As RadComboBox |
| Dim editItem As GridDataInsertItem |
| radCombo1 = CType(sender, RadComboBox) |
| editItem = CType(radCombo1.NamingContainer, GridDataInsertItem) |
| radCombo2 = CType(editItem.FindControl("ddlModuleParentGC"), RadComboBox) |
| If radCombo2 Is Nothing = False Then |
| radCombo2.ClearSelection() |
| radCombo2.DataSource = getRecordByType(7, radCombo1.SelectedValue, "", "", "", "", "") |
| radCombo2.DataTextField = "modulename" |
| radCombo2.DataValueField = "moduleid" |
| radCombo2.DataBind() |
| radCombo2.DataSource = getRecordByType(7, radCombo1.SelectedValue, "", "", "", "", "") |
| radCombo2.DataTextField = "modulename" |
| radCombo2.DataValueField = "moduleid" |
| radCombo2.DataBind() |
| End If |
| End Sub |
| <ajax:GridTemplateColumn UniqueName="GCAppId" HeaderText="Application" SortExpression="AppId" > |
| <HeaderStyle Width="100px" /> |
| <ItemTemplate> |
| <asp:Label ID="lblGCAppId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AppId") %>'></asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:Label ID="lblGCEAppId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AppId") %>'></asp:Label> |
| <ajax:RadComboBox runat="server" ID="ddlAppId" DataSource="<%# getApp() %>" OnSelectedIndexChanged="BindSecondCombo" |
| DataTextField="Selection" AutoPostBack ="true" |
| DataValueField="AppId" |
| SelectedValue='<%# DataBinder.Eval(Container.DataItem, "AppId") %>'></ajax:RadComboBox> |
| </EditItemTemplate> |
| </ajax:GridTemplateColumn> |
| <ajax:GridTemplateColumn UniqueName="GCModuleParent" HeaderText="Module Parent" SortExpression="ModuleParent" > |
| <HeaderStyle Width="100px" /> |
| <ItemTemplate> |
| <asp:Label ID="lblModuleParent" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ModuleParent") %>'></asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <ajax:RadComboBox runat="server" ID="ddlModuleParentGC" ></ajax:RadComboBox> |
| <asp:textbox ID="txtModuleParent" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ModuleParent") %>'></asp:textbox> |
| </EditItemTemplate> |
| </ajax:GridTemplateColumn> |
| <telerik:RadGrid runat="server" ID="rgMediaInfo" Skin="Default" GridLines="None" |
| AllowSorting="true" ShowHeader="false" OnItemDataBound="rgMediaInfo_ItemDataBound"> |
| <ExportSettings Pdf-PageTitle="Masters Details" ></ExportSettings> |
| <MasterTableView> |
| <ItemTemplate> |
| <table width="320px"> |
| <colgroup > |
| <col /> |
| <col /> |
| </colgroup> |
| <tr> |
| <td> |
| <asp:Label ID="lblMediaTypeLabel" runat="server" Text="Media Type"></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="lblMediaType" runat="server" Text='<%#Eval("MediaType")%>' ></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblMediaAssetTypeLabel" runat="server" Text="Media Asset Type"></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="lblMediaAssetType" runat="server" Text='<%# Eval("MediaAssetType") %>'></asp:Label> |
| </td> |
| </tr> |
| * |
| * |
| * |
| * |
We have ran into an issue using the radcombobox with ShowMoreResultsbox and MarkFirstMatch properties set to true. After typing the first letter the radcombobox is loads the first 10 items as expected that match the letter typed in, but when the show more results is clicked only one value will be retrieved. It seems the e.text value no longer passes in what was typed, but since the MarkFirstMatch was set to true the first item in the list is passed into e.text.
Is there a way to hold the original value that was passed into the ItemsRequested e.text, instead of the autocompleted value? We are wanting to still use the MarkFirstMatch.
The issue can be replicated using the Load On Demand Demo and the 103208_sample.zip sample project.
http://mono.telerik.com/Combobox/Examples/PopulatingWithData/AutoCompleteSql/DefaultCS.aspx
Add a few more companies that start will L into the database.
Open up the page with the radcombobox.
Type L.
After the RadComboBox is loaded, click the show more results button.
The list will be populated with the first 10 items. However the Summary will show “items 1-1 out of 1.”
Thanks for your help.