Add RadLabel element on a tile

3 posts, 0 answers
  1. Reptilianus
    Reptilianus avatar
    9 posts
    Member since:
    Apr 2018

    Posted 03 Apr 2018 Link to this post

    I created a label on a tile,and then I added on tile as a children like below:

    private RadTileElement _radTileElement;

    public void AddText()

    {

    var element=new RadLabel

    {

        ForeColor = Color.White,
        Text = "<html><size=20>" + @"This is a text"

     };

    _radTileElement.Children.Add(element.LabelElement);

    }

     

    The problem is,the tile is not responding at all,i mean,is clickable and drag&drop just on edge of the tile,why???How can fix it?

     

     

     

     

     

     

     

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3451 posts

    Posted 04 Apr 2018 Link to this post

    Hello, Reptilianus,   

    The RadLabelElement handles the mouse input in this case. In order to leave the tile to handle it it is necessary to set the ShouldHandleMouseInput property of the RadLabelElement to false:
    this.radTileElement1.Text = "";
    RadLabelElement label = new RadLabelElement();
    label.Text = "test";
    label.ShouldHandleMouseInput = false;
    this.radTileElement1.Children.Add(label);

    I hope this information helps. If you have any additional questions, please let me know. 

    Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Reptilianus
    Reptilianus avatar
    9 posts
    Member since:
    Apr 2018

    Posted 05 Apr 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thank you very much,it's working now
Back to Top