This is a migrated thread and some comments may be shown as answers.

GetEnumerator missing

2 Answers 76 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Suzanne
Top achievements
Rank 1
Suzanne asked on 25 Jun 2010, 04:42 PM
I am using VS 2010 and Telerik.Web.UI version 2010.1.415.35.  I have the following code to access multiple resource values and am getting the following error:

foreach statement cannot operate on variables of type 'Telerik.Web.UI.Resource' because 'Telerik.Web.UI.Resource' does not contain a public definition for 'GetEnumerator'

foreach (Resource service in e.Appointment.Resources.GetResourcesByType("Service")){

}

Any help would be appreciated.

Thanks

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Jun 2010, 11:41 AM
Hi Suzanne,

This code is correct, but it will work as expected only if you have Implemented A Provider That Supports Multi-valued Resources. Can you please elaborate a bit on your case?


Regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Suzanne
Top achievements
Rank 1
answered on 30 Jun 2010, 07:46 PM
I was using the XML parser in the Telerik example.  I have since found out I do not need to use multiple r3esource values so am not going to use this code.

Thanks for your assistance.
Tags
Scheduler
Asked by
Suzanne
Top achievements
Rank 1
Answers by
Peter
Telerik team
Suzanne
Top achievements
Rank 1
Share this question
or