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

Editing Unbound Checkbox in RadGrid

1 Answer 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tony
Top achievements
Rank 1
tony asked on 28 Jun 2012, 08:57 PM
Is it possible to edit unbound checkbox in a radgrid? my experience is telling me no, but perhaps there is trick i could use to do so.

i have a grid bound to a sqldatasource. the data source includes a dummy column cast as a bit to default true. the check box displays checked (as expected) but whenever i enter edit mode, uncheck the box, then click update, the check box reverts to checked because - i surmise - that it is rebinding to the dummy bit column which is set to 1/true.

it is this surmised behavior which i wish to override. is it possibe? if not, would you consider adding a feature to allow for a free standing unbound check box so that developers can present a toggle for subsequent processing of grid items? i do not care to save this information to a data store - i only need it to process selected grid items.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 03 Jul 2012, 08:02 AM
Hi,

 If you only need to process the selected items you can use the GridClientSelectColumn (as shown in this demo) Or you can also add a GridTemplateColumn with checkbox in the ItemTemplate as shown here. This way the value of the checkbox will not be affected when you perform an update operation.

Kind regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
tony
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or