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

[Solved] Multi Coumn With common Header

1 Answer 137 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Suresh Krishna
Top achievements
Rank 1
Suresh Krishna asked on 23 Feb 2010, 12:29 PM
Hi
I wanted to have atlest 5-6 coulumns under one heading in a grid.I saw the code which was posted in the below link

http://www.telerik.com/community/code-library/aspnet-ajax/grid/individual-filtering-and-sorting-for-sub-columns-in-template-column.aspx

Now the problem what i am facing is ,when the data is very long, the complete column in the grid gets de-align ..I tried even fixing the size still the same result,
Even in the code which was posted in the thread ,when i change the data its the same issue.

Is there any other method other than GridTemplateColumn to implement it.

This is the same code which i got from that thread,i have highlighted the thing i  have changed.

<radG:RadGrid ID="RadGrid1" AllowPaging="True" AutoGenerateColumns="False" AllowFilteringByColumn="True"
                runat="server" Width="200px" Skin="Glassy">
                <MasterTableView Width="100%">
                    <Columns>
                        <custom:MyCustomFilteringColumn datafield1="Country" datafield2="City" headertext="Country/City"
                            uniquename="MyCustomTemplateColumn" HeaderStyle-VerticalAlign="Middle">
                            <headertemplate>
                            <table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="1">
                                <tr>
                                    <td colspan="2" align="center"><b>Address</b></td>
                                </tr>
                                <tr>
                                    <td style="width:50%">
                                        <asp:LinkButton id="btnSortByCountry" Text="Country" Tooltip="Sort by Country" CommandName='Sort'
                                            CommandArgument='Country' runat="server" Width="100%" /></td>
                                    <td style="width:50%">
                                        <asp:LinkButton id="btnSortByCity" Text="City" ToolTip="Sort by City" CommandName='Sort' CommandArgument='City'
                                            runat="server" Width="100%" /></td>
                                </tr>
                            </table>
                        </headertemplate>
                            <itemtemplate>
                            <table id="Table2" cellspacing="1" cellpadding="1" width="100%" border="1">
                                <tr>
                                    <td style="width:50%">RandomValuuesWithOutSpace</td>
                                    <td style="width:50%"><%# Eval("City") %></td>
                                </tr>
                            </table>
                        </itemtemplate>
                        </custom:MyCustomFilteringColumn>
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="NumericPages" />
            </radG:RadGrid>




1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Feb 2010, 12:42 PM
Hi Suresh,

Please, examine the following links, which elaborate on this subject and let me know if the issue still persists:
http://www.telerik.com/help/aspnet-ajax/grdcustomizewithgridtemplatecolumn.html
http://www.telerik.com/community/code-library/aspnet-ajax/grid/span-cells-in-grid-over-multiple-positions.aspx

Best wishes,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Suresh Krishna
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or