I've placed a RadGridView in the items control template of my combobox. It's working fine with the exception of the filtering, which is a bit "clunky". The gridview displays when clicking on the dropdown button, but when I enter some text, the grid closes and only re-opens (with the new filtered dataset) after clicking twice on the dropdown.
Any ideas?
XAML:
<tk:RadComboBox Width="200" Text="{Binding ComboText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" OpenDropDownOnFocus="True" StaysOpenOnEdit="True" IsFilteringEnabled="True" IsEditable="True" >
<tk:RadComboBox.Items>
<tk:RadComboBoxItem>
<tk:RadComboBoxItem.Template>
<ControlTemplate>
<tk:RadGridView ItemsSource="{Binding MatterList}" SelectedItem="{Binding SelectedMatter}" IsReadOnly="True" AutoGenerateColumns="False" Width="400" Height="150" ShowGroupPanel="False" ScrollViewer.VerticalScrollBarVisibility="Auto">
<tk:RadGridView.Columns>
<tk:GridViewDataColumn Header="Matter Id" DataMemberBinding="{Binding MatterId}" Width="150*" SortingState="Ascending" />
<tk:GridViewDataColumn Header="Description" DataMemberBinding="{Binding MatterDescription}" Width="200*"/>
</tk:RadGridView.Columns>
</tk:RadGridView>
</ControlTemplate>
</tk:RadComboBoxItem.Template>
</tk:RadComboBoxItem>
</tk:RadComboBox.Items>
</tk:RadComboBox>
In the Viewmodel, the "MatterList" dataset is an observable collection which invokes "RaisePropertyChanged" event when updated.
I have a telerik:RadDataForm with an EditTemplate.
In that template I have a number of telerik:DataFormDataField's defined.
What I would like is to have the keyboard focus automatically set to one of these fields (not the first), when I do a BeginEdit().
How?
Hi,
how to invert the Arrow direction >> to <<
the property flowDirection isn't good for me because it's change all the inner controls directions
Thanks
Hello~
I have attached picture.
That picture explains my problem.
I want to restored no 1.
Please help me~
<UserControl x:Class="DeviceReading.Views.DeviceReadingView" xmlns:prism="http://prismlibrary.com/" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" prism:ViewModelLocator.AutoWireViewModel="True">. . . . . . . . . . . . . . . . . . .<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" Margin="0 5 0 3" Orientation="Horizontal"> <CheckBox Content="Gas Velocity" Command="{Binding Path=ShowHideGasVelocityChartViewCommand}" CommandParameter="{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}"/></StackPanel><telerik:RadDocking Grid.Row="1" Grid.Column="0" x:Name="Docking">. . . . . . . . . . . . . . . . . . . <telerik:RadSplitContainer> <telerik:RadPaneGroup> <telerik:RadPane Header="Gas Velocity" IsHidden="{Binding IsGasVelocityChartHidden, Mode=TwoWay}" prism:RegionManager.RegionName="GasVelocityChartRegion" /> </telerik:RadPaneGroup> </telerik:RadSplitContainer>. . . . . . . . . . . . . . . . . . .</telerik:RadDocking>. . . . . . . . . . . . . . . . . . .</UserControl>Where UserControl is Prism UserControl. Below is ViewModel code.
public class DeviceReadingViewModel : BindableBase, IConfirmNavigationRequest{ . . . . . . . . . . public DeviceReadingViewModel(IEventAggregator eventAggregator) { this._eventAggregator = eventAggregator; this.ShowHideGasVelocityChartViewCommand = new DelegateCommand<object>(this.showHideGasVelocityChartView); } // Field and property controlling of the RadPain status (Visible / Hidden) private bool _isGasVelocityChartHidden; public bool IsGasVelocityChartHidden { get { return this._isGasVelocityChartHidden; } set { this.SetProperty(ref this._isGasVelocityChartHidden, value); } } // The command of hidding / visualizing of the RadPain. public DelegateCommand<object> ShowHideGasVelocityChartViewCommand { get; private set; } private void showHideGasVelocityChartView(object parameter) { if ((bool)parameter == true) this.IsGasVelocityChartHidden = false; else this.IsGasVelocityChartHidden = true; }}Thanks,
Ryan
Hi,
If i select a row in the gridview, the selected color is orange and has a red border around it.
How can I remove this border?
The same for the row that is under the mousecursor. The color is than yellow, but it also has red border.
I tried this one but it does not work:
<Style TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="White" />
<Setter Property="Foreground" Value="Black"/>
<Setter Property="BorderThickness" Value="0" />
</Style>
when I use the group by (move a column to the group by header)
there is a empty column added.
How can I hide these?