This is a migrated thread and some comments may be shown as answers.
Add RadLabel element on a tile
2 Answers 6 Views
This is a migrated thread and some comments may be shown as answers.
Reptilianus
Top achievements
Rank 1
Reptilianus asked on 03 Apr 2018, 01:54 PM

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 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Apr 2018, 01:45 PM
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.
0
Reptilianus
Top achievements
Rank 1
answered on 05 Apr 2018, 06:53 AM
Thank you very much,it's working now
Asked by
Reptilianus
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Reptilianus
Top achievements
Rank 1
Share this question
or