We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Where is args.model.ganttRecords?

Thread ID:

Created:

Updated:

Platform:

Replies:

119123 May 12,2015 03:52 PM May 13,2015 01:30 AM ASP.NET MVC 1
loading
Tags: Gantt
Otto Moura Machado Filho
Asked On May 12, 2015 03:52 PM

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.

Mahalakshmi Karthikeyan [Syncfusion]
Replied On May 13, 2015 01:30 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;