Filling the Gallery Element with the items

3 posts, 1 answers
  1. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 31 Mar 2011 Link to this post

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

  2. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 03 Apr 2011 Link to this post

    Hello Divya,

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

    for (int i = 0; i < 10; i++)
        var item = new RadGalleryItem("Button" + i);

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

    Best Regards,
    Emanuel Varga

    Telerik WinForms MVP
  3. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 04 Apr 2011 Link to this post

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