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

How do I set the spacing around tiles?

3 Answers 193 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Czeshirecat asked on 07 Jul 2016, 07:56 AM

The attached pic is (touched up) what my designer has asked me to produce for our first rewrite of our product. We've moved to telerik control set from an in house one which is looking dated. The 2nd one is my first attempt.
I've googled for an answer and seen several responses to people wanting to drop the space between tiles, or for ASP css, but in my case where the tiles are created and added to the panorama dynamically, they're all joined together and however much I've played with margins and padding I don't seem to be able to get a space around them.
Can anybody tell me how to do this very simple thing please?

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 07 Jul 2016, 09:48 AM
Hello Caire,

Thank you for writing.

You can use the CellPadding property, you should make sure to set the Row and Column of each tile as well:
private void radButton1_Click(object sender, EventArgs e)
{
    RadTileElement tile = new RadTileElement();
    tile.Text = "Test";
    tile.Row = 0;
    tile.Column = 1;
    tile.CellPadding = new Padding(30);
 
    radPanorama1.Items.Add(tile);
}

In addition, you can set the current CellSize
this.radPanorama1.CellSize = new System.Drawing.Size(200, 200);

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Czeshirecat
Top achievements
Rank 2
Iron
Iron
answered on 08 Jul 2016, 08:06 AM

Thank you for your response.

There is no property CellPadding, but I did find that radtileelement.margin sets the space between the edge of the tile and the contents so I used that.

0
Dimitar
Telerik team
answered on 08 Jul 2016, 09:53 AM
Hello Claire,

Thank you for writing back.

Please note that this it a property of the items (RadTileElement) of the control. Nevertheless, I am glad that you have found a solution for your case.

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
Panorama
Asked by
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Answers by
Dimitar
Telerik team
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Share this question
or