jQWidgets Forums
jQuery UI Widgets › Forums › Grid › jqxGrid: Making a column non editable or editable on click of radio button
Tagged: jqxgrid
This topic contains 7 replies, has 3 voices, and was last updated by Peter Stoev 11 years, 5 months ago.
-
Author
-
May 27, 2013 at 7:57 am jqxGrid: Making a column non editable or editable on click of radio button #21890
I have implemented ‘Keyboard Navigation’ jqxgrid in my project. I have two radio buttons outside the jqxGrid. Now, if I click on one radio button say named as ‘FTE’, the ‘Hours’ column in jqxGrid should become non editable and ‘FTE’ column in jqxGrid should become editable. I have called a function in the onclick event of the radio button, in which I am doing the following:
$(“#jqxgridSkillGrpSummary”).jqxGrid(‘begincelledit’, 0, ‘fteSummary’, true);
$(“#jqxgridSkillGrpSummary”).jqxGrid(‘endcelledit’, 0, ‘hoursSummary’, true);
But still it is not working. Can somebody please help me on this.
May 27, 2013 at 8:00 am jqxGrid: Making a column non editable or editable on click of radio button #21901Hi,
The “begincelledit” and “endcelledit” methods are for beginning a new edit operation which includes opening an Editor and ending an edit operation. In addition, to use these methods you should enable the Grid’s editing by setting “editable” to true and including jqxgrid.edit.js is required.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/May 27, 2013 at 8:27 am jqxGrid: Making a column non editable or editable on click of radio button #21905Hi,
I have included ‘jqxgrid.edit.js’ and even though I enable the setting “editable” to true , it is not working for me. Is there anything wrong with this code, where in I am trying to make column ‘hoursSummary’ present in jqxGrid as editable, where in by default I have set the column’s setting as ‘editable:false’
$(“#jqxgridSkillGrpSummary”).jqxGrid(‘begincelledit’, 0, ‘hoursSummary’);
May 27, 2013 at 8:28 am jqxGrid: Making a column non editable or editable on click of radio button #21906Hi,
That code does not make a column to be editable. It starts an editor, if the Grid’s initialization is correct.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/May 27, 2013 at 8:36 am jqxGrid: Making a column non editable or editable on click of radio button #21907Hi,
Ok, I got your point. Thanks for the information. In that case, I can’t make a column in jqxGrid editable or non-editable dynamically?
May 27, 2013 at 8:43 am jqxGrid: Making a column non editable or editable on click of radio button #21909Hi,
To make a column editable/non -editable you should set the column’s editable property to true or false. To set a column property in jqxGrid, you should use the Grid’s setcolumnproperty method.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/January 18, 2014 at 12:39 am jqxGrid: Making a column non editable or editable on click of radio button #48034I used this example http://jsfiddle.net/jqwidgets/XSKXc/ to try to make a column editable on button click but it doesn’t work. Here is the code I tried. What am I missing?
$('#jqxbutton').click(function () { $('#jqxgrid').jqxGrid('setcolumnproperty', 'firstname', 'width', 200); $('#jqxgrid').jqxGrid('setcolumnproperty', 'firstname', 'editable', true); });
January 18, 2014 at 6:35 am jqxGrid: Making a column non editable or editable on click of radio button #48037Hi qtipaddict,
To make a column editable, the Grid’s editable property should be set to true.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.