Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Carousel > Image with text fields

Not answered Image with text fields

Feed from this thread
  • Claude avatar

    Posted on Jun 20, 2010 (permalink)

    I have a background image that will be the same for all items, but I want 3 lines of text in front of the image that will vary for each item.  The text will be coing from a database.   

    I cannot figure out which type of item I should use and how to bind the 3 text fields.  I am using VB on this one. 

    Reply

  • Peter Peter admin's avatar

    Posted on Jun 24, 2010 (permalink)

    Hi Claude,

    Thanks for writing.

    After setting the background image, in order to put the text you can use RadLabel element (or RadButtonElement). Make sure that TextWrap property is set to true and set a MaxSize at your discretion in order to have the text on a few lines.

    Concerning the process of binding the text of the elements to a database, please take a look at this article. Basically, you should use the following approach:
    Sub radCarousel1_ItemDataBound(sender as object, e as ItemDataBoundEventArgs )
    Dim
    textFromDataBase as string = ....(extract text from e)
    me.radLabel1.Text = textFromDataBase
    me.radLabel1.Image = myImage
    me.radLabel1.TextImageRelation = TextImageRelation.Overlay

    For each item simply use the above approach to set the text. 

    I hope you find this information helpful. If you have any other questions, do not hesitate to contact us.

    Kind regards,
    Peter
    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.
  • igumen avatar

    Posted on Sep 29, 2010 (permalink)

    Interesting code. Thanks.

    But my question is some Harder:
    Does anybody read or heard about any opportunities to make own "Elemets" for RadCarousel?  It is neccessary for my current work.

    Thx

    Reply

  • Vassil Petev Vassil Petev admin's avatar

    Posted on Sep 29, 2010 (permalink)

    Hi igumen,

    From the information provided, we are not sure what your requirements are. Please, review the Carousel Documentation and if you still have questions, please open a new support ticket and describe your requirements in detail so that we can assist you.


    Kind regards,
    Vassil
    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

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Carousel > Image with text fields
Related resources for "Image with text fields"

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