RadLiveTile Click event not firing

5 posts, 0 answers
  1. Bob
    Bob avatar
    7 posts
    Member since:
    Dec 2011

    Posted 02 Jun 2012 Link to this post

    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?
  2. Bob
    Bob avatar
    7 posts
    Member since:
    Dec 2011

    Posted 02 Jun 2012 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 06 Jun 2012 Link to this post

    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 >>
  5. Bob
    Bob avatar
    7 posts
    Member since:
    Dec 2011

    Posted 08 Jun 2012 Link to this post

    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.
  6. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 12 Jun 2012 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready