Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Carousel > RadCorousel with GroupBox and Grid

Not answered RadCorousel with GroupBox and Grid

Feed from this thread
  • Carlos avatar

    Posted on Jul 15, 2010 (permalink)

    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..

    Reply

  • Boryana Boryana admin's avatar

    Posted on Jul 20, 2010 (permalink)

    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;
    this.radCarousel1.Items.Add(imageItem);

    Similarly, you can add a RadGridView image:

    RadGridView radGridView1 = new RadGridView();
    radGridView1.Size = new Size(300, 300);
    radGridView1.BeginInit();
    radGridView1.BindingContext = new BindingContext();
    radGridView1.Size = new Size(200, 200);
    radGridView1.EndInit();
    radGridView1.LoadElementTree();
    Bitmap gridAsImage = radGridView1.RootElement.GetAsBitmap(Brushes.White, 0, new SizeF(1, 1));
    RadImageItem imageItem2 = new RadImageItem();
    imageItem2.Image = gridAsImage;
    this.radCarousel1.Items.Add(imageItem2);

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

    Sincerely yours,
    Boryana
    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

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Carousel > RadCorousel with GroupBox and Grid
Related resources for "RadCorousel with GroupBox and Grid"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]