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

RadScheduler - TimelineView

7 Answers 117 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 13 Apr 2011, 09:31 AM
Hi !

A little question to the timeline view.

We use the TimelineView with resources.

The Resources are grouped by a group and a name

eg.:
GROUP 1 :: Markus
GROUP 2 :: Dave

Currently we display this resources as a table in each resource cell

<ResourceHeaderTemplate>

                    <asp:Panel ID="ResourceWrapper" runat="server" CssClass="ResCustomClass">

                        <asp:Table ID="ResourceTable" runat="server" Width="200px">

                            <asp:TableRow Width="200px">

                                <asp:TableCell Width="95px" HorizontalAlign="Right">

                                    <asp:Label ID="LGroup" Font-Bold="true" runat="server" Text='<%# Eval("resgroup") %>'></asp:Label>

                                </asp:TableCell>

                                <asp:TableCell HorizontalAlign="Center" Width="10px">

                                    <asp:Label ID="LSpacer" runat="server" Text="|"></asp:Label>

                                </asp:TableCell>

                                <asp:TableCell  Width="95px" HorizontalAlign="Right">

                                    <asp:Label ID="SpeakerImage" runat="server" Text='<%# Eval("Text") %>'></asp:Label>

                                </asp:TableCell>

                            </asp:TableRow>

                        </asp:Table>

                       

                    </asp:Panel>

                </ResourceHeaderTemplate>



Now, we need to add a sort function to this groups/names

My Question:
Is there a chance to display a table completely around the resources, where i can add a sorting ?
or
Can i access the cell (in timeline view) over all resources (it is always emtpy and act like a spacer), and add there
commandlinks, buttons or anything ?

thanks for your help

with best regards
Markus

7 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 18 Apr 2011, 09:37 AM
Hi Markus,

Yes, you can access the table cell over the resources in a way similar to this:

function pageLoad() {
           var $ = $telerik.$;
           var scheduler = $find('<%=RadScheduler1.ClientID %>');
           $(".rsSpacerCell", scheduler.get_element()).text(scheduler.get_groupBy());
       }

In my case I'm just setting a text to this cell.

Regards,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Markus
Top achievements
Rank 1
answered on 19 Apr 2011, 08:08 PM
Hi Veronica !

That's great thank you ...

Can you give me a little help, how to display now a command button in cell ?

Sorry i'm a little bit new to telerik ajax.

Special Thanks

Markus
0
Veronica
Telerik team
answered on 26 Apr 2011, 09:35 AM
Hello Markus,

Here's a sample code for how to insert button in the rsSpacerCell cell:

JavaScript:
<script type="text/javascript">
        function pageLoad() {
            var $ = $telerik.$;
            var scheduler = $find('<%=RadScheduler1.ClientID %>');
  
            $('<input type="button" name="sort" id="sort" value="Click me" onclick="msg()">').appendTo($(".rsSpacerCell"));
        }
  
        function msg() {
            alert("Hello world!");
        }
    </script>

ASPX:
<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView"
        GroupBy="User" GroupingDirection="Vertical">
    </telerik:RadScheduler>

Please note that if you need to perform some logic on the server when clicking on the button you need to use AjaxRequest as shown in this forum post.

Please let me know if this was helpful.

Greetings,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Markus
Top achievements
Rank 1
answered on 27 Apr 2011, 04:50 PM
Hi Veronica !

Great thanks, i'm currently testing it

regards
Markus
0
Markus
Top achievements
Rank 1
answered on 27 Apr 2011, 09:36 PM
Hi Veronica !

it worked perfect, also the thing with the ajaxrequest 

thanks so much

best regards
Markus
0
siva sankar
Top achievements
Rank 1
answered on 02 Jul 2011, 05:52 AM
Hai Iam using RadScheduler, how to display Reminder alerts when we are in any page,not even in the scheduler page.  
0
Veronica
Telerik team
answered on 04 Jul 2011, 08:06 AM
Hello Siva,

No, unfortunately you can not display the reminder's popup dialog in page other of the RadScheduler's page.

Greetings,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
Markus
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Markus
Top achievements
Rank 1
siva sankar
Top achievements
Rank 1
Share this question
or