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

How to add a RadPanel to LiveTile

8 Answers 148 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 15 Dec 2012, 06:52 AM
Hi

I want to add a RadPanel to a tile. How can I do that?

Thanks, 

8 Answers, 1 is accepted

Sort by
0
Raj
Top achievements
Rank 1
answered on 18 Dec 2012, 03:52 AM
Could someone please redirect me to revevant link/ thread? I am trying to add a panel in a live/ regular tile in Panarama control. 

Thanks, 
0
Ivan Todorov
Telerik team
answered on 19 Dec 2012, 03:24 PM
Hello Raj,

Thank you for your question.

Putting RadPanel inside the panorama tiles is possible via RadHostItem:
RadHostItem host = new RadHostItem(radPanel1);
radTileElement1.Children.Add(host);

However, this is not recommended because RadPanel is a control and putting it in an animated and draggable tile will result in visual glitches and slow performance. I would rather suggest adding the elements that correspond to a control (for example RadButtonElement) directly to the tile's Children collection.

Let me know if you have any additional questions.

Kind regards,
Ivan Todorov
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
0
Raj
Top achievements
Rank 1
answered on 22 Dec 2012, 06:46 AM
Thanks for your response.

If this is not recommended, how can I do the following:
- Add multiple Labels to single Tile
- Add Grid to to the Tile at runtime 

Thanks

0
Stefan
Telerik team
answered on 25 Dec 2012, 08:33 AM
Hi Raj,

Thank you for writing.

Labels can be easily added by adding RadLabelElements to the Children collection of the tile:
RadLabelElement label = new RadLabelElement();
label.Text = "I am a label";
tile.Children.Add(label);

As to the grid, it cannot be used as element, only as control and you can host it by using RadHostItem, as demonstrated in the previous post. However, as already mentioned, hosting controls will hit the performance and will produce visual glitches when scrolling.

I hope this helps.
 
Greetings,
Stefan
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
0
KEVIN
Top achievements
Rank 1
answered on 08 May 2015, 07:35 PM

HI,

 I see this thread and I have similar question.

 

How could I add the Panel like Text at the bottom of tiles ( like Telerik's DevCraft demo, green one)

and with opacity 70% 

 

kevin

0
Stefan
Telerik team
answered on 11 May 2015, 08:18 AM
Hello Kevin,

You can just add a new LightVisualElement to the tile element itself to achieve this:
public class ModernLiveTileElement : RadLiveTileElement
{
    public LightVisualElement lowerElement;
 
    protected override void CreateChildElements()
    {
        base.CreateChildElements();
 
        lowerElement = new LightVisualElement();
        lowerElement.StretchVertically = false;
        lowerElement.Alignment = System.Drawing.ContentAlignment.BottomCenter;
         
        lowerElement.DrawFill = true;
        lowerElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
        lowerElement.BackColor = Color.FromArgb(180, 74, 200, 111);
        lowerElement.ShouldHandleMouseInput = false;
        this.Children.Add(lowerElement);
    }
}

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Muhammad
Top achievements
Rank 1
answered on 01 Feb 2016, 04:50 PM

 Hello:Ivan Todorov

Problem :How can Drag and Drop radLiveTileElement1 in RadPanorama1

We have a radgrid and lablels in radPanel1. radPanel1 is host in radLiveTileElement1. But we are  not able to drag and droprad LiveTileElement1.

code :
radLiveTileElement1.AllowDrag = true;
radLiveTileElement1.AllowDrop = true;                
RadHostItem host = new RadHostItem(radPanel1);
radLiveTileElement1.Children.Add(host);

Guid me please
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Feb 2016, 04:40 PM
Hello Muhammad,

Thank you for writing.

I would recommend you to use custom tiles approach instead of hosting controls. The following help article is quite useful on this topic: http://docs.telerik.com/devtools/winforms/panorama/custom-tiles
Note that in order to start the drag and drop operation when clicking some of the inner elements, the respective element should notify its parent for the mouse input (set the NotifyParentOnMouseInput property to true).

If you are still experiencing any further difficulties, feel free to open a support ticket and provide a sample project replicating the undesired behavior. Thus, we would be able to investigate the precise case and assist you further. Thank you in advance.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Panorama
Asked by
Raj
Top achievements
Rank 1
Answers by
Raj
Top achievements
Rank 1
Ivan Todorov
Telerik team
Stefan
Telerik team
KEVIN
Top achievements
Rank 1
Muhammad
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or