RadCorousel with GroupBox and Grid

2 posts, 0 answers
  1. Carlos
    Carlos avatar
    2 posts
    Member since:
    Jul 2010

    Posted 15 Jul 2010 Link to this post

    Hello everyone, my question is this.  
    I have a RadCorousel control in my application.

    I’d like to know if it’s possible to add other controls (like GroupBox, Grid, Charts and so on..)

    If it’s possible, How can I do that?

    Thank you..

  2. Boryana
    Boryana avatar
    330 posts

    Posted 20 Jul 2010 Link to this post

    Hello Carlos,

    Thanks for writing.

    Adding custom controls to RadCarousel is actually quite easy, but it might also lead to undesired consequences. Please note that RadGridView, RadChart, etc. are quite complex controls and adding them in RadCarousel will surely introduce performance issues. To avoid this, our team suggests you to use images instead of controls. Adding an image of RadChart instead of the RadChart itself, will be much lighter and easier for your application and thus you will avoid any performance issues.

    The code snippet below illustrates how to add a RadChart image as item of RadCarousel:

    RadChart myChart = new RadChart();
    myChart.Size = new Size(200,200);
    Image chartAsImage = myChart.GetBitmap();
    RadImageItem imageItem = new RadImageItem();
    imageItem.Image = chartAsImage;

    Similarly, you can add a RadGridView image:

    RadGridView radGridView1 = new RadGridView();
    radGridView1.Size = new Size(300, 300);
    radGridView1.BindingContext = new BindingContext();
    radGridView1.Size = new Size(200, 200);
    Bitmap gridAsImage = radGridView1.RootElement.GetAsBitmap(Brushes.White, 0, new SizeF(1, 1));
    RadImageItem imageItem2 = new RadImageItem();
    imageItem2.Image = gridAsImage;

    I hope you find my answer useful. Let me know if I can assist you further.

    Sincerely yours,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top