We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

SFCellGrid - CheckBox CellType

Thread ID:

Created:

Updated:

Platform:

Replies:

132541 Sep 7,2017 08:11 AM Sep 8,2017 09:29 AM UWP 1
loading
Tags: SfCellGrid
Murat Gürer
Asked On September 7, 2017 08:11 AM

Hello,
1 - When I set the CellType info of a cell to "CheckBox",CurrentCellBeginEdit or related events are not triggered after the checkbox state is changed by client interactions on UI. Am I missing something?
2 - How can I reset the checkbox state after changing the CellValue. The checkbox state remains still although I invalidate the cell.
Thanks in advance.

Thirumurugan Loganathan [Syncfusion]
Replied On September 8, 2017 09:29 AM

Hi Murat, 
 
Query 1: CurrentCellBeginEdit event not triggered for the checkbox cell type. 
 
CurrentCellBeginEdit event is not triggered for checkbox cell type and this is the behavior of the SfCellGrid. However CurrentCellValueChanged event of SfCellGrid will be fired when the checkbox state is changed by an user action. 
 
 
grid.CurrentCellValueChanged += Grid_CurrentCellValueChanged; 
 
private void Grid_CurrentCellValueChanged(object sender, Syncfusion.UI.Xaml.CellGrid.Helpers.CurrentCellValueChangedEventArgs e) 
{ 
            var checkbox = grid.CurrentCell.Style.CellRenderer.CurrentCellRendererElement as CheckBox; 
            if (checkbox is CheckBox) 
            { 
                     var State = checkbox.IsChecked; 
            } 
} 
 
 
 
Query 2: Checkbox state not updated after change the cell value. 
 
We can able to reproduce the reported issue “checkbox state not updated when change the cell value at runtime”. So separate incident has been created under your account. Please log into the below link for further updates. 
 
  
 
Regards, 
Thirumurugan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;