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

Rad Grid with multiple Radio buttons in a single Row

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mariyam Khambhati
Top achievements
Rank 1
Mariyam Khambhati asked on 06 Nov 2008, 04:06 PM
I have Created Rad Grid as follows:-
            

<

telerik:RadGrid ID="GrdSecurity" AllowPaging="True" ShowFooter="false"

 

 

runat="server" AutoGenerateColumns="False" AllowSorting="True" PageSize="3" Width="925px"

 

 

GridLines="Both" CellPadding="0" Skin="Default" AllowMultiRowSelection="true">

 

 

<MasterTableView ShowFooter="false">

 

 

 

<RowIndicatorColumn Visible="true" UniqueName="RowIndicator">

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn UniqueName="ContactCompanyId" SortExpression="ContactCompanyId"

 

 

HeaderText="" DataField="contactCompanyId" Visible="false" >

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName ="FirstName" SortExpression="FirstName"

 

 

HeaderText="UserName" DataField ="firstName" >

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Owner">

 

 

<ItemTemplate>

 

 

<asp:RadioButton ID="rbOwner" runat="server" EnableViewState="true" GroupName="userRights"/>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Viewer">

 

 

<ItemTemplate>

 

 

<asp:RadioButton ID="rbViewr" runat="server" EnableViewState="true" GroupName="userRights" AutoPostBack="false" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="None">

 

 

<ItemTemplate>

 

 

<asp:RadioButton ID="rbNone" runat="server" EnableViewState="true" GroupName="userRights" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="true" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

here I want to fill my grid with data (coming from database as a result List ) .In a single row of grid  only one radio button must be checked according to rightId column. How can I write my code on ASPX.cs page in C# .please provide solution as soon as possible  

 

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Nov 2008, 09:43 AM
Hello Mariyam,

The question set forth will be addressed in the support ticket that you opened on the matter. To avoid duplicate posts, we can continue our communication there.

Regards,
Yavor
the Telerik team

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