How do I set the spacing around tiles?

4 posts, 0 answers
  1. Czeshirecat
    Czeshirecat avatar
    14 posts
    Member since:
    Jun 2016

    Posted 07 Jul Link to this post

    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?

  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 07 Jul Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Czeshirecat
    Czeshirecat avatar
    14 posts
    Member since:
    Jun 2016

    Posted 08 Jul in reply to Dimitar Link to this post

    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.

  5. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 08 Jul Link to this post

    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.
Back to Top