Forum



19:05

18/08/2011

hi everyone, I'm new of jqGrid and this is a great work. I have a question.
I would like to create a form that allows me to customize the input box for a single cell
my grid is simple:
category1 | value1 | value2 | ….
category2 | value1 | value2 | ….
I need two different form to add/edit category or value.
And not only the value of the cell but also other meta data (es. category and description, or value1 and comment)
then i will save the data on remote database.
someone could help me by directing me towards the right path?
thanks a lot
bye Don
14:57

18/08/2011

very good, something happened
ondblClickRow: function(rowid,iRow,iCol,e) {
$(this).jqGrid('editGridRow', rowid,
{
recreateForm: true,
beforeShowForm: function(formID) {
// understand html code
//var html = jQuery(formID).html();
//alert(html);
jQuery('tr',formID).hide();
$('#tr_cat',formID).show();
jQuery('#tr_cat', formID).after('<tr rowpos="33" class="FormData" id="tr_32"><td class="CaptionTD">32</td><td class="DataTD"> <input type="text" id="32" name="32" role="textbox" class="FormElement ui-widget-content ui-corner-all"></td></tr>');
}
});
}
Most Users Ever Online: 715
Currently Online:
83 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66