c# - jqgrid functionality to allow adding two columns using add-form but to allow editing of only one column by inline-edit option -


i using jqgrid display database table , loading jqgrid using dataset asp.net code behind file. columns generated code behind file @ runtime. have 2 columns (primarykey column[which not auto-increment field], text field column) , want provide add functionality both columns using add-form edit functionality 1 column i.e text field column using inline editing.

this similar question reported here , answer pretty close want. found other solutions of solutions use data in json format , loaded javascript.

i having hard time figuring out above functionality because data loaded database , wish modify editable property. default have primary field not-editable , text field - editable.

i appreciate help.

the answer reference oriented on inline editing mode. in case of usage of form editing can recommend follow this. can combine both force inside of beforeshowform both columns editable in add form , making 1 column editable in case of edit form or inline editing.

updated: email send me first of find out used wrong tag jqgrid question instead of jqgrid-asp.net. used commercial jqsuite product instead of free open source javascript jquery plugin jqgrid. answered how can solve problem in jqgrid, problem how use same in .net classes provide jqsuite.

in case can find solution in the answer. should fix typing error in code , use different properties jqgrid1.clientsideevents.afteradddialogshown , jqgrid1.clientsideevents.aftereditdialogshown.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -