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
I want to set disabled time for a resource when I found an event with some defined attributes. I do it in the WebScheduler_DataBound method. When an event is bound I can get the ResourceID from property WebSchedulerEvent.ResourceID, then I have to get the corresponding Resouce. Is there some get method to get the Resource or I have to cycle the WebScheduler.Resources collection?
Thanks in advance,
Vince.
In the server side, in order to retrieve the Resource detail using ResourceID you will need to iterate the Resources collection and match the ResourceID property. Here is the snippet to retrieve resource of an event in DataBound server side event handler using LINQ:
protected void WebScheduler1_DataBound(object sender, ISNet.WebUI.WebScheduler.WebSchedulerDataBoundDataArgs e){ if (e.Type == WebSchedulerObjectType.Event) { WebSchedulerResource res = (WebSchedulerResource) (from r in WebScheduler1.Resources where ((WebSchedulerResource)r).ResourceID == ((WebSchedulerEventBase)e.DataObject).ResourceID select r).FirstOrDefault(); //Process the resource object }}
Unfortunately, WebScheduler do not provide any method to retrieve the resource using resource ID.
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