How to change ddIncrement dynamically after initialization

Expedited help for Extensible support subscribers. Anyone can reply, but only subscribers can start new topics and get expedited help.

How to change ddIncrement dynamically after initialization

Postby miles » Tue Nov 19, 2013 6:21 pm

Hi,

I want to change the value of calender's ddIncrement by user's button click.
but No method have a such function in API.

Please give me a advice of changing ddIncrement dynamically.
miles
Premium Member
Premium Member
 
Posts: 3
Joined: Tue Nov 19, 2013 2:29 am

Re: How to change ddIncrement dynamically after initializati

Postby brian.moeskau » Tue Nov 19, 2013 11:39 pm

Unfortunately it's not supported by default. You could probably create an override to do what you need, mainly requiring you to re-initialize the drag and drop zones (in DayBody.initDD). You should be able to destroy the existing drag/drop zones, set the new ddIncrement value and call initDD() to reinitialize everything -- that should get you close. If you can't get it to work reply back with what you tried.
User avatar
brian.moeskau
Site Admin
Site Admin
 
Posts: 1344
Joined: Sat Sep 18, 2010 5:00 pm
Location: Austin, Texas

Re: How to change ddIncrement dynamically after initializati

Postby miles » Tue Nov 26, 2013 3:03 am

Thank you for your reply.

I could implement that function.
Thank you very much.
miles
Premium Member
Premium Member
 
Posts: 3
Joined: Tue Nov 19, 2013 2:29 am


Return to Premium Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron