Changing checkbox value from client side in grid

4 replies. Last post: October 12, 2015 7:04 AM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

I have a simple situation wherein, I have Intersoft grid and some editable columns in the grid.

I also have a checkbox column in the grid. 

Now, the case is that, if user changes any value(text) in one of my grid columns, then I want my checkbox value to be changed i.e. If the checkbox value is true then It should become false.

Here my sample client side code snippet for that:

var checkboxCell = grid.GetSelectedObject().ToRowObject().GetCells().GetNamedItem("MyCheckboxColumn");

I am able to get the Checkbox cell in the above line. 

checkboxCell.checked = false; 

checkboxCell.SetValue(false, false);

I tried both the above options to set the checkbox value, but it does not change the checkbox value.

The server side code to create the checkbox column:

MyColumn.ColumnType = ColumnType.CheckBox;

MyColumn.EditType = EditType.Checkbox;

MyColumn.FilterEditType = FilterEditType.Checkbox;

I hope this is a simple case which many of us would have already faced. Please let us know if someone knows the solution for this, since this is quite urgent...

I also tried using IsRowChecker property set as True, but then also it did not work, moreover, I do not want to use IsRowChecker since in the future we may have multiple checkboxes in this grid.

Thanks,

Ravinder

All times are GMT -5. The time now is 2:31 PM.
Previous Next