iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Gentlemen,
I have two requirements where I need to pass the timeline default calendar date and I am unsure if this is a client side event or smething I can pass in the URL, here are my two scenarios:
1). I have a asp.net external form that allows the user to select a date. On this form I have a url link that the user can click to open the webscheduler. I am wondering how I can pass the date entered on the external form, so when the user clicks to open the webscheduler, the webscheduler default date is the one the user entered on the form.
2). I have two webschedulers in my application, one is customized for a "detail" view and one is customized for a "Summary" view. In the summary view, there is a url link to the detail view. If the user is in summary view and selects the link to the detail view, the summary view is closed and the detail view is displayed. My question is, if a user is in summary view on 04/13/2012 calender date for example, and selects to change to detail view, how can I open the detail view defaulted to the same date they selected in summary view?
Are these scenarios client side events or can I somehow pass the dates through a url?
Please advise and thanks!
Frank
Hi Yudi,
On our external formX we have a function that captures the form's StartDateTime:
public void formX_StartDateTime(DateTime StartDateTime)
{
Context.Session["formX_StartDateTime"] = StartDateTime;
}
On our same external formX we have a button that loads the page with the webscheduler control with the following function:
Context.Session["WebScheduler.ViewSettings.SelectedDate"] = StartDateTime;
Result.ExecuteOnClient(String.Format("window.open('{0}', '_CbDetail')", url)); }Let me know if you need more info...........Thanks - Frank
Let me know if you need more info...........
Thanks - Frank
Q: I have a asp.net external form that allows the user to select a date. On this form I have a url link that the user can click to open the webscheduler. I am wondering how I can pass the date entered on the external form, so when the user clicks to open the webscheduler, the webscheduler default date is the one the user entered on the form.
A: WebSchedulerViewSettings class has SelectedDate property which specifies the initial WebScheduler’s Date and Time. Please try to set this property on Page_Load server side event of WebScheduler in order to set default date of WebScheduler such as shown in the following snippet code.
protected void Page_Load(object sender, EventArgs e) { WebScheduler1.ViewSettings.SelectedDate = DateTime.Now; }
To pass data/parameter between pages, you may try to choose one of the following approaches.
Q: I have two webschedulers in my application, one is customized for a "detail" view and one is customized for a "Summary" view. In the summary view, there is a url link to the detail view. If the user is in summary view and selects the link to the detail view, the summary view is closed and the detail view is displayed. My question is, if a user is in summary view on 04/13/2012 calender date for example, and selects to change to detail view, how can I open the detail view defaulted to the same date they selected in summary view?
A: If both of WebSchedulers located on the same page, please try to set the SelectedDate property of “detail” view WebScheduler and then invoke RefreshAll() method in runtime.
function NavigateToDate() { var WebScheduler1 = ISGetObject("WebScheduler1"); var myDate = new Date(1995, 11, 17); WebScheduler1.ViewSettings.SelectedDate = myDate; WebScheduler1.RefreshAll(); return true; }
If the WebSchedulers is located in the different page, please refer to the above approach (question #1).
Hope this helps.
Yudi,
Thank you for your reply. I was able to get this working by using context sessions.
Thanks!
Glad to hear the good news.
Do you mind to share the solution with us? Does the default date is defined by setting the SelectedDate property of WebSchedulerViewSettings?
Thank you for taking the time to write down the solution with us. I’m sure that it will be useful for other member who has similar question regarding default date time in TimeLine view of WebScheduler.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname