Home › Forums › Guriddo jqGrid JS › Help › Setting Caption for Edit Grid
I have a Grid I'm using Form Edit, and trying to set the caption to something other than
How about
Thanks but that didn't work either.
Where did you add the editCaption? if you're using navgrid('#pager',{ edit:true, etc},{editCaption:'New Caption, other properties of edit form},{}//etc should work
I'm trying to set it in the before show form of the edit action.
When the user selects a row of the grid to edt, I want to set either the caption or the top info to the value of a col in the selected row.
if I understant you correctly you are calling editGridRow(id,{}); in this case you can add it as following:
editGridRow(id,{editCaption: 'Edit caption', afterShowForm: function(){}, etc});
Hi,
Thanks for the help.
Hello,
You call editGridRow twice which IMHO is not good.
In order to change the edit caption dynamically do this:
beforeShowForm : function (formid) {
var mytitle = “My text to show”; // or what you want
$(“.ui-jqdialog-title”,”#edithd”+mygridid).html(mytytle);
}
wher mygrid id is the id of the grid.
Best Regards
Tony
Ahhhh, ok now I understand….(I think).
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS