Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
how to remove tristate for UnboundCheckBoxField
posted

I am using a UnboundCheckBoxField and binding data on the client using ajax. How do i set/reset the checkbox to default to unchecked?

Parents
No Data
Reply
  • 37874
    posted

    Hi c_v_nag,

    You can use something like the followig javascript code to set the values for UnboundCheckBoxField:

    var grid = $find("WebDataGrid1");
    var rowsCount = grid.get_rows().get_length();
    for (var i = 0; i < rowsCount; i++) {
        grid.get_rows().get_row(i).get_cellByColumnKey("UnboundField1").set_value(false);
    }

    If you have any questions regarding the mater, please let me know.

Children