Telerik Forums
UI for WPF Forum
1 answer
182 views

Hello,

I've implemented TreeViewDragDropBehavior for TreeListView by using the sample code from Telerik UI for WPF Demo and it's work.

But when I added the TreeListView into a RadControlLayout, drag/drop events seems stop working. TreeViewDragDropBehavior.OnDragInitialize was fired but nothing happed afterward.

Any workaround about this?

Thanks.

Martin Ivanov
Telerik team
 answered on 31 Jul 2017
1 answer
287 views

Hello. In View that is inside Prism Module in MVVM multimodule Prism application I have the following XAML line:

<Style TargetType="telerik:SplineSeries" BasedOn="{StaticResource SplineSeriesStyle}">

SplineSeriesStyle resource could not be resolved. Herewith "BasedOn="{StaticResource SplineSeriesStyle}" substring is underlined by a blue wavy line. When I move the mouse cursor to this underlined substring then "SplineSeriesStyle resource could not be resolved" error message is displayed. I use Prism UserControl as the View where abovementioned XAML is placed. Below is XAML of the View with some reductions:

<UserControl x:Class="Telecom.Flowmeter.Modules.MeterReading.Views.MeterReadingView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:prism="http://prismlibrary.com/"
             Style="{StaticResource CommonViewStyle}"
             prism:ViewModelLocator.AutoWireViewModel="True"
             xmlns:views="clr-namespace:Telecom.Flowmeter.Modules.MeterReading.Views"
             xmlns:c="clr-namespace:Telecom.Flowmeter.Modules.MeterReading.Converters"
             mc:Ignorable="d">
 
    <FrameworkElement.Resources>
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
        <!--Шаблон, определяющий представление окна графика измеряемого параметра-->
        <DataTemplate x:Key="ContentTemplate">
            <Grid>
                . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                <Grid>
                    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 
                    <!--Series color visualizer-->
                    <telerik:RadLegend Grid.Row="0" Grid.Column="1" Items="{Binding LegendItems, ElementName=splineAbsoluteChart}" HorizontalAlignment="Right" VerticalAlignment="Top"
                           Visibility="{Binding IsAbsoluteSplineChartVisible}"/>
                    <!--Spline chart-->
                    <telerik:RadCartesianChart x:Name="splineAbsoluteChart" Grid.Row="0" Grid.Column="0" Visibility="{Binding IsAbsoluteSplineChartVisible}" Palette="{StaticResource customPalette}">
                        <!--Turn vertical and horizontal scrollbars off-->
                        <telerik:RadCartesianChart.Resources>
                            <Style TargetType="telerik:PanZoomBar">
                                <Setter Property="Visibility" Value="Collapsed"/>
                            </Style>
                        </telerik:RadCartesianChart.Resources>
                        <!--X axis-->
                        <telerik:RadCartesianChart.HorizontalAxis>
                            <telerik:DateTimeContinuousAxis MajorStepUnit="Second" LabelInterval="5" LabelFormat="hh:mm:ss" FontFamily="Segoe UI" PlotMode="OnTicks" TickOrigin="{Binding AlignmentDate}"/>
                        </telerik:RadCartesianChart.HorizontalAxis>
                        <!--Y axis---->
                        <telerik:RadCartesianChart.VerticalAxis>
                            <telerik:LinearAxis FontFamily="Segoe UI" Title="{Binding Title_Y}" />
                        </telerik:RadCartesianChart.VerticalAxis>
                        <!--Layout grid-->
                        <telerik:RadCartesianChart.Grid>
                            <telerik:CartesianChartGrid MajorLinesVisibility="XY" MajorXLineDashArray="3,4" MajorYLineDashArray="3,4"/>
                        </telerik:RadCartesianChart.Grid>
                        <!--Series provider-->
                        <telerik:RadCartesianChart.SeriesProvider>
                            <telerik:ChartSeriesProvider Source="{Binding SeriesData}">
                                <telerik:ChartSeriesProvider.SeriesDescriptors>
                                    <telerik:CategoricalSeriesDescriptor CategoryPath="Category" ValuePath="Value" ItemsSourcePath="ChartPoints">
                                        <telerik:CategoricalSeriesDescriptor.TypeConverter>
                                            <c:SeriesTypeConverter/>
                                        </telerik:CategoricalSeriesDescriptor.TypeConverter>
                                        <!--Visualize series on the computer screen-->
                                        <telerik:CategoricalSeriesDescriptor.Style>
                                            <!-- !!! THE NEXT LINE IS THE PROBLEM ONE !!! -->
                                            <Style TargetType="telerik:SplineSeries" BasedOn="{StaticResource SplineSeriesStyle}">
                                                <!--Marks and naming of the series-->
                                                <Setter Property="LegendSettings" Value="{Binding  SeriesName, Converter={StaticResource StringToLegendSettingsConverter}}"/>
                                                <!--Each series thickness-->
                                                <Setter Property="StrokeThickness" Value="2"/>
                                            </Style>
                                        </telerik:CategoricalSeriesDescriptor.Style>
                                    </telerik:CategoricalSeriesDescriptor>
                                </telerik:ChartSeriesProvider.SeriesDescriptors>
                            </telerik:ChartSeriesProvider>
                        </telerik:RadCartesianChart.SeriesProvider>
                        <!--Behaviors-->
                        <telerik:RadCartesianChart.Behaviors>
                            <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both"  PanMode="Both"/>
                        </telerik:RadCartesianChart.Behaviors>
                    </telerik:RadCartesianChart>
                    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
                </Grid>
            </Grid>
        </DataTemplate>
    </FrameworkElement.Resources>
 
    <Grid>
        <telerik:RadTileView PreservePositionWhenMaximized="True" MinimizedColumnWidth="150" ItemTemplate="{StaticResource ItemTemplate}"
                             ContentTemplate="{StaticResource ContentTemplate}" ItemsSource="{Binding MeasuredParameterCharts}"/>
    </Grid>
</UserControl>

The Shell in my application is standart WPF window (!!! not telerik:RadWindow !!!). This is dictated by the requirements of the technical assignment for the application. There are no Telerik references in Shell project in the solution. But the Prism Module (where abovementioned XAML is located) has the following Telerik references: Telerik.Windows.Controls, Telerik.Windows.Controls.Chart, Telerik.Windows.Controls.Navigation and Telerik.Windows.Data. The version of all these DLLs is 2017.1.117.40. In the solution, Shell project is in different folder then Prism Module projects are. Why SplineSeriesStyle resource could not be resolved? Please help.

Martin Ivanov
Telerik team
 answered on 31 Jul 2017
3 answers
151 views

When adding grouping, I am experience some strange jumping behavior when the mouse is moved around the scrollview area. Also random amounts of white space are added to the bottom part of the scrollview area.

Changing theme to another will resolve the issue, although I have not tested all themes for complete per theme repro. If you can provide me means to send you a repro project, I have one ready.

 

Regards,
Maurice

 

 

Maurice
Top achievements
Rank 1
 answered on 28 Jul 2017
1 answer
147 views

Hi,

We are exporting a to a number of formats depending on what the user selects (using PdfFormatProvider, HtmlFormatProvider etc), and we use a CellTemplateSelector to add a simple image to some columns to indicate an increase or decrease in the value.

When the grid is exported the result show this or anything else in the DataTemplate.  Even if we add a simple  into the DataTemplate it is still missing from the exported report in any format. The rest of the data is displayed in the exported report normally.

I can understand maybe a binary image not being displayed,  but surely the should be.

Are we missing something simple?

Many thanks,

 

 

Polya
Telerik team
 answered on 28 Jul 2017
1 answer
153 views

Hi everyone,

i wanna left align a BarSeries with a CategoricalAxis in a RadCartesianChart (barseries_target). Per default the BarSeries is using the whole space (barseries_origin).

Is there any possibility to get the left align worked?

 

Thanks in advance.

Thomas

 

Martin Ivanov
Telerik team
 answered on 28 Jul 2017
1 answer
165 views

In RadGrid, you have provided the support for both the screen reader and coded Ui at the same time. Now i have the logic of how you differentiate that the OnCreateAutomationPeer is created for System screen reader(Windows 10 ) or any inbuild screen reader (Narrator or magnifier) else any of the third party tool(like Inspect tool)

Regards,

Bala

Ivan Ivanov
Telerik team
 answered on 28 Jul 2017
8 answers
433 views
Hi,

I have added the following to my diagram in order to display the settings pane on my shapes:
<primitives:ItemInformationAdorner.AdditionalContent>
    <telerik:SettingsPane Diagram="{Binding ElementName=radDiagram}" />
</primitives:ItemInformationAdorner.AdditionalContent>

Now I am trying to figure out a way to enable / disable the settings pane on a per shape basis. For example, I want to be able to edit settings of square shapes but not circles. Is this something I can do with the item information adorner?

Rgds,
R
Martin Ivanov
Telerik team
 answered on 28 Jul 2017
4 answers
131 views

Hi there!

 

I just found an issue with RadMaskedTextInput that is present in the newest WPF Demos, too. In my scenario, I tried it with no mask. Simply type some word into the control, select all with CTRL+A, then hit a letter on the keyboard followed by a space. If you fast enough (but you should not be so fast, just something like experienced-typewriter-fast) your letter will be overwritten by the whitespace that followed it.

 

If you can't reproduce the issue, I can post a video about it.

 

Best Regards

Petar Mladenov
Telerik team
 answered on 28 Jul 2017
8 answers
1.3K+ views

Hi Telerik,

We have a requirement to change the background color of a row based on changing values from a group of data, much like the alternating row color. However, instead of alternating row color based on every other row or every N row or based on some bound value, we need to alternate row background colors when values of 2 or more column values have changed.

We were hoping to find a solution that is built-in to the WPF RadGrid control and/or has fast performance. We are using MVVM.

Please find the attached image for an example of the intended behavior.

Please advise.

 

Kind regards

   

Dilyan Traykov
Telerik team
 answered on 27 Jul 2017
2 answers
331 views

Dear Admin

Is there any demonstration that how to implement animation during filling data for GridView. For example after I set ItemsSource value, filling data action will be shown with animation, just like one by one row filling within 2 or 3 seconds, or something like flowing whole row from left side to the correct position in RadGridView.

I do appreciate for your help.

Ning
Top achievements
Rank 1
 answered on 27 Jul 2017
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?