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

[Solved] Grid Formatting for Notes Field

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Keith Harvey
Top achievements
Rank 1
Keith Harvey asked on 03 Feb 2010, 05:26 PM
Hi there, I need to configure a grid that has three columns (User, Date, Notes).

I need the User and Date columns to display in the row as normal, but I need the Notes to display underneath the User and Date. Here is a crude drawing of what I need:

-----------------------------------------------------------------------------
| User                                                | Date                             |
-----------------------------------------------------------------------------
| The notes go here in this space.                                           |
|                                                                                               |
|                                                                                               |
-----------------------------------------------------------------------------
| User                                                | Date                             |
-----------------------------------------------------------------------------
| The notes go here in this space.                                           |
|                                                                                               |
|                                                                                               |
-----------------------------------------------------------------------------
etc...

Does this make sense? I am new to Telerik (in the trial) and have no idea of how to go about this, or even if it is possible.

Can someone help me?

Cheers!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Feb 2010, 06:25 AM
Hello Keith,

One suggestion is by using table structure in ItemTemplate of GridTemplateColumn in order to customize the appearance as required.

aspx:
 
   . . . 
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
        <Columns> 
            <telerik:GridTemplateColumn UniqueName="TemplColumn" HeaderText="Approved Status"
                <ItemTemplate> 
                    <table width="100%"
                        <tr> 
                            <td> 
                                <%# Eval("User") %> 
                            </td> 
                            <td> 
                                <%# Eval("Date")%> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                <%# Eval("Notes")%> 
                            </td> 
                        </tr> 
                    </table> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
        </Columns> 
</MasterTableView> 
   . . . 

-Shinu.
Tags
Grid
Asked by
Keith Harvey
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or