Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


phGantTimePackage FAQ 10423


Setting the start date of Gantt_ASP Please note that this article refers to the phGantTimePackage
Jump to article- 2005-12-12 16:09:00 - Email plexityHide

Question

while I am using GTP.NET.WEB I tried to set the start date of the DataScler using any of the following commands:
Gantt_ASPSettings1.Gantt.DateScalerProperties.LowerBound = New Date (2004, 1, 1, 0, 0, 0, 0)
or
Gantt_ASP1.Gantt.DateScaler.StartTime = StartDate
But it doesnt work!!! Any help please?

Answer

Go like this:
      if (! this.IsPostBack) // If this is not a postback then we init the datetime to Today + 15 days
      {
        Gantt_ASP1.StartTime=DateTime.Today;
        Gantt_ASP1.StopTime=DateTime.Today.AddDays(15);
      }
You need to be carefull to check that this is not a postback, otherwise the date will not change when user tries to scroll

 

Google
WWW plexityHide phGantTimePackage FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...