Telerik Forums
UI for WPF Forum
1 answer
155 views
In GofFocus and LostFocus of NumericUpDown, I've changed the Value of NumericUpDown.
The value changes but no changes is displayed in UI.
If I do some actions that refreshes the UI, (like minimize and restore my window, or show a MessageBox in mentioned events or...) the UI updated.
What should I do?
Kalin
Telerik team
 answered on 10 Jul 2013
3 answers
213 views
Hello Telerik team

I have managed to style my rad grid view in WPF accordingly , however when grouping by a column the expanded row has an empty space on the far left which doesn't seem to be a part of any style (see attached file for mentioned left space and the resulting ugly contrast of colors). Can you  please let me know where is this space defined (template ?) and how can I style it ?

Thanks in advance

Kind Regards


Windows 7
WPF dev in .NET 4
Telerik Version 2012.1.402
Dimitrina
Telerik team
 answered on 10 Jul 2013
4 answers
204 views
Hi telerik,

I am confused how to use RadGridView with VirtualQueryableCollectionView in order for data virtualization, but some issues encountered when I insert a new item, let me clarify.

I use the below code to set datacontext of a window, 
var query = _context.Taxes.OrderBy(o => o.TaxID); //Order_Details.OrderBy(o => o.OrderID);
           var view = new VirtualQueryableCollectionView(query) {LoadSize = 10 };
           DataContext = view;

but there are some specified points, the Tax table only have 7 records, those records can show in grid correctly,but if I use blow code for inserting a new item,
           
private void Button_Click(object sender, RoutedEventArgs e)
    {
        (DataContext as VirtualQueryableCollectionView).AddNew(new Tax() { TaxCode = "45",TaxPercentage2 = 0.34f });
    }

this new item will not display in grid expect adding this statement
         
(DataContext as   VirtualQueryableCollectionView).VirtualItemCount++;

But executing this statement will refresh the collection and grid,  I don't want to do this. so my questions are
1. How can I show all records if called insert statement?
2. How to save a new records to database? 
I did this using below statements currently:
         
(DataContext as  VirtualQueryableCollectionView).Insert(0, newItem);
           context.CreateObjectSet<TValue>().AddObject(newItem);
           context.SaveChanges();

if I can add use VirtualQueryableCollectionView's AddNew/AddNewItem/Insert add a item to VirtualQueryableCollectionView and then call someone method to save it to database directly without needing executing context.CreateObjectSet<TValue>().AddObject(newItem);
? if yes, could you provide a sample project for me? thanks very much.
Dimitrina
Telerik team
 answered on 10 Jul 2013
1 answer
67 views
Hi,

I have a scatterchart with lots of datapoints.
Values from -100 % to 3 000 000 %.

When I apply zoom to one or more points, the zoom are gets totally wrong.
For example the zoom area could be set to -200 % -400 %; even though I zoom on a point that had a positive number.

This issue applies to both axes, every time I zoom.

Any ideas?
Petar Marchev
Telerik team
 answered on 10 Jul 2013
1 answer
178 views
Hi,

I have 8 RadGridViews in my wpf application. I have used some properties of the RadGridView in the below code snippet. Each RadGridView is added inside an Expander.

When I select an item in a tree view, I change the Datacontext of the Expander. But the rendering of the control  takes too much of tne time. How do i improve the rendering performance of my RadGridViews?  Am i missing anything? Can anyone help.

<Telerik:RadGridView CanUserFreezeColumns="False"

                                                                     RowIndicatorVisibility="Collapsed"

                                                                     RowDetailsVisibilityMode="{Binding ElementName=root,Path=CanEdit.IsEnabled,IsAsync=True,Converter={StaticResource rowdetailsvisibilityconverter}}"

                                                                     RowDetailsTemplate="{StaticResource propertyEditTemplate}"

                                                                     ItemsSource="{Binding Properties}"

                                                                     AutoGenerateColumns="False"

                                                                     SelectionUnit="FullRow"

                                                                     SelectionMode="Single"

                                                                     DataContext="{Binding DataContext, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Expander}}}"

                                                                     Grid.Column="0"

                                                                     Name="propertyListView"

                                                                     VirtualizingPanel.IsVirtualizing="True"

                                                                     VirtualizingPanel.IsContainerVirtualizable="True">

                                                    <Telerik:RadGridView.ContextMenu>

                                                        <ContextMenu>

                                                            <MenuItem Header="Edit"  Command="ApplicationCommands.Replace">

                                                                <MenuItem.Icon>

                                                                    <Image Source="..\Images\Edit.png" Height="15" Width="20" Margin="0,0,2,0" />

                                                                </MenuItem.Icon>

                                                            </MenuItem>

                                                        </ContextMenu>

                                                    </Telerik:RadGridView.ContextMenu>

                                                    <Telerik:RadGridView.CommandBindings>

                                                        <CommandBinding Command="Replace" CanExecute="CommandBinding_NewTripAlarms" Executed="CommandBinding_EditProperties" />

                                                    </Telerik:RadGridView.CommandBindings>

                                                    <Telerik:RadGridView.InputBindings>

                                                        <KeyBinding Command="Replace" Key="Enter" />

                                                    </Telerik:RadGridView.InputBindings>

                                                    <Telerik:RadGridView.Columns>

                                                        <Telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="False" IsFilterable="False" Header="{DynamicResource Name}" DataMemberBinding="{Binding Path=ModelProperty.PropertyName}" />

                                                        <Telerik:GridViewDataColumn IsReadOnly="True" Header="{DynamicResource DataType}" DataMemberBinding="{Binding Path=ModelProperty.DataType.Name}" />

                                                        <Telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="False" IsSortable="False" IsFilterable="False" Header="{DynamicResource Value}" DataMemberBinding="{Binding Path=Value}" />

                                                    </Telerik:RadGridView.Columns>

                                                </Telerik:RadGridView>

regards,
Maya
Telerik team
 answered on 10 Jul 2013
1 answer
66 views
I couldn't to change TimeRulerMonthViewItem.


Code snippets   below :

 <Window.Resources>
            <Style x:Key="TimeRulerMonthViewItemStyle" TargetType="telerik:TimeRulerMonthViewItem">
            <Setter Property="telerik:StyleManager.Theme" Value="Windows8"/>
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock Text="WhyCantChanged"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
     </Style>
        <telerik:OrientedTimeRulerItemStyleSelector x:Key="Origin" 
                                                 MonthViewTickStyle="{StaticResource TimeRulerMonthViewItemStyle}"/>
    </Window.Resources>
<Grid>
        <telerik:RadScheduleView x:Name="ScheduleView"
                                  telerik:StyleManager.Theme="Windows8" TimeRulerItemStyleSelector="{StaticResource Origin}">
            <telerik:RadScheduleView.Resources>
                <Style TargetType="telerik:RadButton">
                    <Setter Property="ContentTemplate">
                        <Setter.Value>
                            <DataTemplate>
                                <TextBlock Text="I am Mark."/>
                            </DataTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </telerik:RadScheduleView.Resources>
            <telerik:RadScheduleView.ViewDefinitions >
                <telerik:MonthViewDefinition/>
            </telerik:RadScheduleView.ViewDefinitions>
        </telerik:RadScheduleView>
    </Grid>

It could not change  Content. Do I just have to setting its ControlTemplate ,Only one way? Why not setting ContentTemplate?


Kalin
Telerik team
 answered on 09 Jul 2013
2 answers
95 views
Hi there,

how do I integrate the documentation into VisualStudio 2012? I would like to be able to view the documentation offline and get quick access via the F1 key to the overview and espially to the API documenation.

E.g. I found the property Items of the RadTreeListView and would like to know more about it, e.g. the type.

Or by hitting F1 on RadTreeListView in the editor I'd like to see all properties, methods, events, ... of this control.

Actually, I even have a hard time finding it in the online help.

Thanks!

Jan
Rosen Vladimirov
Telerik team
 answered on 09 Jul 2013
7 answers
157 views
I setup a hierarchy template on my bound GridView. Inside of the hierarchy I have column footer to sum all the values. I have an event that fires in the background that updates the values inside the hierarchy template. However, the sum in the column footer of the hierarchy template does not update. I tried calling CalculateAggregates() on the GridView, but it doesn't seem to do anything for the hierarchy.
Dimitrina
Telerik team
 answered on 09 Jul 2013
1 answer
181 views
Hi,

I got a wpf application and i set it the Windows8 theme (default color blue).

In some point of the application i need to open a new RadWindow. I want that only this radwindow look like windows 8 not blue but orange, and the main window remain with the same windows8 blue theme.

something like the example image.

How can i achieve this?



best reagards.
Masha
Telerik team
 answered on 09 Jul 2013
3 answers
115 views
Hi,

We need to create a chart with multiple series. I created a RadCartesian chart which has a DateTimeCategoricalAxis as horizontal axis and a LinearAxis as vertical axis. For the series I use scatterpoint series.

<telerik:RadCartesianChart>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeCategoricalAxis Title="Inspection Date" />
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis LineThickness="1"
                                    Title="Value">
                </telerik:LinearAxis>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Series>
                <telerik:ScatterPointSeries ItemsSource="{Binding Path=InspectionHistory}"
                                            PointTemplate="{StaticResource PointTemplate1}"
                                            XValueBinding="InspectionDate"
                                            YValueBinding="Value" />
                <telerik:ScatterPointSeries ItemsSource="{Binding Path=InspectionHistory}"
                                            PointTemplate="{StaticResource PointTemplate2}"
                                            XValueBinding="InspectionDate"
                                            YValueBinding="MinimalValue">
                </telerik:ScatterPointSeries>
            </telerik:RadCartesianChart.Series>
             
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
            </telerik:RadCartesianChart.Grid>
        </telerik:RadCartesianChart>

Currently the chart does not show the scatter points. If I change the horizontal axis into a linearaxis and bind the X value to another property, the chart is drawn. Why doesnt it work with the DateTimeCategoricalAxis ?

I am using the 2013 Q1 control.

Kind regards,
Mike
Evgenia
Telerik team
 answered on 08 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?