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

customized grid

2 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sadiqabbas
Top achievements
Rank 1
sadiqabbas asked on 04 Mar 2009, 06:18 AM
Dear Sir/s,

I would like to ask a solution for data grid that

i need an output as


eg:
{database}
id        name         description
1         raj               xyz xyz abc
2         mohan        abc abc xyz


{query select * from database}


output
{RAD datagrid}
            <tr>
                <td>
                          <a href="~/profiles.aspx?id=ID{of database}"> NAME{of database}</a><br>
                </td>
            </tr>
            <tr>
                <td>
                          Description{of database}
                </td>
            </tr>

i hope i am able to make u understand.......
if not then please below is link to image

image


really very sorry for poor english

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 04 Mar 2009, 07:00 AM
Hi,

You can use a GridTemplateColumn to achieve the desired scenario.

ASPX:
<MasterTableView AutoGenerateColumns="false"   > 
               
             <Columns> 
               
               <telerik:GridTemplateColumn UniqueName="TempCol"  HeaderText="TempCol" > 
                 <ItemTemplate> 
                   <tr> 
                         <td> 
                            <href="profiles.aspx?id='<%#Eval("id") %>' "<%#Eval("name")%></a><br> 
                         </td> 
                  </tr> 
                  <tr> 
                        <td> 
                           <%#Eval("description")%> 
                       </td> 
                 </tr> 
                 </ItemTemplate> 
               </telerik:GridTemplateColumn> 
            </Columns> 
             
            </MasterTableView> 


Thanks
Shinu
0
Princy
Top achievements
Rank 2
answered on 04 Mar 2009, 09:46 AM
Hello,

You can also refer to the following help document which explains on how to customize your grid cells using TemplateColumns:
Customizing with GridTemplateColumn

Thanks
Princy.
Tags
Grid
Asked by
sadiqabbas
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or