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

[Solved] Populate checkbox and edit all rows?

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
molox
Top achievements
Rank 1
molox asked on 30 Jun 2008, 02:23 PM

How do I
  • Populate my Telerik Invitation grid containing a Name column and a "participating" checkbox column
  • make ALL checkboxes editable (I don't want to force the user to press edit on each row)
  • when user clicks a checkbox - post the check/uncheck

I managed to populate the grid with a stroly typed dataset in RadGrid_NeedDataSource. Name = Name column, Participating =  true or false (VB.Net "system.boolean").


// first day with Telerik

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Jul 2008, 07:00 AM
Hi,

CheckBox in the GridCheckBoxColumn will be clickable only in editmode.Try adding a GridTemplateColumn with CheckBox in its ItemTemplate.

ASPX:
<telerik:GridTemplateColumn DataField="Boolean" UniqueName="TempCol">  
    <ItemTemplate> 
        <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%#Eval("Boolean") %>' /> 
    </ItemTemplate> 
   </telerik:GridTemplateColumn> 


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