V11 Three-State Logical Checkboxes

Uploaded on Aug 16, 2013 / 98 views / 352 impressions / 0 comments

alpha01803

More from this user

Description

M60 Alpha Five V11 Indeterminate checkboxes

In some applications, you might have a logical field in a Grid that is displayed using a checkbox. If the Grid is based on a SQL table that allows for NULL values, there are really 3 different states that the field value can have: true, false, and NULL. HTML checkbox controls only have two states - checked or unchecked, so by default the checkbox will appear unchecked for both the false and NULL state. Using Javascript, it is possible to set a checkbox state to "indeterminate". In this video, we show how you can set a checkbox control in a Grid to the "indeterminate" state if the data in the field is NULL.

Tags

  • Alpha Five V11
  • ftp