Jqx grid editable and readonly based on condtion

Posted by Mokkarasu under jQuery on 2/20/2015 | Points: 10 | Views : 930 | Status : [Member] | Replies : 0
Hi all,

In my project am using jqxgrid.In this grid one cell will be editable. Its working fine. But my requirement is the editable cell should be readonly for some records based on value. For example am having 4 cells in grid, based on third cell value the fourth cell should be editable or read-only

below is my code

$("#FileFieldGrid").jqxGrid(
{
width: 610,
autoheight: true,
source: appleveldataadapter,
rowdetails: true,
rowsheight: 30,
editable: true,
ShowHeader: false,
ready: function () {
//$('#FileFieldGrid').jqxGrid('selectrow', 0);
},
columns: [
{ text: '', datafield: 'isEditable', columntype: 'checkbox', width: 50, editable: true, type: 'boolean' },
{ text: '', datafield: 'CanEditUserInput', width: 160, editable: false },
{ text: '', datafield: 'UserInput', columntype: 'textbox', width: 160, editable: true },
{ text: '', datafield: 'isDeleteEnabled', columntype: 'checkbox', width: 50, editable: true, type: 'boolean'},
]
});


Can any one give me a solution. Thanks in advance.




Responses

(No response found.)

Login to post response