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

InlineEdit - Need To Select Dropdown Twice to Capture Value

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SOLOMON
Top achievements
Rank 1
SOLOMON asked on 16 Jan 2014, 04:03 PM
I have a simple grid where only a Boolean field needs to be change. The Boolean allows for nulls. When I edit the row, I have to select the value twice before it holds the value, then save. The selected value saves fine. Its just having to select it twice to get it to stick. Has anyone seen this behavior before?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 17 Jan 2014, 02:41 PM
Hi Solomon,

Basically editing of nullable boolean using checkbox is invalid configuration as the checkbox have only two states. That why a DropDownList should be used instead - please check the example editor below:

{
    title: "Is Completed",
    field: "IsCompleted",
    encoded: true,
    editor: '<select class="list-box tri-state" id="IsCompleted" name="IsCompleted">' +
        '<option selected="selected" value="">Not Set</option>' +
        '<option value="true">True</option>' +
        '<option value="false">False</option>' +
        '</select>'
}

Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
SOLOMON
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or