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

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

4 Answers 81 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.
Robert
Top achievements
Rank 1
Robert asked on 28 Apr 2013, 11:36 PM
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

4 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 29 Apr 2013, 01:46 AM
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
0
Dyanko
Telerik team
answered on 29 Apr 2013, 02:45 PM
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.
0
Robert
Top achievements
Rank 1
answered on 29 Apr 2013, 05:14 PM
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.
0
Kiril Stanoev
Telerik team
answered on 02 May 2013, 01:24 PM
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.
Tags
DataBoundListBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Dyanko
Telerik team
Kiril Stanoev
Telerik team
Share this question
or