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

What happens to ItemsOptionListType

18 Answers 250 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 17 Oct 2013, 04:58 AM
Hello,
the ItemsOptionListType property of RadTreeView has disappeared, even if it's still displayed in documentation.
What is the replacing property, to have the same functionality?
Patrick

18 Answers, 1 is accepted

Sort by
0
Josh
Top achievements
Rank 1
answered on 17 Oct 2013, 09:47 PM
And the release notes have no mention of this property being removed. We use ItemsOptionListType="CheckList" fairly often.
0
Sven
Top achievements
Rank 1
answered on 18 Oct 2013, 07:21 AM
We are facing the same problem. Seems like it was removed by accident...

Edit: Actually, it seems to be obsolete for quite a while: http://www.telerik.com/help/silverlight/radtreeview-backward-compatibility.html. I guess, we will have to find another solution...

0
Sven
Top achievements
Rank 1
answered on 18 Oct 2013, 08:15 AM
OK, I get it now.

The RadioButtons logic implemented in the RadTreeView is obsoleted and since there were only 4 options for ItemsOptionListType: CheckList and Default (resulting in showing CheckBoxes), None (resulting in showing nothing) and OptionList (resulting in showing RadioButtons), there is no longer reason for the property ItemsOptionListType to exist. 

If you only used it to show CheckBoxes, you can just put IsOptionElementsEnabled="True" and leave the ItemsOptionListType="CheckList" away.

If you used it to show RadioButtons, you're in bad luck...
0
Bebel
Top achievements
Rank 1
answered on 18 Oct 2013, 02:24 PM
Hello,
Thanks for you suggestions but i have a little topic for you about this.

From my side i removed the ItemsOptionListType="CheckList" property of my RadTreeView that i replaced by isOptionElementsEnabled="True" as you suggested.

But now when i try to get my checked elements with  myRadTreeView.CheckedItems this property get all RadTreeViewItems either they are checked or not ...

 

Any of you have this issue ?

Thank you !

 

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 18 Oct 2013, 04:41 PM
Numa,
I have removed ItemsOptionListType="CheckList", but has not replaced the option and it works!
Patrick
0
Sven
Top achievements
Rank 1
answered on 21 Oct 2013, 10:16 AM
Yes indeed, Numa, I'm experiencing the same problem.
CheckedItems alwas contains all the items, regardless of whether they're checked or not.
0
Bebel
Top achievements
Rank 1
answered on 21 Oct 2013, 01:50 PM
Hello Patrick, Sven,

Thanks for your feedback.
As from my side the CheckedItems list content is wrong, I re developed the logic in the model, binding each IsChecked property to a boolean stored in each class of my model (making a Partial class for each of them as i'm using Linq To SQL)

Don't know if it's the best solution but it's working !
Numa
   
0
Sven
Top achievements
Rank 1
answered on 24 Oct 2013, 10:23 AM
This is the answer I've got from Telerik Support:

Thank you for contacting us on that matter. When working with the built-in CheckBoxes of the RadTreeViewItems you need to keep in mind that they are designed to work with XAML defined elements only. When you use data binding you can define a custom ItemTemplate containing the Checkboxes and implement custom logic for checking/uncheking the CheckBox controls.

You can find this approach demonstrated in this article. Please take a look at it and let me know if you need any further assistance.

0
Bebel
Top achievements
Rank 1
answered on 24 Oct 2013, 12:24 PM
Hello Sven,

Thanks for your post. In any case we have to develop again the business logic of our treeView. With binding or in code behind..

Numa
0
Hristo
Telerik team
answered on 24 Oct 2013, 01:05 PM
Hello,

Sven, thank you for the quick actions and clarifications you have provided.

The ItemsOptionListType property has been removed both from RadTreeView and RadTreeViewItem objects. This property has been obsolete for two major releases.
Actually we decided to remove RadioButton support from RadTreeView in order to simplify the code and fix the existing bugs. We have identified low feature usage and straight forward approach in achieving this functionality. Using data templates with binding provides better customization and greater extensibility.

Also, we do recommend the usage of data template CheckBox/RadioButton elements in case of data bound RadTreeView.
The approach Numa has employed is great and we think it is the right way of developing XAML applications.

In addition, we are not aware of the issue Numa and Sven are experiencing. I would like to investigate them in detail and will be very glad if one of you open a support thread and attach a sample project.

Finally, thanks to all of you, we saw a flow in our documentation. We are going to update it as soon as possible in order to reflect the current situation and provide the right guidance about how and when CheckBox(es)/RadioButton(s) should be used. 

Regards,
Hristo
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 24 Oct 2013, 01:17 PM
Hristo,
the big problem with this is that this change, that affects many people was never documented in the notes of the Q3 2013 version.
And I don't remember seeing somewhere that this attribute was obsolete. If I saw it when I use this feature, I would look for another way to do what I want.
Patrick
0
Sven
Top achievements
Rank 1
answered on 24 Oct 2013, 02:29 PM
Hello Hristo,

actually, I did open a support ticket with a sample project for this (ticket-ID 749428). 
I already closed it though, because I agree using a datatemplate with a databound checkbox is a more elegant solution.
But if you agree that the CheckedItems property should work the same as in the previous version, maybe you can reopen the ticket?

kind regards,

Sven
0
Hristo
Telerik team
answered on 25 Oct 2013, 10:55 AM
Hello Patrick,

I totally agree with you about release notes and the inconvenience caused by not describing this change. The property has been obsolete with Q1 2013 and Q2 2013. We thought this period is long enough but apparently we were wrong. I am going to address the help and release notes issues.

Regards,
Hristo
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Hristo
Telerik team
answered on 25 Oct 2013, 11:19 AM
Hello Sven,

Thank you for the sample project. Indeed the CheckedItems collection contains all items regardless they are checked or not and I am going to file a bug about it (here).

Currently we would like to persuade our clients use the data template approach for CheckBoxe(s) and RadioButton(s). However this bug should be visible and know to our users.

Regards,
Hristo
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 25 Oct 2013, 11:32 AM
Hristo,
the problem with the [Obsolete] attribute is that it's not visible when using the property only in XAML...
What I really think is that, once an attribute is marked as obsolete, the documentation should display it in the controls description, not only in the API reference.
Patrick
0
Tina Stancheva
Telerik team
answered on 30 Oct 2013, 03:46 PM
Hello Patrick,

Thank you for your feedback. We will definitely consider adding a note to the description of properties and/or methods whenever we have to introduce any breaking changes with them. Also we are currently working on improving our upgrade resources in terms of better description of any changes that might cause issues within custom application. We will try to provide more specific guidelines regarding changes and steps that our customer should follow to get over them.

As for the RadTreeView, we will make sure to update the documentation as soon as possible so that we can make sure it properly reflects the best practices for using CheckBoxes within the component.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
hub
Top achievements
Rank 1
answered on 13 Feb 2014, 05:18 AM

Hi,

I have a question about RadTreeView.In  the past times,I used telerik 2012(trail version) in my project,and it can display the datas bounded in RadTreeView well.Lately,since our company have bought telerik Q3 2013,I'm pretending to replace telerik 2012 with telerik Q3 2013.But here comes the problem:
After I replace the dlls in 2012 with dlls in 2013,it can't display the datas in radtreeview.The same question comes with RadCombobox,while radgridview works well both in 2012 and 2013.Besides,I have bulit a simple project only using radtreeview with Telerik.Windows.Controls.dll and Telerik.Windows.Controls.Navigation.dll in.I have uploaded the project below.I'll very appreciate it if you can answer me as soon as possible.

0
Tina Stancheva
Telerik team
answered on 17 Feb 2014, 03:00 PM
Hi,

Unfortunately I can't find any attachment in this forum. However, if your company has purchased the latest UI for WPF, I'd strongly encourage you to utilize the support package that comes with it. You can create a support ticket that has a guaranteed 24hour response time as it also allows you to attach zip files.

Also, we're not aware of any particular changes that can deny the upgraded components from displaying data. This is why the fastest way for us to assist you is through the ticketing system, where once you attach your sample solution, we will be able to review it and help you setup the components per your requirements.

Regards,
Tina Stancheva
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
TreeView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Josh
Top achievements
Rank 1
Sven
Top achievements
Rank 1
Bebel
Top achievements
Rank 1
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Hristo
Telerik team
Tina Stancheva
Telerik team
hub
Top achievements
Rank 1
Share this question
or