jQWidgets Forums

jQuery UI Widgets Forums Grid Checkbox Column

This topic contains 4 replies, has 2 voices, and was last updated by  mohammad 8 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Checkbox Column #86420

    mohammad
    Participant

    hi

    I’m not able to edit checkbox column, Please look in to this matter.
    I just want to edit only checkbox column the rest columns should be non editable columns
    Thanks in advance…

            var source = {
                    datatype: "json",
                    datafields: 
                    [
    			{name: 'Sel',type: 'bool'},
                    	{name: 'Code',type: 'string'}, 
                    	{name: 'CoName',type: 'string'}
                    ],
                    id: 'CId',
                    url: '\GetComp',
                    async: true
                };
           	
           	
                var dataAdapter = new $.jqx.dataAdapter(source);
                $("#jqxgrid").jqxGrid({theme:'light',
                    width: 780,
                    height: 277,
                    source: dataAdapter,
                    columns: 
                    [
    		 { text: 'Sel', columntype: 'checkbox', datafield: 'Sel', width: 90},
                     {text: 'Code',datafield: 'Code',width: 50}, 
                     {text: 'Company Name',datafield: 'CoName',width: 630}
                    ]
                });
    });
    Checkbox Column #86442

    Ivo Zhulev
    Participant

    Hi mohammad,

    You should use editable: false in each column.

    Best Regards,
    Ivo

    jQWidgets Team
    http://www.jqwidgets.com/

    Checkbox Column #86455

    mohammad
    Participant

    hi,

    After adding editable:false also i’m not able to Check/Uncheck column “Consolidate”

            var source = {
                    datatype: "json",
                    datafields: 
                    [
    					{name: 'Sel',type: 'bool'},
                    	{name: 'Code',type: 'string'}, 
                    	{name: 'CoName',type: 'string'}
                    ],
                    id: 'CId',
                    url: '\GetComp',
                    async: true
                };
           	
           	
                var dataAdapter = new $.jqx.dataAdapter(source);
                $("#jqxgrid").jqxGrid({theme:'light',
                    width: 780,
                    height: 290,
                    source: dataAdapter,
                    columns: 
                    [
    				 {text: 'Consolidate',editable: true, columntype: 'checkbox', datafield: 'Sel', width: 90},
                     {text: 'Code',editable: false,datafield: 'Code',width: 50}, 
                     {text: 'Company Name',editable: false,datafield: 'CoName',width: 600}
                    ]
                });
    Checkbox Column #86480

    Ivo Zhulev
    Participant

    Hi mohammad,

    Do you have editable: true in the grid props?

    Best Regards,
    Ivo

    jQWidgets Team
    http://www.jqwidgets.com/

    Checkbox Column #86566

    mohammad
    Participant

    hi,

    No i don’t have editable: true in grid props

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.