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

[Solved] Customize RadGrid

0 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ghadeer
Top achievements
Rank 1
ghadeer asked on 24 Jun 2009, 12:44 PM
Hi All,
I want to Cusomize RadGrid to be as Survey Page  I used Itemtemplate like this:

 

<ItemTemplate>

 

<table border="0">

 

 

 

<tr>

 

 

 

<td style="width :100px; background-color: #D0E0FF; border-left: #3366cc 1px solid; border-bottom: #3366cc 1px solid; border-top: #3366cc 1px solid">

 

 

 

<asp:Label ID="lblSNO" runat="server" CssClass="GridRow" Text='<%#Eval("QID")%>'></asp:Label></td>

 

 

 

<td align="left" style="width :650px; border-right: #3366cc 1px solid; border-left: #3366cc 1px solid; border-bottom: #3366cc 1px solid; border-top: #3366cc 1px solid">

 

 

 

<asp:Label ID="lblQuestion" runat="server" CssClass="GridRow" Text='<%#Eval("Question")%>'></asp:Label></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td style="width :100px; background-color: #D0E0FF; border-left: #3366cc 1px solid; border-bottom: #3366cc 1px solid;">

 

 

 

<asp:Label ID="Label1" runat="server" ForeColor="#3366cc" CssClass="GridRow" Text="Answer"></asp:Label></td>

 

 

 

<td align="left" style="width :650px; border-right: #3366cc 1px solid; border-left: #3366cc 1px solid; border-bottom: #3366cc 1px solid;">

 

 

 

<asp:CheckBoxList OnSelectedIndexChanged="CheckChanged" runat="Server" AutoPostBack="true" ID="chkAnswers" CellPadding="2" CellSpacing="2" RepeatLayout="flow" RepeatDirection="horizontal">

 

 

 

<asp:ListItem Text="one" Value="1"></asp:ListItem>

 

 

 

<asp:ListItem Text="two" Value="2"></asp:ListItem>

 

 

</asp:CheckBoxList>  </td</tr</table>

 

 

</ItemTemplate>


But I switch to design Mode I get No record found ,prolem is solve if I add coulmns to mastertableview ????


Please Help me ASAp
ghadeer

 

 

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
ghadeer
Top achievements
Rank 1
Share this question
or