Rank: Newbie Groups: Member
Joined: 4/13/2011 Posts: 7
|
I am trying to a) capture the select week event, and b) capture the date range or even week number but keep getting the error message that SelectRange returns void.
var myRange = Calendar2.SelectedDates.SelectRange(Calendar2.SelectedDate, Calendar2.SelectedDate);
What is the correct way to capture the week selection and the range of the week as I cannot find anything in the sample code or documentation?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I am not exactly sure what you are expecting by calling SelectedRange and why you believe it would return a value. You will want to take a look of the reference section of the documentation (Under Server API Reference -> EO.Web Namespace). That section should cover ALL interfaces that are available to you. We generally do not write code for our customers, so you will definitely want to take a look of the reference first.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 4/13/2011 Posts: 7
|
I certainly looked at the documentation first, AND the intelliSense that pops up, but I cannot find the the variable that selecting a week triggers. In fact all I found was if I wanted Week numbers it would disable select week, therefore it appears I cannot even grab the value of the week selected?
I am certainly not asking you to write my code, but there is not one example of the output of the week selector.
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
When you select a week, all days in the selected week are added into SelectedDate. That's pretty much all concerns to selecting a week.
As to the documentation, one basic rule is if you do not see anything there, then it does not exist. The reference is generated from the source code, so it covers everything that is available to you. Another rule is you can not just pull something out of your head and hope it would work. For example, the document clearly says SelectedRange returns "void" (not returning any value), so it is pointless for you to try to use the return value of that function, and if you do, as you have already discovered, you will get an error. So it is important for you to strictly follow the documentation.
If you have any questions about a specific topic in the documentation, please feel free to ask and we will be happy to help. However if you are looking for something and can not find anything in there, then it does not exist (and we will give you the same answer even if you ask us), in that case you will need to write the related code yourself.
Thanks
|