DataBoundListBox Header

4 posts, 0 answers
  1. Derek
    Derek avatar
    39 posts
    Member since:
    Aug 2012

    Posted 11 Mar 2013 Link to this post

    I'm not sure this is possible and I've tried a few things but can't get the desired result.

    I have a ListHeaderTemplate declared, it's basically a title with an image.  I want the tilt effect off for the title part of the header.  I could stick it above the listbox but I want it to scroll with the items.  I realize the generated header is a RadDataBoundListBoxItem so I'm not sure it's possible to have the tilt effect off for a single item and off for the rest.
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 12 Mar 2013 Link to this post

    Hello Derek,

    Thanks for writing and for your question.

    Yes, it is possible to implement this behavior. You can simply inherit from the Control class, make a custom control that looks as required and define it as a header. Then you can use the InteractionEffectManager to activate the tilt effect for the corresponding custom control.

    I hope this helps.

    All the best,
    Deyan
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Derek
    Derek avatar
    39 posts
    Member since:
    Aug 2012

    Posted 12 Mar 2013 Link to this post

    If tilt is turned on for the DataBoundListBox, isn't it turned on for the header as well, since all items, including the header, are wrapped in RadDataBoundListBoxItem ?

    The behavior I'm after is:

    RadDataBoundListBox
      Header
        HeaderText (no tilt)
        HeaderImage (tilt)
      Item (tilt)
      Item (tilt)
      Item (tilt)


    I'll play around with sticking the contents of the header in a UC.

    update:
    Wrapping the header template in a UC (without the header text)  and the item template in another UC allowed me to turn tilt on for only the UC's.  Thanks!
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 13 Mar 2013 Link to this post

    Hi Derek,

    It's great to hear that you've managed to solve the case.

    Let us know in case you have further questions or need assistance.

    Greetings,
    Deyan
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top