Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Advance Empty ComboBox cells

$
0
0

I used this method to fix the empty combo box

 

http://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/blank-cells.html

 

I have a Usercontrol called relationship that uses that fix. 

At the moment I have to create 4 different UserControls because each is pointing to a different viewmodel. Is there a way to have it dynamic so it can point to any.

<UserControl.Resources>
    <local:MainPageViewModel1x:Key="mainPageViewModel1"/>
    <local:MainPageViewModel2x:Key="mainPageViewModel2"/>
    <local:MainPageViewModel3x:Key="mainPageViewModel3"/>
</UserControl.Resources>
...
<telerik:GridViewComboBoxColumnHeader="Category"
        DataMemberBinding="{Binding CategoryID}"
        ItemsSource="{Binding Path=Categories, Source={StaticResource CHOOSE CORRECT VM}}"
        DisplayMemberPath="CategoryName"
        SelectedValueMemberPath="CategoryID"/>

Viewing all articles
Browse latest Browse all 84751

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>