Forum
11:34
04/07/2011
I want to create jqGrid in Add/Edit form via column options:
function myelem (value, options) {
var el = document.createElement("table");
$(el).jqGrid(
{
datatype: "local",
colNames:['','Name'],
colModel:[
{name:'id'},
{name:'name'},
]
});
return el;
}
function myvalue(elem, operation, value) {}
jQuery("#grid").jqGrid({
…
colModel: [
...
{
name:'items',
...,
editable:true,
edittype:'custom',
editoptions:{
custom_element: myelem,
custom_value:myvalue}
},
...
]
…
});
</script>
But i've encoutered with problem. Browser issues error exception when i'm clicking a add or edit buttons in main (#grid) table:
SCRIPT5022: DOM Exception: HIERARCHY_REQUEST_ERR (3)
jquery-1.5.2.js, line 5148 character 5
If i've processed rendering of form table ( $(el).jqGrid() ) in the custom_value function (myvalue()), the problem are not issuing. But the form table isn't displaying in the Add form in this case.
I can process rendering of form table in beforeShowForm event of Add/Edit form but consider that first solution is more righter than beforeShowForm.
Most Users Ever Online: 715
Currently Online:
21 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