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

Repeate Columns on radgrid

3 Answers 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohsin
Top achievements
Rank 1
mohsin asked on 27 Jul 2008, 08:05 PM

Hi,

 I have used  DataList where there is a property RepeatColumns="9". Is there any way in radGrid to use this kind of feature?

 My requirment is to show data base on group
Say,

Group1                            Group2
 Data 1    data 2  data3       dataa  data b  data c
data 4      data 5  data6       datad  data e 


Or can i do it by using Radmenu or any other rad control?
I have all radcontrols purchased!

Can anyone help me out?


Thanks
--Mohsin





3 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 29 Jul 2008, 08:48 AM
Hello Mohsin,

The required functionality can be implemented using a GridTemplateColumn, where in the ItemTemplate you would define your own <table> element with the required amount of columns:

<telerik:GridTemplateColumn> 
    <ItemTemplate> 
        <table> 
            <tr> 
                <td> 
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Column1") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Column2") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("Column3") %>'></asp:Label> 
                </td> 
            </tr> 
        </table> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 


Greetings,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mohsin
Top achievements
Rank 1
answered on 29 Jul 2008, 03:46 PM

Hi,

Thanks for your reply.
I know about the GridTemplateColumn, but i dont think it can provide my requirements. As column1, column2 etc are different column. And they will be repeated vertically

 My need is a batch of columns will be repeated horizontal.  Please see the link given below, this is done by DataList, i want to do this by Radcontrols.

http://www.wantscheck.com//GuardReserve/GuardUnits/tabid/76/Default.aspx


Thanks
--Mohsin
0
Vlad
Telerik team
answered on 29 Jul 2008, 04:03 PM
Hello mohsin,

You can try the approach from this thread:
http://www.telerik.com/community/forums/thread/b311D-mdmcd.aspx

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
mohsin
Top achievements
Rank 1
Answers by
Veli
Telerik team
mohsin
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or