Telerik Forums
UI for WPF Forum
3 answers
300 views

i have been looking on the Forums and Documentation for some samples on how to edit Custom Styles for the Ribbon UI in XAML and also in Code Behind.

If there are links or fourm posts', could you link them, and I will look at those.

If not could you make s small project for WPF?

We want to add a custom style with Times New Roman Font Size 10
Sample Spacing so 1 not 1 1/2
Color Black
List Styles, pretty much the default ribbon styles and have it default to the styles I change?

 I added a attachment of the ribbon, and I would like to make it appear as the first choice.
Mihail
Telerik team
 answered on 27 Aug 2013
1 answer
83 views
Hi,

the AppointmentSaving event is running if i double-click a appointment in the schedule view! I make the
double-click on a appointment a my event is running before i can see the appointment mask and before i
click ok?

How can i solve this?

Thanks
Best regards
Rene
Kalin
Telerik team
 answered on 27 Aug 2013
2 answers
122 views
Hi,

i use the RadSchedule view with an MVVM, I group my appointments by Name of the customers. This works fine. I can add and remove
a group by clicking on the customer. But if I change to timeline-view this does not work. I see my selected groups, but I can't remove or
a one. If I switch back to month- or week view grouping is fine again!

Thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 answered on 27 Aug 2013
4 answers
155 views
Hi experts

I'm using RadAutocomplete box  to select customer  from list of customers . but when ever my mouse courser  pointed on radautocompleted box dropdown button cursor is changing .i'm unable to click on radautocompletebox dropdown

how to get it?

thanks in advance 
Pranavi
Top achievements
Rank 1
 answered on 27 Aug 2013
3 answers
174 views
Hi,

I have a GridView bound to a ObservableList<DynamicObject>. I need to use DynamicObject since there could be undetermined number of columns displayed in GridView. The binding to data works fine.

I would also like to notify user which rows are containing invalid data. When using regulkar types and DataAnnotations everything works fine. How can I achieve the same result with DynamicObject?

Only requirement is if data exists or not. All data are of string type, If required for UI validation, I can expose bool properties (like IsValid)

public class SomeObject : DynamicObject, INotifyPropertyChanged
{
    public bool IsValid { ... }
}


Regards,
Goran
Joel Palmer
Top achievements
Rank 2
 answered on 26 Aug 2013
1 answer
384 views
Hi,

I want to update the data in RadPivotGrid cells.How to customize the Pivot Grid and make it editable on click/double click.
Please suggest. 
Thanks!
Rosen Vladimirov
Telerik team
 answered on 26 Aug 2013
2 answers
125 views
Hello.
We have a RadDocking control with multiple RadPanes in a RadPaneGroup.  Each RadPane contains a GridView.  We have an implicit style which works as expected.  The RadPanes are dynamically added to the RadPaneGroup on demand by the user.  Each time a RadPane is added the GridView is styled correctly.

When we implemented the PersistenceFramework we ran into an issue where the RadPane which is selected upon start-up gets the default style applied.  If I create a new RadPane it will be styled correctly as described.  I then save my layout and terminate the application.  When I start the application and we call  LoadLayout on the GridView and Load on the PersistenceManager.  And again that RadPane which is selected will have the default style applied to the GridView while the other RadPanes have the implicit style applied.

What would be a reason for this?

Thanks
Paul
Paul
Top achievements
Rank 1
 answered on 26 Aug 2013
1 answer
118 views
Hello,

I've extended the RadDocking and I want to entend the RadPane too.
How can I set the RadDocking to create the CustomRadPane instead RadPane?
(In RadTabControl I've overrided the GetContainerForItemOverride in order to create CustomTabItem)

Best Regards
George
Telerik team
 answered on 26 Aug 2013
1 answer
83 views
Hello Again;

I've recently hit up against another wall, in an attempt to use FluidContentControl within my TileViewItems I seem to lose data binding, charts that worked outside the control's properties no longer receive data, and same for data grids, I'm not sure how to proceed. The following is an example of my xaml (the small is meant to be 'blank' while the medium and large share the same content since I was experimenting with the controls), the chart is tied to an observable collection of objects each of which has an observable collection of 'dates' and 'decimal values' for which to populate the chart.

<telerik:RadTileViewItem Header="Equity"  MinimizedWidth="100">
                    <telerik:RadFluidContentControl>
                        <telerik:RadFluidContentControl.SmallContent>
                            <Grid Width="100"></Grid>
                        </telerik:RadFluidContentControl.SmallContent>
                        <telerik:RadFluidContentControl.Content>
                            <Grid>
                                <DockPanel LastChildFill="True">
                                    <telerik:RadLegend DockPanel.Dock="Bottom"   x:Name="legends" Items="{Binding ElementName=chartz, Path=LegendItems}" HorizontalAlignment="Center">
                                        <telerik:RadLegend.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <telerik:RadWrapPanel Orientation="Horizontal"/>
                                            </ItemsPanelTemplate>
                                        </telerik:RadLegend.ItemsPanel>
                                    </telerik:RadLegend>
                                    <telerik:RadCartesianChart DockPanel.Dock="Bottom" x:Name="chartz" Palette="Windows8" >
                                        <telerik:RadCartesianChart.Grid>
                                            <telerik:CartesianChartGrid MajorLinesVisibility="Y"/>
                                        </telerik:RadCartesianChart.Grid>
                                        <telerik:RadCartesianChart.Behaviors>
                                            <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Horizontal"/>
                                        </telerik:RadCartesianChart.Behaviors>
                                        <telerik:RadCartesianChart.HorizontalAxis>
                                            <telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="dd MMM yyyy"/>
                                        </telerik:RadCartesianChart.HorizontalAxis>
                                        <telerik:RadCartesianChart.VerticalAxis>
                                            <telerik:LinearAxis HorizontalAlignment="Right"></telerik:LinearAxis>
                                        </telerik:RadCartesianChart.VerticalAxis>
                                        <telerik:RadCartesianChart.SeriesProvider>
                                            <telerik:ChartSeriesProvider Source="{Binding VisiblePortfolios}">
                                                <telerik:ChartSeriesProvider.SeriesDescriptors>
                                                    <telerik:CategoricalSeriesDescriptor ItemsSourcePath="EquityCurve" ValuePath="Value" CategoryPath="Date">
                                                        <telerik:CategoricalSeriesDescriptor.Style>
                                                            <Style TargetType="telerik:LineSeries">
                                                                <Setter Property="StrokeThickness" Value="2"/>
                                                                <Setter Property="LegendSettings" Value="{Binding Name, Converter={StaticResource SeriesSourceNameToSeriesLegendSettigsConverter}}"/>
                                                            </Style>
                                                        </telerik:CategoricalSeriesDescriptor.Style>
                                                    </telerik:CategoricalSeriesDescriptor>
                                                </telerik:ChartSeriesProvider.SeriesDescriptors>
                                            </telerik:ChartSeriesProvider>
                                        </telerik:RadCartesianChart.SeriesProvider>
                                    </telerik:RadCartesianChart>
                                </DockPanel>
                            </Grid>
                        </telerik:RadFluidContentControl.Content>
                        <telerik:RadFluidContentControl.LargeContent>
                            <Grid>
                                <DockPanel LastChildFill="True">
                                    <telerik:RadLegend DockPanel.Dock="Bottom"   x:Name="legend" Items="{Binding ElementName=chart, Path=LegendItems}" HorizontalAlignment="Center">
                                        <telerik:RadLegend.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <telerik:RadWrapPanel Orientation="Horizontal"/>
                                            </ItemsPanelTemplate>
                                        </telerik:RadLegend.ItemsPanel>
                                    </telerik:RadLegend>
                                    <telerik:RadCartesianChart DockPanel.Dock="Bottom" x:Name="chart" Palette="Windows8" >
                                        <telerik:RadCartesianChart.Grid>
                                            <telerik:CartesianChartGrid MajorLinesVisibility="Y"/>
                                        </telerik:RadCartesianChart.Grid>
                                        <telerik:RadCartesianChart.Behaviors>
                                            <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Horizontal"/>
                                        </telerik:RadCartesianChart.Behaviors>
                                        <telerik:RadCartesianChart.HorizontalAxis>
                                            <telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="dd MMM yyyy"/>
                                        </telerik:RadCartesianChart.HorizontalAxis>
                                        <telerik:RadCartesianChart.VerticalAxis>
                                            <telerik:LinearAxis HorizontalAlignment="Right"></telerik:LinearAxis>
                                        </telerik:RadCartesianChart.VerticalAxis>
                                        <telerik:RadCartesianChart.SeriesProvider>
                                            <telerik:ChartSeriesProvider Source="{Binding VisiblePortfolios}">
                                                <telerik:ChartSeriesProvider.SeriesDescriptors>
                                                    <telerik:CategoricalSeriesDescriptor ItemsSourcePath="EquityCurve" ValuePath="Value" CategoryPath="Date">
                                                        <telerik:CategoricalSeriesDescriptor.Style>
                                                            <Style TargetType="telerik:LineSeries">
                                                                <Setter Property="StrokeThickness" Value="2"/>
                                                                <Setter Property="LegendSettings" Value="{Binding Name, Converter={StaticResource SeriesSourceNameToSeriesLegendSettigsConverter}}"/>
                                                            </Style>
                                                        </telerik:CategoricalSeriesDescriptor.Style>
                                                    </telerik:CategoricalSeriesDescriptor>
                                                </telerik:ChartSeriesProvider.SeriesDescriptors>
                                            </telerik:ChartSeriesProvider>
                                        </telerik:RadCartesianChart.SeriesProvider>
                                    </telerik:RadCartesianChart>
                                </DockPanel>
                            </Grid>
                        </telerik:RadFluidContentControl.LargeContent>
                    </telerik:RadFluidContentControl>
                </telerik:RadTileViewItem>

Your assistance is appreciated.
Peshito
Telerik team
 answered on 26 Aug 2013
5 answers
304 views
Hi,

I have bound to a TreeListView a collection of instances that raise the PropertyChanged from a thread that is not the main UI thread (the event is raised from a FileSystemWatcher event). When PropertyChanged is risen I meet the following exception:

InvalidOperationException was unhandled: The calling thread cannot access this object because a different thread owns it.

   en System.Windows.Threading.Dispatcher.VerifyAccess()
   en System.Windows.DependencyObject.GetValue(DependencyProperty dp)
   en Telerik.Windows.Controls.RadRowItem.get_Item() en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\RadRowItem.cs:línea 30
   en Telerik.Windows.Controls.GridView.GridViewRow.BeginProcessDataItemPropertyChanged(Object dataItem, String propertyName) en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewRow.cs:línea 2201
   en Telerik.Windows.Controls.GridView.GridViewRow.Telerik.Windows.Data.IWeakEventListener<System.ComponentModel.PropertyChangedEventArgs>.ReceiveWeakEvent(Object sender, PropertyChangedEventArgs args) en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewRow.cs:línea 2196
   en Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) en c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\WeakEvents\WeakEvent.cs:línea 33
   en System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   en RadControlsWpfApp1.NodoFile.OnPropertyChanged(String propiedad) en g:\Users\Ruben\Mis documentos\Visual Studio 2012\Projects\RadControlsWpfApp1\RadControlsWpfApp1\NodoFile.cs:línea 66
   en RadControlsWpfApp1.NodoFile.set_Nombre(String value) en g:\Users\Ruben\Mis documentos\Visual Studio 2012\Projects\RadControlsWpfApp1\RadControlsWpfApp1\NodoFile.cs:línea 42
   en RadControlsWpfApp1.NodoFile._watch_Renamed(Object sender, RenamedEventArgs e) en g:\Users\Ruben\Mis documentos\Visual Studio 2012\Projects\RadControlsWpfApp1\RadControlsWpfApp1\NodoFile.cs:línea 48
   en System.IO.FileSystemWatcher.OnRenamed(RenamedEventArgs e)
   en System.IO.FileSystemWatcher.NotifyRenameEventArgs(WatcherChangeTypes action, String name, String oldName)
   en System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   en System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

It really surprised me because I've previously bound other telerik WPF controls in an analogue situation and they worked flawlessly. Having a peek on GridViewRow.BeginProcessDataItemProperty I've noticed that it makes a call through the Dispatcher (which should avoid the exception) but the call to retrieve the dataItem for the row is outside the Dispatcher.BeginInvoke and that's (I pressume) the cause of the exception.

I don't know if this is intended behaviour or just a little bug but any feedback would be greatly appreciated.

Thanks in advance.


Rossen Hristov
Telerik team
 answered on 26 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?