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

[Solved] Getting resource data client side

5 Answers 211 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ron Cirka
Top achievements
Rank 1
Ron Cirka asked on 17 Aug 2009, 08:52 PM
I have code that binds a generic list of resources through a linqdatasource on the server side. I would like to be able to access some of the resource attributes client side. For example, I have a data key called "RoomEmail" that I would like to be able to access from the client. I tried adding the the key to the CustomAttributeNames property but the _attributes array still shows no items for each room when I pull it up in firebug. How can I pass the data to the client side?

<asp:UpdatePanel ID="UpdatePanel1" runat="server"
                            <ContentTemplate> 
                                <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView" 
                                    OnAppointmentDataBound="RadScheduler1_OnAppointmentDataBound" TimelineView-HeaderDateFormat="D" 
                                    DataSourceID="dsEventsDataSource" Skin="Office2007" GroupBy="Room" GroupingDirection="Vertical" 
                                    DayStartTime="08:00:00" DayEndTime="23:30:00" TimeZoneOffset="03:00:00" DataKeyField="Conf_ID" 
                                    DataSubjectField="Conference_Name" DataStartField="Start" DataEndField="End" 
                                    OverflowBehavior="Expand" ShowViewTabs="false" ColumnWidth="10px" Width="950px" 
                                    Height="400px" CustomAttributeNames="Conf_ID,Name,RoomID,RoomEmail" OnAppointmentCommand="RadScheduler1_OnAppointmentCommand" 
                                    OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated" RowHeight="40px" 
                                    MultiDayView-NumberOfDays="2" RowHeaderWidth="100px" EnableDatePicker="false" 
                                    ShowNavigationPane="false" AllowInsert="false" AllowEdit="false" AllowDelete="false"
                                    <AdvancedForm Modal="true" /> 
                                    <TimelineView NumberOfSlots="192" SlotDuration="0:15" ColumnHeaderDateFormat="h tt" 
                                        TimeLabelSpan="4" /> 
                                    <ResourceTypes> 
                                        <telerik:ResourceType KeyField="RoomID" Name="Room" TextField="Name" ForeignKeyField="RoomID" 
                                            DataSourceID="dsRoomsDataSource" /> 
                                    </ResourceTypes> 
                                    <ResourceHeaderTemplate> 
                                        <asp:LinkButton ID="btnRemove" runat="server" Text="X" CommandName="RemoveResource" 
                                            CausesValidation="false" CssClass="ui-icon ui-icon-trash" Style="float: left" 
                                            OnClientClick="return confirm('Are you sure you want to remove this room?')" />&nbsp; 
                                        <asp:Label ID="ResourceLabel" runat="server" /> 
                                    </ResourceHeaderTemplate> 
                                </telerik:RadScheduler> 
                                <asp:LinqDataSource ID="dsEventsDataSource" runat="server" OnSelecting="dsEventsDataSource_OnSelecting"
                                </asp:LinqDataSource> 
                                <asp:LinqDataSource ID="dsRoomsDataSource" runat="server" OnSelecting="dsRoomsDataSource_OnSelecting"
                                </asp:LinqDataSource> 
                            </ContentTemplate> 
                        </asp:UpdatePanel> 





protected void dsRoomsDataSource_OnSelecting(object sender, LinqDataSourceSelectEventArgs e) 
    { 
        e.Result = Rooms; 
    } 
 
public class Room 
    { 
        public Guid RoomID { getset; } 
        public string Name { getset; } 
        public bool Host { getset; } 
        public bool Presenting { getset; } 
        public int Attendees { getset; } 
        public bool ClientsPresent { getset; } 
        public string RoomEmail { getset; } 
        public string Tools { getset; } 
        public string Comments { getset; } 
        public List<RoomSchedule> Schedules { getset; } 
    } 


5 Answers, 1 is accepted

Sort by
0
Ron Cirka
Top achievements
Rank 1
answered on 20 Aug 2009, 01:30 PM
Any update on this?
0
Accepted
Peter
Telerik team
answered on 20 Aug 2009, 02:01 PM
Hello Ron,

Currently, this is not possible. Please, excuse us for this limitation of RadScheduler. We will investigate any possible solutions in the future.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ron Cirka
Top achievements
Rank 1
answered on 21 Aug 2009, 01:50 PM
Thanks for your response. I have pursued other solutions.
0
SKS
Top achievements
Rank 1
answered on 14 Sep 2009, 04:25 PM
i want to show list of attendees who are attending an appointment on the RADScheduler.
how can that be done?
0
Peter
Telerik team
answered on 15 Sep 2009, 02:32 PM
Hello,

Probably you can use multiple values resources as in this demo:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/multipleresourcevalues/defaultcs.aspx


Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Ron Cirka
Top achievements
Rank 1
Answers by
Ron Cirka
Top achievements
Rank 1
Peter
Telerik team
SKS
Top achievements
Rank 1
Share this question
or