Completed
Last Updated: 11 Sep 2021 17:04 by ADMIN
Release 2.22.0
Maurice
Created on: 16 Jun 2020 09:16
Category: Grid
Type: Feature Request
10
TelerikCheckBox should be the default in the Grid for editing boolean fields
At the moment, in Edit mode you get a simple <input type=checkbox /> which does not completely fit the styling.
3 comments
ADMIN
Marin Bratanov
Posted on: 11 Sep 2021 17:04

Hello Jim,

You can do this in blazor by evaluating the desired value with the desired logic (say, myNumber % 13 == 0) in the Value parameter of the component. You can then update that field through the ValueChanged event handler with the desired logic. You can also set the Indeterminate parameter with a similar expression/logic/method. You can see similar approach applied to the standalone checkbox at the top in this demo - even if in that case it is done to achieve some business logic.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jim
Posted on: 10 Sep 2021 20:40

I use a windows Checkbox component that has these properties:

- ValueChecked

- ValueGrayed

- ValueUnchecked

 

That allows me to store a "T" or "F" in a DB that does not have a boolean field type.  Furher it allows almost any value to be used to represent True or False, including 0 and 1.

ADMIN
Marin Bratanov
Posted on: 16 Jun 2020 09:17

A workaround can be to use a custom editor template to put a TelerikCheckBox in.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.