or
date.setDate(date.getDate() + 1);
datePicker.set_selectedDate(date);
My question:
How can I get it to replicate the "fastNavigationStep" behaviour?
In other words, when the user presses the button, then the date "steps" forward 3 months.
How can this be done?
many thanks,
yogi
| protected override void CreateChildControls() |
| { |
| try |
| { |
| base.CreateChildControls(); |
| // Clear any existing child controls. |
| Controls.Clear(); |
| RadCalendar calendar = new RadCalendar(); |
| calendar.ID = "calendar"; |
| calendar.EnableViewState = false; |
| this.Controls.Add(calendar); |
| // Create a panel that will hold chart control. |
| Panel cvWebPartPanel = new Panel(); |
| // Create Telerik RadChart control |
| RadChart radChart = CreateRadChartControl(); |
| // Check if radChart is not null, then add it to the panel. |
| if (radChart != null) |
| { |
| cvWebPartPanel.Controls.Add(radChart); |
| } |
| // Add the panel to the controls collection of the web part. |
| this.Controls.Add(cvWebPartPanel); |
| // Prevent child controls from being created again. |
| this.ChildControlsCreated = true; |
| } |
| catch (Exception) |
| { |
| this.Controls.Clear(); |
| this.Controls.Add(new LiteralControl("Error")); |
| } |
| } |