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

Merge two colums headers and give filter for of the column

2 Answers 255 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 10 Jan 2012, 04:24 PM
Hi
I'm using radgrid in my applicaiton very commonly,almost in every page.
I have a requerement where I need to merge two columns headers and give the filter for second column.
curretly i'm doing as follows
<Columns>
     <telerik:GridTemplateColumn DataField="A" AllowFiltering="false">
     <ItemTemplate>
     <asp:Image id="image1"  runat="server" ImageUrl='<%# Bind("abc")%>' ToolTip='<%# Bind("def")%>' Height="15px"  />
     </ItemTemplate>
      </telerik:GridTemplateColumn>
     <telerik:GridHyperLinkColumn FilterControlToolTip="Filter Text"  DataTextField="Name" DataNavigateUrlFields="Name" UniqueName="HyperLinkColumn" DataNavigateUrlFormatString="some text" AllowFiltering="true" HeaderStyle-HorizontalAlign="Left"  FilterControlWidth="90px" Target="frame2" />
      </Columns>
Here I want to merge both grid template column and gridhyperlink column.
I want filter for hyperlink column with left alignment means,it will occupy enterire header.
please help me asap..

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Jan 2012, 05:37 PM
Hello,

You can refer to the online resources below for more information about how to merge columns in grid:
http://www.telerik.com/help/aspnet-ajax/grid-appearance-customize-gridtemplatecolumn.html
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx (See the last column in the first grid)

Additionally, the following code library illustrates how to implement sorting and filtering for sub-columns in Template columns:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/individual-filtering-and-sorting-for-quot-sub-columns-quot-in-template-column.aspx

Give them a try and let me know if further assistance is needed.

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Ram
Top achievements
Rank 1
answered on 22 Jan 2012, 09:36 AM
Sorry I was not able to solve it by using these references.
I think this  is some what differ from what I expected..
Tags
Grid
Asked by
Ram
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Ram
Top achievements
Rank 1
Share this question
or