Model:
In Grid column bound filter added a client Template as :
This will result in a view like this

When we check the box only true values are shown
When we uncheck the box only false values are shown
When we click filter clear button shows both true and false
Our aim is to
1.We don’t need to show the Filter clear button only on this column
2.Checking the box only show true values
3. Uncheck the box show both true and false values.
How can we achieve the above behavior like customize the grid filter conditions.
Public Int Id{get;set}
Public string Desc{get;set}
Public bool IsValid;set}
columns.Bound(c => c.isValid).Filterable(f => f
.Cell(c => c.Template("MyBooleanCellTemplate"))
).ClientTemplateId("isValid").Title("Valid");
<script id="isValid" type="text/x-kendo-template">
#if(isValid){#
<i style='color:green;font-size:20px;' class='k-icon k-i-check'></i>
#}else{#
<i style='color:red;font-size:20px;' class='k-icon k-i-x'></i>
#}#
</script>
<script>
function MyBooleanCellTemplate(args) {
var radioInput = $("<input type='checkbox'/>");
var wrapper = args.element.parent();
var inputName = kendo.guid.
args.element.remove();
var labelTrue = $("<label/>")
.text("")
.append(radioInput);
radioInput.attr(kendo.attr("bind"), "checked:value") // Add the "bind" attribute, specify the unique and, and set a value.
.attr("name", inputName)
.val("true");
wrapper.append([labelTrue]);
};
</script>
When we check the box only true values are shown
When we uncheck the box only false values are shown
When we click filter clear button shows both true and false
Our aim is to
1.We don’t need to show the Filter clear button only on this column
2.Checking the box only show true values
3. Uncheck the box show both true and false values.
How can we achieve the above behavior like customize the grid filter conditions.