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

RadLiveTile Click event not firing

4 Answers 155 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 2
Bob asked on 02 Jun 2012, 08:33 PM
Hello,

I am wondering if there is any way to respond to the click event of a panorama tile (Live tile in particular), when you have added items with HTML rendering? It seems that the html rendering causes the click event not to fire. Is there a way around this?

4 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 2
answered on 02 Jun 2012, 09:36 PM
Follow up:

Ok. Maybe It's something else that is causing it not to fire. Even with regular text, the click event for the tile stops firing as soon as an item is added to the tile. 

I'm using code like this for the tile item addition and then just the standard handler for the click event of the tile. Am I subscribing to the correct event? Just not sure where I'm going wrong here.

           calTile.Text = "Scheduled Events (" & count & ")"
           If count = 0 Then
               calTile.Items.Add(New LightVisualElement() With {.Text = "There are currently no upcoming scheduled events.", .Font = New Font("Arial", 11)})
           End If
 
 
Private Sub calendarTileElement1_Click(sender As System.Object, e As System.EventArgs) Handles calendarTileElement1.Click
       Dim frmSched As New Scheduler
       frmSched.Show()
   End Sub
0
Ivan Todorov
Telerik team
answered on 06 Jun 2012, 04:19 PM
Hi Bob,

Thank you for writing.

Most probably you are not able to get the Click event, because the LightVisualElement you have added to the live tile hovers it entirely and it is the one that receives the mouse input. To prevent it from receiving mouse input, you can set it as it is described below:
calTile.Items.Add(New LightVisualElement() With { _
    .Text = "There are currently no upcoming scheduled events.", _
    .Font = New Font("Arial", 11), _
    .ShouldHandleMouseInput = False, _
    .NotifyParentOnMouseInput = True _
})

There is a special LiveTileFrameElement which you can use as a frame for your live tiles. This element does not receive mouse input by default. You can also use the Frame editor feature to design your live tiles in Visual Studio.

I hope you find this useful. Do not hesitate to ask if you have any further questions.

Greetings,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Bob
Top achievements
Rank 2
answered on 08 Jun 2012, 06:22 PM
Hello,

Thanks for the response. I did try your suggestion, with the same results. I'll keep playing with it and see if I can get it going.
0
Ivan Todorov
Telerik team
answered on 12 Jun 2012, 10:55 AM
Hi Bob,

If you continue to experience difficulties with this, you can open a new support ticket and send us a sample project which demonstrates your scenario. This will let us investigate it and provide you with proper solution.

Do not hesitate to contact us if you need any further assistance.

Greetings,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Panorama
Asked by
Bob
Top achievements
Rank 2
Answers by
Bob
Top achievements
Rank 2
Ivan Todorov
Telerik team
Share this question
or