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. Image for the cookie policy date

Set Gantt property dynamically

Hi there,

Is there a way to set property dynamically based on let's say current record.  E.g. setting ScheduleStartDate and ScheduleEndDate based on current record (entity) which has start and end date properties.

Regards
Prasanthan

3 Replies

DK Dinesh Kumar Nagarathinam Syncfusion Team October 26, 2015 05:00 PM UTC

Hi Prasanthan,

Thanks for using Syncfusion Products.

Do you mean the selected row as the current record in your query, and we can change set properties dynamically based on the selected row. Can you please
share more details regarding your query to change the ScheduleStartDate and ScheduleEndDate based on the current record, Currently we have created a
sample for scrolling the task horizontally and focusing it by selecting the row. Please Find the sample from below location.

Sample: http://www.syncfusion.com/downloads/support/forum/120873/ze/GanttSample-1472431935
 
If this doesn’t meet your requirement please revert to us with more details regarding your requirement.

Regards,
Dinesh kumar.N


PR Prasanth October 27, 2015 05:59 AM UTC

Hi Dinesh,

Thanks for the reply, makes sense.  Also looks like if we ignore the properties "ScheduleStartDate",   "ScheduleEndDate" they are sort  of automatically calculated for rendering.

All good :-).

Regards
Prasanthan


DK Dinesh Kumar Nagarathinam Syncfusion Team October 28, 2015 11:23 AM UTC

Hi Prasanthan,


Thanks for your update.


Yes, If we have not provided the values for ‘scheduleStartDate’ and ‘scheduleEndDate’ properties, it will be calculated automatically based on the start date and end date values in the datasource.


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


Regards,

Dinesh kumar.N


Loader.
Live Chat Icon For mobile
Up arrow icon