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

Filling the Gallery Element with the items

2 Answers 34 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 01 Apr 2011, 04:53 AM
Hi,
           I am using the RibbonBar in that i have a RadImageGalleryElement .Noe i want to fill the gallery element dynamically how can i do it....

Thanks
Divya

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 03 Apr 2011, 03:21 PM
Hello Divya,

Just create and add RadGalleryItems to the rad gallery element, as per the following example:

radGalleryElement1.Items.Clear();
for (int i = 0; i < 10; i++)
{
    var item = new RadGalleryItem("Button" + i);
    radGalleryElement1.Items.Add(item);
}

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Ivan Todorov
Telerik team
answered on 04 Apr 2011, 04:01 PM
Hello Divya P,

I am writing to confirm that Emanuel's solution is correct. If it works for you, please remember to mark his reply as an answer so others could use it as well.

If you have any additional questions, feel free to ask.

Kind regards,
Ivan Todorov
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
Tags
RibbonBar
Asked by
Divya
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or