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

[Solved] Client side Row Collection for Scheduler

4 Answers 138 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Raj Nemani
Top achievements
Rank 1
Raj Nemani asked on 25 Jun 2008, 04:50 PM
Hello,
When the Scheduler is in timeline view (time at the top, resources on the left),
is it possible to get access to the DOM element of each resource row on the scheduler.  More specifically I would like to loop through all the resourcs rows on the scheduler that are currently visible on the client side and set some CSS styles of each resource row.  I am not looking for appointments collection or resources collection (I know Schduler provides access to both collections) but looking to access the 'row'/html dom element that kind of holds all these together.

Thanks
Raj

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 25 Jun 2008, 05:36 PM
Hi Raj,

You can use the TimeSlotCreated event for this purpose. It is a server-side event, but I think that it is perfectly suited for your scenario. The help topic also contains an example.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Raj Nemani
Top achievements
Rank 1
answered on 25 Jun 2008, 05:55 PM
Hello Tsvetomir,
Thanks so much such a quick reply.  If I understood your replay correctly, this event will fire for each time slot (cell?) when Radscheduler is in the process of the binding itself and your solution will apply the specified css class to the slot.  This is definitely useful to know.  But my situation is slightly different.

Her eis what I am doing.

I am dragging a row from RadGrid below  the scheduler and dropping it on RadScheduler. I want to 'highlight' the resource rown on scheduler based the row that I selected on radGrid.  In otherwords, as soon as I start dragging the row from RadGrid (may be using onRowDragStarted event of the RadGrid) I want to 'highlight' appropriate rows on the RadScheduler.  Can you suggest a way to do this. 

Thanks
Raj
0
Raj Nemani
Top achievements
Rank 1
answered on 26 Jun 2008, 07:07 PM
Hello Tsvetomir,
Any update on this is appreciated
0
T. Tsonev
Telerik team
answered on 27 Jun 2008, 02:40 PM
Hello Raj,

I have prepared a sample page that demonstrates how you can highlight the slots that belong to a particular resource. The highlighting is done by applying or removing a CSS class. Resources are distinguished by CSS class that is applied in the TimeSlotCreated event.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Raj Nemani
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Raj Nemani
Top achievements
Rank 1
Share this question
or