Hi,
Can any one help me please. I'm struck in the middle of implementing JQueryGrid with Editable operation. At present I can able to display the records in grid but I need to perform Editable operations.
this is my script code to display records:
<script type="text/javascript">
var jqDataUrl = "MyGrid/LoadGrid";
$(document).ready(function () {
$("#jqTable").jqGrid({
url: jqDataUrl,
editurl: "MyGrid/PerformCRUDAction",
datatype: "json",
mtype: "POST",
colNames: ["Album", "Quantity", "Price (each)"],
colModel: [
{ name: "Album", index: "Album", width: 40, align: "left" },
{ name: "Quantity", index: "Quantity", width: 100, align: "left" },
{ name: "Price (each)", index: "Price (each)", width: 200, align: "left" }],
width: 550,
height: 200,
toppager: true,
pager: $("#jqTablePager"),
rowNum: 5,
rowList: [5, 10, 20],
viewrecords: true,
sortname: "Price",
sortorder: "asc",
caption: "A Basic jqGrid "
}).navGrid("#jqTablePager",
{ refresh: true, add: true, edit: true, del: true },
{ closeOnEscape: true, reloadAfterSubmit: true, closeAfterEdit: true, left: 400, top: 300, editCaption: ["Edit Record"]},
{ closeOnEscape: true, reloadAfterSubmit: true, closeAfterEdit: true, left: 400, top: 300 },
{ closeOnEscape: true, reloadAfterSubmit: true, closeAfterEdit: true, left: 400, top: 300 },
{ sopt: ["cn"] }
);
});
</script>
I have a problem here - when I click on the edit button it displays a popup with submit and cancel button but I couldn't able to add controls to this popup the reason is it is a predefined popup came with in jqgrid .js.
Please help me.
Thanks in Advance.
With Regards,
Rohith.