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

DataBoundListBox Header

3 Answers 45 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Derek
Top achievements
Rank 1
Derek asked on 12 Mar 2013, 01:42 AM
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.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 12 Mar 2013, 03:16 PM
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.
0
Derek
Top achievements
Rank 1
answered on 12 Mar 2013, 04:07 PM
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!
0
Deyan
Telerik team
answered on 13 Mar 2013, 10:56 AM
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.
Tags
DataBoundListBox
Asked by
Derek
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Derek
Top achievements
Rank 1
Share this question
or