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

Telerik ListBox, TemplateSelector and Key events

4 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patrice VIALOR
Top achievements
Rank 1
Patrice VIALOR asked on 07 Apr 2011, 02:16 PM
According to some forum posts, I have understood you don't support this ListBox control anymore, since this is an internal control used for RadScheduler only. But for my project (a mvvm one) I've been facing the need of using a DataTemplateSelector, in order to populate lot of ListBoxes with custom UserControls, depending on the type of Item it contains.

The problem with this ListBox is it catch the keyboard events internally, and my itemControls doesn't receive any key event. And in my case I intend to to use different input controls on each itemControl... Sad... Then I have tried to find with Reflector what type of other controls use the Telerik.Windows.Controls.ItemsControl, or the Telerik.Windows.Controls.Selector in order to use the XAML ItemTemplateSelector DepedencyProperty, and the only plausible alternatives I found were the GridView and the TreeView, which are far from the requested behavior...

Now, I have understood you will not provide any support on this control, but I'm still looking for a solution...
I have tried to derive the ListBox control, but it is not possible to override some needed parts. And I really think I will loose lot of time if I begin to fully rewrite this control...

I think you can have a simple idea in order to help me achieve this goal : use a DataTemplateSelector into a ListBox. 

I have open a bug report ticket with a test project (http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=411160), but I still have no answer, and I really prefer to post here what I intend to do in order to find a solution with you, than reading an answer just explaining "there is no support for this internal control"....

Really hoping you can help me.

Bests,

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 07 Apr 2011, 03:22 PM
Hello Raphaël,

We will do our best to fix this for the upcoming SP next week.

All the best,
Valeri Hristov
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
0
Patrice VIALOR
Top achievements
Rank 1
answered on 20 Apr 2011, 01:37 PM
Hello,

The ListBox is still having problems, despites the corrections made : when you type on letters, it's working, but when you hit the space bar, nothing happens....

You can reproduce this behavior with the same project.

I think there should be a DependencyProperty or a virtual method letting people enable / disable the specific behavior you have made, and this for all the internally handled keys.

Thanks in advance,
Bests,


PS : Can you give a date of delivery for this fix ?
0
Accepted
Valeri Hristov
Telerik team
answered on 20 Apr 2011, 04:42 PM
Hello Raphaël,

I am pasting my answer from the support ticket here in case anyone else has the same question:
We are constantly receiving requests for a fully featured ListBox control, but we do not have plans for such development in the near future (at least for Q2 2011 in the summer).

The ListBox control was designed to be used internally by RadScheduler and is missing a lot of important functionality. Since it contained the features that we needed, we never made the additional step to make it a proper Rad control (hence it does not have a Rad prefix).


Regards,
Valeri Hristov
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
0
Patrice VIALOR
Top achievements
Rank 1
answered on 20 Apr 2011, 05:01 PM
Just read my first message : "I really prefer to post here what I intend to do in order to find a solution with you, than reading an answer just explaining "there is no support for this internal control".... "

You have said "We will do our best to fix this for the upcoming SP next week.". So we really expect this correction as soon as possible. You have made a good first attempt to correct it, and the only missing behavior is the space bar event. I really don't understand the reason why you now report this correction to Q2 2011. We can't wait 6 month for a central component of our product which is expected to be delivered in 1 month...

Using a TemplateSelector within a ListBox is really a central component in our implementation. Since you have said you will correct it for this Monday's release, we have planned we should just wait, and not try to build our TemplateSelectable ListBox...

So we really expect you could just fix this little point asap, or at least give a working workaround.

Thanks in advance,

Bests,






Tags
General Discussions
Asked by
Patrice VIALOR
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Patrice VIALOR
Top achievements
Rank 1
Share this question
or