Checkbox is checked and textbox field become readonly

1 posts, 0 answers
  1. Kartik
    Kartik avatar
    3 posts
    Member since:
    Oct 2012

    Posted 30 Oct 2012 Link to this post

    I want to put functionality like when Checkbox is checked and textbox field become readonly. Please give me solution for this.

    function plan_min_unlimited(container, options)
        $('<input type="checkbox" name="' + options.field + '" onclick="chkclickmin(this.value)"/>').appendTo(container)
    function chkclickmin(val){
        $('#grid').data('kendoGrid').tbody.find("plan_minutes"). Editable(false);
                dataSource: dataSource,
                pageable: true,
                toolbar: [{name:"create",text:"Add new Plan"}],
                columns: [                
                    {field:"plan_min_chk",title:"<strong>UnlimitedPlan</strong>",hidden:true,editor: plan_min_unlimited},                
                    {field:"plan_minutes", title:"<strong>Plan Minutes</strong>",width:"100px"},
                    {command: ["edit", "destroy"], title: "&nbsp;", width: "210px",title:"<strong>Action</strong>" }],     
                editable: {
                    mode: "popup",             
                    destroy: true,             
                    confirmation: "Are you sure you want to remove this test member?"
Back to Top