Data binding options for CheckedItems property are disabled (greyed out)

5 posts, 0 answers
  1. Robert
    Robert avatar
    5 posts
    Member since:
    Apr 2013

    Posted 28 Apr 2013 Link to this post

    When I try to bind the CheckedItems property of my RadDataBoundListBox I can't because all the context menu items are disabled (greyed out).  Why is that? (See attached screen shot)

    Also, I have created a tab in my Toolbox for the Telerik WP7 controls.  I then use Choose Items to populate the tab by navigating to the Telerik binaries directory and selecting the relevant WP7 DLLs.  Works fine. But every now and then I come back into Visual Studio, and the tab and its constituent Telerik controls are missing from the Toolbox and I have to repeat the procedure.  Anyone know a fix for this syndrome?

    -- roschler
  2. Robert
    Robert avatar
    5 posts
    Member since:
    Apr 2013

    Posted 28 Apr 2013 Link to this post

    I'd still like to know why the Context Menu options are disabled, but it looks like I didn't need the CheckedItems collection property at all.  All I had to do was add an IsChecked property to the object class that comprises the ObservableCollection the list box's ItemsSource property is bound to, and then using Custom Expression enter IsChecked as the property value for ItemCheckedPath.  Now I have two-way data binding between my view model's object collection and the list box elements.

    -- roschler
  3. DevCraft banner
  4. Dyanko
    Admin
    Dyanko avatar
    122 posts

    Posted 29 Apr 2013 Link to this post

    Hello Robert,

    The CheckedItems collection is not bindable, i.e. the property which exposes it is read-only. You have found the right approach of defining whether an item is checked or not by using the ItemCheckedPath property.

    As for the Toolbox issue, we are not sure why it happens. Can you please try opening a single instance of Visual Studio, add the controls to the Toolbox and close that instance so that all settings are stored. After that you should continue working without having any issues according to our experience.

    Let me know if this helps.

    Greetings,
    Dyanko
    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.
  5. Robert
    Robert avatar
    5 posts
    Member since:
    Apr 2013

    Posted 29 Apr 2013 Link to this post

    Hello Dyanko,

    I have already run many tests like that.  It's intermittent.  The only pattern I have discerned so far is that it may be happening after I do a NuGet install, but not always.

    BTW, I'm having issues deep binding into a nested class structure using DisplayMemberPath (or a static binding from the XAML).  Could you take a look at this Stack Overflow post I made recently?:

    http://stackoverflow.com/questions/16284030/how-can-i-deep-data-bind-into-nested-class-when-binding-to-view-model-property-w


    Thanks,
    Robert.
  6. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 02 May 2013 Link to this post

    Hi Robert,

     Could you please post the full link. It currently says Page Not Found

    Greetings,
    Kiril Stanoev
    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
DevCraft banner