This question is locked. New answers and comments are not allowed.
Hi!
Having a problem with a GridviewCombobox column. I am using MVVM and have the Gridview populated. The GridviewComboBoxColumn even populates with the correct value, but when i click on the column, it does not open up the dropdown. I've checked all the properties of the column and the gridview that might cause the column to not be editable and so far no luck. the other fields that are not comboboxcolumns are able to be edited and work just fine. FYI all these controls are Telerik controls, just overloaded. here is my XAML and viewmodel
Having a problem with a GridviewCombobox column. I am using MVVM and have the Gridview populated. The GridviewComboBoxColumn even populates with the correct value, but when i click on the column, it does not open up the dropdown. I've checked all the properties of the column and the gridview that might cause the column to not be editable and so far no luck. the other fields that are not comboboxcolumns are able to be edited and work just fine. FYI all these controls are Telerik controls, just overloaded. here is my XAML and viewmodel
Namespace ViewModels
Public Class vm_RatesMaintenance
Inherits ViewModelBase
Dim RIA_rates_context As alflex.RIA_rates_service
Private ReadOnly _Rates As QueryableDomainServiceCollectionView(Of tbl_service_to_ins)
Public Sub New()
RIA_rates_context = New alflex.RIA_rates_service()
Dim GetRatesQuery As EntityQuery(Of tbl_service_to_ins) = RIA_rates_context.GetTbl_service_to_insQuery
_Rates = New QueryableDomainServiceCollectionView(Of tbl_service_to_ins)(RIA_rates_context, GetRatesQuery)
_Rates.PageSize = 10
_Rates.AutoLoad = True
RIA_rates_context.Load(RIA_rates_context.GetTbl_serviceQuery)
End Sub
Public ReadOnly Property Rates() As QueryableDomainServiceCollectionView(Of tbl_service_to_ins)
Get
Return Me._Rates
End Get
End Property
Public ReadOnly Property Services() As EntitySet(Of tbl_service)
Get
Return RIA_rates_context.tbl_services
End Get
End Property
End Class
<alflexControls:GridView Height="532" AutoGenerateColumns="True" x:Name="RadGridView1" VerticalAlignment="Top" ItemsSource="{Binding Rates}" Margin="0,44,0,0" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed"> <alflexControls:GridView.Columns> <alflexControls:GridViewComboBoxColumn DataMemberBinding="{Binding tbl_service.srvc_id, Mode=TwoWay}" ItemsSourceBinding="{Binding Services, Mode=TwoWay, Source={StaticResource vm_RatesMaintenance}}" SelectedValueMemberPath="srvc_id" DisplayMemberPath="rate" Header="Service Code" IsReadOnly="False" ></alflexControls:GridViewComboBoxColumn> <alflexControls:GridViewDataColumn DataMemberBinding="{Binding rate}" Header="Rate" IsFilterable="False"/> <alflexControls:GridViewDataColumn DataMemberBinding="{Binding unit_time}" Header="Unit Time" IsFilterable="False"/> <alflexControls:GridViewDataColumn DataMemberBinding="{Binding session_units}" Header="session_units" IsFilterable="False"/> <alflexControls:GridViewDataColumn DataMemberBinding="{Binding is_daily_srvc}" Header="is_daily_srvc" IsFilterable="False"/> </alflexControls:GridView.Columns> </alflexControls:GridView>