Telerik Forums
UI for WPF Forum
1 answer
129 views

I have a simple RadCartesianChart set up with binding. What I'm seeing is what appears to be yaxis labels, but these labels aren't related to the data itself. I have no idea where these extraneous numbers are coming from.

This is the xaml:

                    <telerik:RadCartesianChart x:Name="WeibullChart3" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <telerik:RadCartesianChart.HorizontalAxis>
                            <telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="yyyy/MM/dd" LabelInterval="2"/>
                        </telerik:RadCartesianChart.HorizontalAxis>
                        <telerik:RadCartesianChart.VerticalAxis>
                            <telerik:LinearAxis ToolTip="Duane Curve" LabelFitMode="Rotate" VerticalContentAlignment="Top" HorizontalContentAlignment="Left" />
                        </telerik:RadCartesianChart.VerticalAxis>
                        <!--<telerik:RadCartesianChart.Grid>
                            <telerik:CartesianChartGrid StripLinesVisibility="None" MajorLinesVisibility="XY" BorderThickness="1,0,1,1">
                                <telerik:CartesianChartGrid.YStripeBrushes>
                                    <SolidColorBrush Color="Black" />
                                    <SolidColorBrush Color="Black" />
                                </telerik:CartesianChartGrid.YStripeBrushes>
                                <telerik:CartesianChartGrid.XStripeBrushes>
                                    <SolidColorBrush Color="Black" />
                                    <SolidColorBrush Color="Black" />
                                </telerik:CartesianChartGrid.XStripeBrushes>
                            </telerik:CartesianChartGrid>
                        </telerik:RadCartesianChart.Grid>-->
                        <telerik:RadCartesianChart.Grid>
                            <telerik:CartesianChartGrid MajorLinesVisibility="XY"/>
                        </telerik:RadCartesianChart.Grid>
                        <telerik:LineSeries x:Name="Duane1" CategoryBinding="XVal" ValueBinding="YVal" ItemsSource="{Binding Document.WeibullDuanePlot}">
                        <telerik:LineSeries.PointTemplate>
                                <DataTemplate>
                                    <Ellipse Width="2" Height="2" Fill="Black" Opacity="0" />
                                </DataTemplate>
                        </telerik:LineSeries.PointTemplate>
                        </telerik:LineSeries>
                        <telerik:LineSeries x:Name="Duane2" CategoryBinding="XVal" ValueBinding="YVal" ItemsSource="{Binding Document.WeibullAggregatePlot}">
                           <telerik:LineSeries.PointTemplate>
                                <DataTemplate>
                                    <Ellipse Width="2" Height="2" Fill="Black" Opacity="0" />
                                </DataTemplate>
                           </telerik:LineSeries.PointTemplate>
                        </telerik:LineSeries>
                        <telerik:RadCartesianChart.Behaviors>
                            <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both"/>
                            <chartView:ChartTooltipBehavior />
                        </telerik:RadCartesianChart.Behaviors>
                    </telerik:RadCartesianChart>
                    <telerik:RadLegend Items="{Binding LegendItems, ElementName=WeibullChart3}" Height="30">
                        <telerik:RadLegend.ItemsPanel>
                            <ItemsPanelTemplate>
                                <telerik:RadWrapPanel Orientation="Horizontal" ItemWidth="120" HorizontalAlignment="Center"/>
                            </ItemsPanelTemplate>
                        </telerik:RadLegend.ItemsPanel>
                    </telerik:RadLegend>
                </StackPanel>
            </telerik:RadTabItem>

 

This is the C# code:

            (WeibullChart3.HorizontalAxis as DateTimeContinuousAxis).Maximum = maxX;
            (WeibullChart3.HorizontalAxis as DateTimeContinuousAxis).Minimum = minX;
            (WeibullChart3.HorizontalAxis as DateTimeContinuousAxis).Title = "Date";

            (WeibullChart3.VerticalAxis as LinearAxis).Maximum = maxY;
            (WeibullChart3.VerticalAxis as LinearAxis).Minimum = minY;
            //(WeibullChart3.VerticalAxis as LinearAxis).Title = type.ToString();

            Plot_Title3.Text = type.ToString() + " Duane curve";

Martin Ivanov
Telerik team
 answered on 16 Feb 2017
3 answers
264 views

I have simple xml bound to RadListBox using XmlDataProvider. Xml is simple and it looks like this:

<Views><br>  <View Caption="PARTIES" Path="/Views/PartyView.xaml" /><br>  <View Caption="CANDIDATES" Path="/Views/CandidateView.xaml" /><br>  <View Caption="CANDIDATE POSITIONS" Path="/Views/CandidatePositionView.xaml" /><br>  <View Caption="ELECTION" Path="/Views/ElectionView.xaml" /><br></Views>

Provider is set like this:

<XmlDataProvider x:Key="xdpViews" Source="/Menu/Views.xml" XPath="Views/View"/>

And RadListBox looks like this:

<telerik:RadListBox BorderThickness="0,0,2,0" x:Name="lbViews"<br>                            SelectionChanged="lbViews_SelectionChanged"<br>                            SelectedValuePath="@Path"    <br>                            DisplayMemberPath="@Caption"><br>            <telerik:RadListBox.ItemsSource><br>                <Binding Source="{StaticResource xdpViews}"/><br>            </telerik:RadListBox.ItemsSource><br>        </telerik:RadListBox>

 

While DisplayMemberPath works as intended and list box display captions, when I select item selected value is always null. Am I missing something or this is the bug in RadListBox control?

Stefan
Telerik team
 answered on 15 Feb 2017
5 answers
324 views

hi

I want a geoserver with file *.shp and files *.tiff.

Should i change sometning in *.tiff or *.shp,to display in radmap?

Is it posibble display both layer vector and raster together in radmap?

How can i configure my radmap for display this layer?

How to Connect radmap to wms server?

 

 

 

Petar Mladenov
Telerik team
 answered on 15 Feb 2017
1 answer
137 views

helllo i set up geoserver i created a few layers in epsg:4326

i can display in web browser.

What i have to do it, for display in radmap?

what option set in geoserver or radmap to display in radmap?

i use WmsTiledProvider, but i dont how set provider,what uri ?

 

please answer.thank you

Sebastian
Top achievements
Rank 1
 answered on 15 Feb 2017
1 answer
104 views
Hello,
I have an app where I am using the raddocking control and feeding it with panes using the docking factory.  When i pull one of the panes out of the docking control and put it on a second monitor the memory usage spikes 400 - 600 MB. then if i try to dock another pane into the one i pulled out it crashes with a memory exception. This occurs with only three panes open. Any thoughts about this error?
Nasko
Telerik team
 answered on 15 Feb 2017
4 answers
433 views

I've used the example explaining how to create a windows explorer-like treeview, where a collection of children can contain both directories and files but I think I need a bit of clarification.

I'm in an MVVM scenario and my model classes contain multiple collections representing the different kinds of children they can contain. For example I might have grocery store object with a collection of dairy products, another collection of meats, etc. Is it correct that my view model should merge the collections into a single observable collection of objects (or something less general if possible) and then rely on the DataType={x:Type ....} to chose the right data template?

If that is the case and I wanted to keep my collection sorted, I would have to implement a custom sorter to group the dairy and meats prior to sorting, correct? Also, this should all still work if the children themselves can be containers for multiple types?

Jason
Top achievements
Rank 1
 answered on 14 Feb 2017
4 answers
149 views

Hi,

 

i use c#/wpf RadGridView. I bound i Collection calls to my RadGridView. Here i have a RadGridViewDataColumn with a cell template checkbox.
My problem ist that i have perhaps 10 items in my collection with the same telephone-no. if i check one of these items i want to check the rest of
the items in my collection with the same no. too. Also if i uncheck one, i want to uncheck the rest to. How can i do this?

 

Thanks

Rene

Stefan Nenchev
Telerik team
 answered on 14 Feb 2017
1 answer
144 views

I have a grid view with the integer column sorted ascending by default.

At this time, for other event, I am updating this integer column and the values are getting modified in the UI correctly.

But at this case, the sorting is not getting applied correctly.

For example, By default my UI is like below

1

2

3

I have updated the row with value 2 with 5. Then my UI becomes

1

5

3

instead of 

1

3

5

 

Please let me know, how to achieve this.

Stefan Nenchev
Telerik team
 answered on 14 Feb 2017
3 answers
239 views

Hello. I bag your pardon, but I've come to desperation due to not founding a two-level Master/Detail example that uses two separate RadGridView (the first one for master records and the second one for detail records). Please give me an example of such an application where master records and detail records are added dynamically during run-time.

Thanks in advance.

Dmitry
Top achievements
Rank 1
 answered on 14 Feb 2017
3 answers
193 views

Hello,

i used RadGridView to show some items. I have defined some columns of RadGridView and bind ItemsSource with list of ViewModelABC, which is a type of IViewModel.

public interface IViewModel
{      
}
public Class ViewModelABC : IViewModel
{
    public string PropertyA { get; set; }
    public string PropertyB { get; set; }
    public string PropertyC { get; set; }
}
public Class MyData
{
    public MyData()
    {
        MyItems = new List<IViewModel>();

        // MyItems could be filled with ViewModelABC

        //MyItems.Add(new ViewModelABC());

    }
    public IList<IViewModel> MyItems {get;set;}
}

ViewModelABC has implemented the interface IViewModel and some properties.

When i start the application without Items, that meas, my MyData as DataContext is initialized, but it has no entry for ItemsSource in MyItems. Then i get ArgumentException from each column. "Property with name 'PropertyA' cannot be found on type 'IViewModel'.

I don't want to defined the list with type ViewModelABC. Is there another way to avoid the ArgumentException?

 

Thanks a lot.

Regards,

Ivan

Ivan
Top achievements
Rank 1
 answered on 14 Feb 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?