Where is args.model.ganttRecords?

I had been using args.model.ganttRecords on the ActionComplete event.

But after the latest update there is no more ganttRecords in args.model.

How can I access gantt data from args in the ActionComplete event?

Thanks,
Otto Machado.

1 Reply

MK Mahalakshmi Karthikeyan Syncfusion Team May 13, 2015 05:30 AM UTC

Hi Otto,

Sorry for the inconvenience caused.

We would like to inform you that we have changed the records collection name “ganttRecords” to “flatRecords” in our volume 1 main release(13.0.1.21). We recommend you to follow the same in your code. Please refer the updated code snippet below for more details.

@(Html.EJ().Gantt("Gantt").

//…

ClientSideEvents(eve=>

{

eve.ActionComplete("actioncomplete");

}).

)

<script type="text/javascript">

function actioncomplete(args) {

var ganttObj = $("#Gantt").data("ejGantt");

data = args.model.flatRecords;

//…

}

</script>


And also we would like to inform you that we have also changed the

ganttObj._updatedRecords to ganttObj.model.updatedRecords,

ganttObj._currentViewData to ganttObj.model.currentViewData and there is no more ganttObj._records collection is available in Gantt.

We have also prepared sample based on this and you can find the sample under the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/119123/MVC09NewSample-579286022.zip

Please let us know if you need more information on this.

Regards,

Mahalakshmi K.


Loader.
Up arrow icon