Hello,
I am looking for a combo box with a textbox as first item so that user can enter a text and then click on the dropdown to select a search kind ex. Starts with Ends With. This is a search condition attached to the RadGrid. Please refer to the following code. The search condition also has excel like advanced filter. Is it possible to make the first Item in the RadMenu - "All" to a editable mode?
Thanks,
JJ
I am looking for a combo box with a textbox as first item so that user can enter a text and then click on the dropdown to select a search kind ex. Starts with Ends With. This is a search condition attached to the RadGrid. Please refer to the following code. The search condition also has excel like advanced filter. Is it possible to make the first Item in the RadMenu - "All" to a editable mode?
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="true" AutoGenerateColumns="false"
GridLines="None" Width="95%" AllowPaging="true" PageSize="25" OnNeedDataSource="RadGrid1_NeedDataSource"> <MasterTableView Width="100%" DataKeyNames="City" AllowFilteringByColumn="true" FilterItemStyle-Width="100%"> <Columns> <telerik:GridBoundColumn DataField="City" HeaderText="City" UniqueName="City"> <FilterTemplate> <telerik:RadComboBox ID="RadSearchComboBox" Height="60px" AppendDataBoundItems="true" AutoPostBack="true" Text="" runat="server" OnSelectedIndexChanged="FilterCombo_SelectedIndexChanged" OnClientSelectedIndexChanged="SelectedIndexChanged" ShowDropDownOnTextboxClick="true"> <Items> <telerik:RadComboBoxItem Text="All" Value="All" Style="display: none;" /> <telerik:RadComboBoxItem Text="Chennai" Value="Chennai"/> <telerik:RadComboBoxItem Text="Hyderabad" Value="Hyderabad" /> </Items> <HeaderTemplate> <telerik:RadMenu runat="server" ID="radM" Flow="Vertical" > <Items> <telerik:RadMenuItem Text="Select Filter"> <Items> <telerik:RadMenuItem Text="Starts With" Value="SW"></telerik:RadMenuItem> <telerik:RadMenuItem Text="Ends With" Value="EW"></telerik:RadMenuItem> </Items> </telerik:RadMenuItem> </Items> </telerik:RadMenu> </HeaderTemplate> <ItemTemplate> <asp:CheckBox runat="server" ID="CheckBox" onclick="stopPropagation(event);" Text=""> </asp:CheckBox> <asp:Label ID="lbl" runat="server" Text='<%# DataBinder.Eval(Container, "Text") %>'></asp:Label> </ItemTemplate> </telerik:RadComboBox> </FilterTemplate> </telerik:GridBoundColumn> </Columns> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> </telerik:RadGrid>JJ