This is a migrated thread and some comments may be shown as answers.

how to replace default textbox from filteringItem

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hiren
Top achievements
Rank 1
Hiren asked on 24 Aug 2011, 02:52 PM
I want to replace default textbox with radcombo and want to remove filter icon. I got samples for google like filtering but that sample is working when there is no default gridboundcolumns defined and datafield is not attached. I want to retain my design time columns and want to those Datafields and want to apply google like filtering.

can anyone tell me how to replace textbox control with radcombo [google like filtering], below is sample grid which i am using

<telerik:RadGrid ID="rgdRefer" runat="server" GridLines="Vertical" AllowSorting="True"
                       AllowPaging="True" AutoGenerateColumns="False" EnableEmbeddedSkins="false" Skin="CustSkin"
                       PageSize="5" CellSpacing="0" OnItemCommand="rgdRefer_ItemCommand"
                       OnItemDataBound="rgdRefer_ItemDataBound" Width="1020px" OnColumnCreating="rgdRefer_ColumnCreating"
                       AllowFilteringByColumn="true"
                       onneeddatasource="rgdRefer_NeedDataSource">
                       <GroupingSettings CaseSensitive="false" />
                       <SortingSettings EnableSkinSortStyles="false" />
                       <ClientSettings>
                           <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="180px" />
                       </ClientSettings>
                       <MasterTableView AllowNaturalSort="false" DataKeyNames="Id" Width="100%">
                           <Columns>
                               <telerik:GridButtonColumn HeaderText="Select" UniqueName="ibtnEdit" ImageUrl="~/App_Themes/BDefault/images/select_icon2.png"
                                   ButtonType="ImageButton" Visible="false" CommandName="EditUser" />
<telerik:GridBoundColumn HeaderText="Custom Field 12" DataField="CTA_5" UniqueName="CTA_5"
                                   SortExpression="CTA_5" Visible="false" />
                               <telerik:GridBoundColumn HeaderText="Custom Field 13" DataField="CTA_6" UniqueName="CTA_6"
                                   SortExpression="CTA_6" Visible="false" />
                               <telerik:GridBoundColumn HeaderText="Custom Field 14" DataField="CTA_7" UniqueName="CTA_7"
                                   SortExpression="CTA_7" Visible="false" />
                           </Columns>
                       </MasterTableView>
                   </telerik:RadGrid>
same code i copied in my page.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid

but its removing existing columns and binding new filtering template column

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 26 Aug 2011, 08:13 AM
Hello Giri,

I checked your account and it occurs that you have opened several forum threads for the same thing. It is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers in a shorter time.

Best wishes,
Pavlina
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Hiren
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or