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

RadToolTip X Obj Calendar VS or RadCalendar

6 Answers 65 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Ernandes
Top achievements
Rank 1
Ernandes asked on 24 Sep 2008, 08:06 PM
Hi !!

I researched the information but did not find, I would like to know if "rad tooltip" can be integrated with the calendar component of VisualStudio or "RadCalendar" and if there are examples to start integration?

Tks !

6 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 29 Sep 2008, 01:55 PM
Hi Ernandes,

Would you please clarify what exactly you want to achieve by using the tooltip and the calendar controls? For the time being we do not have online demos with these controls integrated but once we have a better understanding on your exact scenario we will let you know whether this is possible. If your scenario is a common one we might implement such a demo and publish it on our site in some next release, too.

Regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ernandes
Top achievements
Rank 1
answered on 29 Sep 2008, 02:23 PM
Hi,

I had the idea of putting a link on the dates of my calendar, every day special for example, instead of clicking for more information and show in a DataGrid, could make the ToolTip with the details of that day.

However, I do not know where to start to integrate the RadToolTip with the schedule VisualStudio / RadCalendar

Tks !
0
Shaun
Top achievements
Rank 1
answered on 29 Sep 2008, 10:49 PM
Hi, coincidently I was looking for this the other day and worked it out.

I think a proper demo would be very handy.

However, hope this helps Ernandes (in VB.NET)

1. You need to capture the DayRender event of the calendar control

    Protected Sub RadCalendar1_DayRender(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender  
        If Not Page.IsPostBack Then  
            Me.RadToolTipManager1.TargetControls.Add(e.Cell.ID, e.Day.Date.ToString())  
        End If  
    End Sub 

Then use the AjaxUpdate event of the tipManager to load a control, using the date value supplied in the dayRender

 
    Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate  
        Dim ctrl As Control = Page.LoadControl("~/Controls/File.ascx")  
        panel.ContentTemplateContainer.Controls.Add(ctrl)  
        panel.Update()  
    End Sub  
 

And here is the ASPX

 
<telerik:RadToolTipManager Skin="Web20" runat="server" ID="RadToolTipManager1"   
Width="250px" 
Height="300px"   
Animation="Resize" 
Sticky="true" OnAjaxUpdate="OnAjaxUpdate" ShowDelay="600"   Position="BottomCenter" 
 ShowCallout="True" Text="Loading..." 
  VisibleOnPageLoad="False" RelativeTo="Element" 
 ManualClose="True"></telerik:RadToolTipManager>   
 
 
 <telerik:RadCalendar EnableViewSelector="False" ShowColumnHeaders="True" ShowRowHeaders="False"   
 ShowOtherMonthsDays="True" EnableMultiSelect="False" AutoPostBack="True" MonthLayout="Layout_7columns_x_6rows"   
 EnableMonthYearFastNavigation="True" Width="100%" id="RadCalendar1" Runat="server" font-names="Arial, Verdana, Tahoma" 
                                            forecolor="Black" BackColor="AliceBlue" Skin="Web20"   
                                            style="border-left-color: #ececec; border-bottom-color: #ececec;  
                                            border-top-color: #ececec; border-right-color: #ececec;"> 
                                                  
                                        </telerik:RadCalendar> 
0
Ernandes
Top achievements
Rank 1
answered on 29 Sep 2008, 11:45 PM
Thank you, it will be of great help to start my idea!
0
Shaun
Top achievements
Rank 1
answered on 30 Sep 2008, 07:12 AM
Actually, I don't think that is working, sorry.

It looked like it was working but I think AutoTooltipify is true by default.

The result being that it popped up for other tooltips on the page, outside of the calendar which it shouldn't.

I haven't been able to get it to work with AutoTooltipfy set to false.

Would be interested if you work it out - or Telerik, is this even possible?

thanks,
0
Svetlina Anati
Telerik team
answered on 02 Oct 2008, 10:31 AM
Hi Shaun,

I prepared a sample project which demonstrates the desired functionality using RadCalendar. Please, note that you should add an ID attribute to the RadCalendar cells because they do not have an ID on the client.

Feel free to improve and extend the sample further and let me know if you need further assistance or if you have additional questions.


Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Ernandes
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Ernandes
Top achievements
Rank 1
Shaun
Top achievements
Rank 1
Share this question
or