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

RadGrid Checkbox Bugged?

1 Answer 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ronan
Top achievements
Rank 1
Ronan asked on 12 May 2017, 07:20 PM

Hello, 

I am currently using the checkbox template column to bind a boolean column which seems to be working fine except for one major problem. 

When I click the checkbox (changed state) I will have to click multiple times around and/or above the checkbox row location to trigger the edited flag.

I need the flag triggered in order to call my batch edit save button function. (Batch save wont trigger without having edit flag up)

Everything seems to be binding properly without issue but except for getting the flag to trigger. Again, only multiple clicks around the checkbox will finally trigger the flag (exact position isn't clear). 

 

Best, 

-R

 

ASP Code:

 

<telerik:GridTemplateColumn ColumnEditorID="CompletedBox" Reorderable="true" AllowSorting="true" HeaderText="Complete" >
                  <HeaderStyle Width="60px" />
                  <ItemStyle CssClass="float-right" />
                   <ItemTemplate> 
                    <asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Bind("CompletedAsBool") %>' /> 
                   </ItemTemplate>
                  <EditItemTemplate >
                    <asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("CompletedAsBool") %>' />
                  </EditItemTemplate>
</telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 17 May 2017, 01:56 PM
Hi Ronan,

The experienced behavior is expected as the Checkbox itself is an editable element (you can change its state outside the Grid's Edit form), thus the change flag is triggered after the checkbox element is blurred.

The following help article suggest a possible approach to handle this scenario:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/batch-editing/how-to/editing-checkboxes

Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Ronan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or