Telerik Forums
UI for WPF Forum
7 answers
637 views
Hi,

I have created sample solution which uses RadDocking with MVVM approach: https://skydrive.live.com/redir?resid=51A46BBA4E9EF07E!1215

<telerik:RadDocking x:Name="dockManager"
     local:DockingExtensions.PaneSource="{Binding LayoutPanes}"
     local:DockingExtensions.ActivePane="{Binding ActivePane, Mode=TwoWay}">
     <telerik:RadDocking.Resources>
       <Style TargetType="telerik:RadPane">
         <Setter Property="Header" Value="{Binding Name}" />
         <Setter Property="Content" Value="{Binding View}" />
         <Setter Property="CanDockInDocumentHost" Value="False" />
       </Style>
 
       <Style TargetType="telerik:RadDocumentPane">
         <Setter Property="Header" Value="{Binding Name}" />
         <Setter Property="Content" Value="{Binding View}" />
         <Setter Property="CanDockInDocumentHost" Value="True" />
       </Style>
 
        
       <Style TargetType="telerik:ToolWindow">
         <Setter Property="Header" Value="{Binding Name}" />
         <Setter Property="Content" Value="{Binding View}" />
         <Setter Property="ToolTip" Value="This style is not applied when radpane is dragged. Why?" />
       </Style>
     </telerik:RadDocking.Resources>
      
     <telerik:RadSplitContainer />
   </telerik:RadDocking>


there's DockingExtensions.cs file with attached property called 'PaneSource'. This property generates RadPanes from it's value, see addRadPane method it that file.

When the RadPane is being generated, addRadPane method sets datacontext to radpane 
RadPane pane = ...

pane.DataContext = paneVM;


Works fine, until I make the pane floatable. Seems like the datacontext is not preserved when after radpane is moved to toolwindow.

My questions are:
1. How to extend DockingExtensions to support floating panes?
2. Why my style for ToolWindow isn't applied (see code above)
3. Can I disable floating functionality but allow user do reorder panes? setting CanFloat to false makes imposibble to drag&drop panes
Nathan
Top achievements
Rank 1
 answered on 19 Jul 2018
2 answers
112 views

I have a xamlDocument,that contains tables, in one table,i need to copy some rows and then add to the table!

But, when i use:

   TableRow newRow = copyRow.CreateDeepCopy() as TableRow;
        tableAndRow.Item1.Rows.AddAfter(row, newRow);

Tanya
Telerik team
 answered on 19 Jul 2018
2 answers
281 views
Hi! I have .resx file with localization strings for GridView filter. When I set FilteringMode in "FilterRow" mode, I see right values for True/False (column binded to boolean property), but when I use "Popup" mode - localization don't work. Is there another resourses I must localize? Example pictures attached.
Michael
Top achievements
Rank 1
 answered on 19 Jul 2018
1 answer
437 views

More in particular for selecting date of birth.

 

Is there an option available to show only years when opening the control.

After selecting a year we show the months and afterwards the days. After selecting the day, the final date of birth is filled in in the control.

This would avoid a lot of extra touch events for our users.

Could this work by switching the selection from year/mont/day between each selection. Can we avoid the popup from opening.closing every time?

Thank you for your support.

 

Dilyan Traykov
Telerik team
 answered on 19 Jul 2018
1 answer
510 views

Is is possible with GridViewComboBoxColumn to apply the selected value on combobox select.

Now I have the following combobox column and the selected value is set to the viewmodel when the cell lose focus:

<telerik:GridViewComboBoxColumn Header="header text" ItemsSourceBinding="{Binding Actions}" DataMemberBinding="{Binding Action, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                             DisplayMemberPath="NameDisp" EditTriggers="CellClick"  />     
Stefan
Telerik team
 answered on 19 Jul 2018
1 answer
227 views

I'm trying to bind a RadPieChart to data the user has selected using the RadPivotFieldList.  I would like to know how to customise the labels and also how to use the legend with the PieSeries data.

Below is what I have so far, I maybe wildly off the mark with how I'm approaching this.  Any feedback would be welcome.

Thanks

<pivot:RadPivotFieldList x:Name="FieldList"  DataProvider="{Binding DataProvider}"/>
 
<telerik:RadPieChart x:Name="pieChart" Grid.Column="1" Palette="Windows8" DataContext="{Binding ChartViewModel}">
 
    <telerik:PieSeries ValueBinding="Value" ItemsSource="{Binding SeriesSource[0].Items}" ShowLabels="True" >
    </telerik:PieSeries>
</telerik:RadPieChart>

 

In the viewmodel

public LocalDataSourceProvider DataProvider
{
    get => _dataProvider;
    set
    {
        _dataProvider = value;
        OnPropertyChanged(() => DataProvider);
    }
}
 
public PivotChartViewModel ChartViewModel { get; set; }

 

I'm setting the DataProvider of the ChartViewModel like this.

ChartViewModel.DataProvider = DataProvider

 

Stefan
Telerik team
 answered on 19 Jul 2018
7 answers
328 views

Hi. I am working on an application where I need to modify the GroupHeaderRow template. We are using version 2015.1.225.45 of Telerik UI for WPF, but everything is in DLLs. How should I proceed to get this template?.

Regards,

Sebastian

Martin Ivanov
Telerik team
 answered on 19 Jul 2018
1 answer
273 views

Hi Telerik,

my os :win10

VS:2015

telerik :WPF 2017 R1 SP1

when is use the OpenFileDialog control,and click the oepn button,it will throw 19 exceptions, System.IO.FileNotFoundException.

1. read c:\config.msi error.

2. read c:\Documents and Settings error.

......

and so on.

why?

It would be nice if you could help me here.
with kind regards

 

When I use the Openfiledialog control, when I click the Open button, I will cause 19 exceptions, System.IO.FileNotFoundException, the first c:\\config.msi error, the second, the c:\\Documents and settings error, and so on.

Martin Ivanov
Telerik team
 answered on 19 Jul 2018
1 answer
176 views

I have used RadGridView to show data with customize group header by GroupHeaderTemplate. I have used grouping on single column and based on that it shows the group header but not able to bind it. I had searched related to this but not found any solution. I would like to know how we bind the customized GroupHeaderTemplate from viewmodel?

I have refer below link but it not working -

http://latestupdatedinfo.blogspot.in/2016/05/telerik-wpf-radgridview-group-header.html

can you please provide sample example?

Thanks

Ajay
Top achievements
Rank 1
 answered on 19 Jul 2018
5 answers
589 views

I have used RadGridView to show data with customize group header by GroupHeaderTemplate. I have used grouping on single column and based on that it shows the group header but not able to bind it. I had searched related to this but not found any solution. I would like to know how we bind the customized GroupHeaderTemplate from viewmodel?

I have refer below link but it not working -

http://latestupdatedinfo.blogspot.in/2016/05/telerik-wpf-radgridview-group-header.html

can you please provide sample example?

 

Thanks

Ajay
Top achievements
Rank 1
 answered on 19 Jul 2018
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?