Telerik Forums
UI for WPF Forum
1 answer
408 views

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.

Nasko
Telerik team
 answered on 16 Aug 2016
3 answers
203 views

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?

Dilyan Traykov
Telerik team
 answered on 16 Aug 2016
1 answer
103 views
I do a lot of dynamic creating columns and such and I see the first 2 cells in the row (item for telerik) are not seen.
example I have 10 columns but will have 12 cells.
what are these first 2 cells?
Dilyan Traykov
Telerik team
 answered on 16 Aug 2016
2 answers
192 views

 

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

shay
Top achievements
Rank 1
 answered on 16 Aug 2016
2 answers
168 views

Hello~

I have attached picture.

That picture explains my problem.

I want to restored no 1.  

Please help me~

 

MinSu
Top achievements
Rank 1
 answered on 16 Aug 2016
14 answers
240 views
I bag your pardon - I've gotten error in the title of previouse post. I develop C# WPF MVVM Prism 6 application. My application' solution comprises Shell project (where main window is RadWindow) and numerous Prism module projects. Each project of these PrismModule projects has Views (Prism UserControl) and ViewModels (PrismViewModel). I need to define in the one of the modules (in Prism module not in Shell) several Views (approximetly 8). Seven of them must dysplay real-time chart each. Suppose these seven Views have a shared ViewModel. And the one remaining View (call it 'A' view) must comprise all abovementioned seven Views and display them all at the same time. So my question is the following: Can I use RadDocking for this purpose? I've found two your blogs about using RadDocking with Prism: "http://www.telerik.com/blogs/using-raddocking-with-prism-in-wpf-silverlight" and "http://www.telerik.com/blogs/using-the-raddocking-control-with-prism". But both of them are written about such using of RadDocking in Shell. But I need to use RadDocking in the same manner in a Prism UserControl that is a View in a Prism module. In addition, these two blogs specified using of MEF, but I use Unity dependecy injection in my application. So, can I use RadDocking for the purpose described above? Please answer me.
Dmitry
Top achievements
Rank 1
 answered on 15 Aug 2016
3 answers
377 views
Hello. When I set RadPane.IsHidden to 'false' after it has been set to 'true' the RadPain remains invisible. Below is XAML markup:
<UserControl x:Class="DeviceReading.Views.DeviceReadingView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             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;
   }
}

Initially (after application loading) the RadPain is visible and the CheckBox is unchecked. When I check the CheckBox first then the RadPain become invisible. But when I uncheck the CheckBox after it then the RadPain remains invisible (but the command is fired). How to have the command display the RadPain each time the CheckBox is unchecked? What I'm doing wrong?
Dmitry
Top achievements
Rank 1
 answered on 15 Aug 2016
1 answer
126 views
Hello, 

I was wondering if there are any existing examples that demonstate the following TreeListView features:
  • Custom template for Drag/Drop behavior ("drop node1 before node2" as a preview, for example)
  • Dragging a TreeListView item into another control that accepts drop (passing a DataObject through a DragEventArgs)

Thanks,
Ryan

Yoan
Telerik team
 answered on 15 Aug 2016
1 answer
848 views

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>

Dilyan Traykov
Telerik team
 answered on 15 Aug 2016
1 answer
83 views

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?

Stefan Nenchev
Telerik team
 answered on 15 Aug 2016
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?