What happens to ItemsOptionListType

19 posts, 0 answers
  1. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 16 Oct 2013 Link to this post

    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
  2. Josh
    Josh avatar
    27 posts
    Member since:
    Feb 2012

    Posted 17 Oct 2013 Link to this post

    And the release notes have no mention of this property being removed. We use ItemsOptionListType="CheckList" fairly often.
  3. DevCraft banner
  4. Sven
    Sven avatar
    5 posts
    Member since:
    Apr 2013

    Posted 18 Oct 2013 Link to this post

    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...

  5. Sven
    Sven avatar
    5 posts
    Member since:
    Apr 2013

    Posted 18 Oct 2013 Link to this post

    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...
  6. Bebel
    Bebel avatar
    3 posts
    Member since:
    Apr 2012

    Posted 18 Oct 2013 Link to this post

    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 !

     

  7. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 18 Oct 2013 Link to this post

    Numa,
    I have removed ItemsOptionListType="CheckList", but has not replaced the option and it works!
    Patrick
  8. Sven
    Sven avatar
    5 posts
    Member since:
    Apr 2013

    Posted 21 Oct 2013 Link to this post

    Yes indeed, Numa, I'm experiencing the same problem.
    CheckedItems alwas contains all the items, regardless of whether they're checked or not.
  9. Bebel
    Bebel avatar
    3 posts
    Member since:
    Apr 2012

    Posted 21 Oct 2013 Link to this post

    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
       
  10. Sven
    Sven avatar
    5 posts
    Member since:
    Apr 2013

    Posted 24 Oct 2013 Link to this post

    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.

  11. Bebel
    Bebel avatar
    3 posts
    Member since:
    Apr 2012

    Posted 24 Oct 2013 Link to this post

    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
  12. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 24 Oct 2013 Link to this post

    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 >>
  13. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 24 Oct 2013 Link to this post

    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
  14. Sven
    Sven avatar
    5 posts
    Member since:
    Apr 2013

    Posted 24 Oct 2013 Link to this post

    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
  15. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 25 Oct 2013 Link to this post

    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 >>
  16. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 25 Oct 2013 Link to this post

    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 >>
  17. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 25 Oct 2013 Link to this post

    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
  18. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 30 Oct 2013 Link to this post

    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 >>
  19. hub
    hub avatar
    1 posts
    Member since:
    Dec 2013

    Posted 12 Feb 2014 in reply to Hristo Link to this post

    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.

  20. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 Feb 2014 Link to this post

    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).

Back to Top
DevCraft banner