BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
var gridObj = $("#Grid").ejGrid("instance");
gridObj.addRecord(); |
Hi Saravanan ,
But i am using two grids in the same page and on double click of the first grid i want to add that grid's record to the 2nd grid. if i use obj.addRecord() then i wont get the first grid data. could you please tell me how to i achieve this.
Regards,
Sachin
var gridObj = $("#Grid").ejGrid("instance");
gridObj.addRecord(); //Call the addRecord method
@(Html.EJ().Grid<object>("HRZGrid")
. . .
.ClientSideEvents(eve =>
{
. . .
eve.BeforeBatchAdd("onBeforeBatchAdd");
})
)
function onBeforeBatchAdd(args) {
//Assign json data to the args.defaultData before render the add row
args.defaultData = json;
} |
Hi Saravanan,
Thank you so much , your solution worked for me. But i am facing two more issues with batch edit mode.
Hi Saravanan ,
Yes i want to add a new row above the selected one.is it possible?
Regards,
Sachin