Telerik Forums
UI for WPF Forum
2 answers
134 views

Hello. I developed WPF MVVM Prism 6 application. There is RadCartesianChart with CartesianChartGrid there. Please see XAML below:

<telerik:RadTileView Grid.Row="1" Grid.Column="0" PreservePositionWhenMaximized="True" MinimizedColumnWidth="150">
    <!--Chart of signal-->
    <telerik:RadTileViewItem Header="First signal chart">
        <telerik:RadCartesianChart x:Name="chart1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" EmptyContent="{Binding FirstSensorChartEmptyContent}">
            <!--Turn scrollbars off-->
            <telerik:RadCartesianChart.Resources>
                <Style TargetType="telerik:PanZoomBar">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </Style>
            </telerik:RadCartesianChart.Resources>
            <!-- X-axis -->
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis LabelInterval="4"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <!-- Y-axis -->
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Minimum="-128" Maximum="127" MajorStep="8" />
            </telerik:RadCartesianChart.VerticalAxis>
            <!--Series of the chart-->
            <telerik:SplineSeries CategoryBinding="Item1" ValueBinding="Item2" ItemsSource="{Binding FirstSensorData}" Style="{StaticResource SplineSeriesStyle}"/>
            <!--Layout grid-->
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY" StripLinesVisibility="XY" IsTabStop="False">
                    <telerik:CartesianChartGrid.YStripeBrushes>
                        <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                        <SolidColorBrush Color="Transparent" />
                    </telerik:CartesianChartGrid.YStripeBrushes>
                    <telerik:CartesianChartGrid.XStripeBrushes>
                        <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                        <SolidColorBrush Color="Transparent" />
                    </telerik:CartesianChartGrid.XStripeBrushes>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
            <!--Panning and zooming---->
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both" PanMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>
    </telerik:RadTileViewItem>
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
</telerik:RadTileView>

As you can see in my application I use RadCartesianChart inside RadTileView. I display the layout of only one chart, but all eight of them. Each of them is in its own RadTileViewItem. The problem is that the one of my customers doesn't see layout grid on his computer. He sees: 1) X-axis and Y-axis, 2) All the risks and labels of individual segments on the X-axis and Y-axis, 3) The series (signal curve) but he doesn't see layout grid! He has Windows 7 OS with servicepack 1 on his computer. But the other customer who also install my application sees layout grid perfectly. This second customer also has a computer with Windows 7 OS with servicepack 1 but he has no problem with visualizing of charts.

Dmitry
Top achievements
Rank 1
 answered on 07 Dec 2016
0 answers
142 views

Hello Telerik Team,

 

I am currently using your telerik Q2 WPF with VisualStudio2013 theme.

I want to add a DropShadowEffect to my main Window.

The Shell is based on RadRibbonWindow as a main Window.

I want to apply a DropShadowEffect on the RadRubbonWindow, but it is like the effect is ignored at all.

<telerik:RadRibbonWindow
 ....
 >
 <telerik:RadRibbonWindow.Effect>
     <DropShadowEffect Direction="-190" BlurRadius="15" Opacity="0.4" Color="Red"/>
 </telerik:RadRibbonWindow.Effect>

 

I have the red border on Blend and Visual studio, but when the application is running nothing is present.

How can I solve this?

Mathieu
Top achievements
Rank 1
 asked on 07 Dec 2016
5 answers
254 views

After some hours of "try & error" without success, I'd like to ask here ...

How can I enable the AppointmentSelectionChanged event for touched Appointment objects?

When these Appointment objects are selected by using the mouse, it's working fine.

But trying to do the same with touch input fails.

In general, touch input can be used in ScheduleView, for instance by doing double clicks with touch on Appointment objects.

But unfortunately, the single "click" with touch fails ...

Are there any ideas to fix it?

Thanks a lot in advance!

Hagen

Georgi
Telerik team
 answered on 07 Dec 2016
3 answers
125 views

Hi,

   We are trying to get the columnHeaderProperty using TableItemPattern on the Automationelement of cell inside RadGridView but it is giving wrong header value. It is giving the next header value. Here RawGridView have columns and rows virtualization support enabled.

Regards,

Nagasree.

 

Stefan
Telerik team
 answered on 07 Dec 2016
3 answers
222 views

How can I insert text in a group footer's cell?

 

01.public MainWindow()
02.{
03.    InitializeComponent();
04. 
05.    var style = new Style();
06.    style.Setters.Add(new Setter(GroupHeaderRow.ShowGroupHeaderColumnAggregatesProperty, false));
07.    style.Setters.Add(new Setter(GroupHeaderRow.ShowHeaderAggregatesProperty, false));
08.    var radGrid = new RadGridView { GroupRenderMode = GroupRenderMode.Flat, GroupRowStyle = style};
09.    Content = radGrid;
10. 
11.    // Table schema
12.    var data = new DataTable();
13.    var user = data.Columns.Add("User");
14.    var cat = data.Columns.Add("Category");
15.    var amt = data.Columns.Add("Amount", typeof(decimal));
16. 
17.    // Populate values
18.    var catValues = new[] {"Cat A", "Cat B", "Cat C"};
19.    for (var i = 0; i < 20; i++)
20.    { data.Rows.Add("User " + i, catValues[i % catValues.Length], i * 100d); }
21.             
22.    // Prepare RadGridView
23.    radGrid.ItemsSource = data;
24.    radGrid.AutoExpandGroups = true;
25.    radGrid.ShowColumnFooters = true;
26.    radGrid.AutoGenerateColumns = false;
27. 
28.    // Build RadGrid columns
29.    var gridColumns = new[] {user, cat, amt}
30.        .Select(dataColumn => new GridViewDataColumn
31.        {
32.            UniqueName = dataColumn.ColumnName,
33.            DataMemberBinding = new Binding(dataColumn.ColumnName),
34.        })
35.        .ToList();
36.    radGrid.Columns.AddRange(gridColumns);
37. 
38.    // Sum Amount
39.    var amtCol = gridColumns.Last();
40.    var amtFormat = "{0:C}";
41.    amtCol.DataFormatString = amtFormat;
42.    amtCol.AggregateFunctions.Add(new SumFunction()
43.    {
44.        SourceField = amt.ColumnName,
45.        SourceFieldType = amt.DataType,
46.        ResultFormatString = amtFormat
47.    });
48.    radGrid.ShowGroupFooters = true;
49. 
50.    // Group by category
51.    var catGroup = new GroupDescriptor { Member = cat.ColumnName, };
52.    radGrid.GroupDescriptors.Add(catGroup);
53. 
54.    // Show grand total label
55.    radGrid.Columns[0].Footer = "Grand Total";
56. 
57.    // todo: How to show group subtotal label?
58. 
59.}
MC
Top achievements
Rank 1
 answered on 07 Dec 2016
2 answers
361 views

Hello,

I recently installed UI for WPF R3 2016 and today I was updated our project references to use the new version when I noticed a problem.

Several of the .dlls in the WPF45 directory, which should be for assemblies built for .Net 4.5, are actually the version for .Net 4.0.

If you look at the attached image, it's just a screenshot of Windows explorer open to C:\Program Files (x86)\Telerik\UI for WPF R3 2016\Binaries\WPF45.  I am showing the file version in the list and there are 10 .dlls that show version number 2016.3.1021.40, when it should be 2016.3.1024.45.

I think an updated installer needs to be posted for this release.

Thanks,

Peter

Peter
Top achievements
Rank 1
 answered on 06 Dec 2016
3 answers
256 views

Hi,

 

I found it is hard to drag scroll bar from side to side even column virtualization is enable.

Could you give us some advice how to fix this issue?

My Grid has more than 30 columns and about 300 rows.

 

please reply it.

Yoan
Telerik team
 answered on 06 Dec 2016
1 answer
315 views

I use the gridview's row validating event to perform some validations. 

All database methods in my persistence framework are defined async. The validation method needs database access, so it's also defined as async and returns a Task<bool>. 

The row validating event handler awaits this validation method. If the validation fails, the isValid property is set to false.

Everything works fine as long as there is no asynchronous database call and the code execution runs synchronously. As soon as I have real asynchronism, the grid view doesn't wait for the completion of the validating event handler anymore. It continues its internal validation and the RowEditEnded event raises - although the RowValidating event handler hasn't finished already. 

How can I force the grid view to wait for the asynchronous validation? I know that there are some issues with events and the async/await pattern and I tried different declaration types - without success.

Thanks for you help!

Ivan Ivanov
Telerik team
 answered on 06 Dec 2016
1 answer
186 views

Ok, so I have gridview with IsReadOnly = True. I allow the user to expand the rowdetails and edit data using a raddataform. This the bound object for this form has dataannotations which are used to validate the record. Suppose I have a required field that is left blank. The form recognizes the problem and disables the save button, but I'm still allowed to navigate to another row. How to prevent this (mvvm style ... of course!)?

Thanks ... Ed

 

Stefan Nenchev
Telerik team
 answered on 06 Dec 2016
3 answers
236 views

I have been looking through the Telerik RadMenu WPF demos and found the Customization_MVVM_WPF demo.I have a couple of questions with regard to this demo that I hope someone can help me with.

Question:
The MVVM demo has a class "MenuItemContainerTemplateSelector" that does not appear to be used by the demo. I can see that the 'MenuItemStyleSelector' class is used, but am curious when to use the MenuItemContainerTemplateSelector as opposed to the MenuItemStyleSelector? Is there a demo where this MenuItemCoontainerTemplateSelector class is used which I can take a look at the implementation?

 

What I am trying to accomplish:

I need to create a RadMenu which dynamically binds to a collection of ViewModels (RadMenuItems) and uses DataTemplates or styles to tell 'how' to display each of the ViewModels. Are there examples demonstrating this which I have not yet found? The Customization_MVVM_WPF demo somewhat covers this, but attempting to move the MenuItemsSource in this demo out of the XAML and into a collection of ViewModels which the RadMenu binds to seems to not work.

Stefan
Telerik team
 answered on 06 Dec 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?