Telerik Forums
UI for WPF Forum
4 answers
533 views

Hi,

I am trying to build a stacked bar chart in wof 4.0 using telerik version 2012.1.326.40.

I am able to do so by using telerik:RadCartesianChart.SeriesProvider in 4.5 but as the SeriesProvider is absent in the earlier version it is hard for me to construct the same.

I am trying to achieve a chart attached.

Please advise.

dec698
Top achievements
Rank 1
 answered on 10 Feb 2017
0 answers
128 views

Hi there,

We are dealing with Accesibility and looks like we can't modify the RadWatermakerTextBox.LocalizedControlType of the RadAutoCompleteBox. I am able to create a specific RadAutoCompleteBoxPeer but I didn't find the way to create a specific one for the RadWatermarkTextBox that contains the RadAutoCompleteBox. Any thoughts?

thanks!

jose

Jose
Top achievements
Rank 1
 asked on 09 Feb 2017
1 answer
203 views

I am using RadGridView with editing capability. I am editing one item and then perform scroll down operation. At this point of time, the edit cell text is getting overlapped with other cell text.

Please suggest me, how to avoid this.

Stefan
Telerik team
 answered on 09 Feb 2017
2 answers
92 views

Hi Team,

I have using R1 2017 telerik products and while using RadImageEditor, I need the feature of panning that you have used in your demos. And also found the documentation related to the same, please refer the below link.

http://docs.telerik.com/devtools/wpf/controls/radimageeditor/tools/panning

But IsPanningEnabled property is not working for me, could you please let me know to achieve this?

 

Regards,

Antony Raj

Antony
Top achievements
Rank 1
 answered on 09 Feb 2017
1 answer
274 views

Hi, I'm using a RadCartesianChart with a LinearAxis as y-axis. The range for the y-axis is automatic (I haven't set Minimum or Maximum on the axis).

Vertical zoom is enabled, so the user can zoom to the range he likes. The problem is that the range of the viewed y-values changes when range of the line series changes. I understand this is probably by design, since you want to keep the relative values VerticalZoomRangeStart and VerticalZoomRangeEnd.

To make the problem clear, I'll use an example:

Let's say the range of the data is [0,10]. The user then zooms the y-axis to display the values [8,9]. Then the range of the data changes to [0,20] and the range of the y-aixs is recalculated. The range the user sees now automatically changes from [8,9] og [16,18], since the zoom is still [0.8,0.9]. Is there a way to avoid this without manually setting the range of the y-axis?

From the documentation it says : "Maximum: Gets or sets the user-defined maximum of the axis. By default the axis calculates the maximum, depending on the maximum of the plotted data points."

Is there a way to get the calculated maximum? I would then be able to calculate new values for vertical zoom to keep the range of the y-values the same. I noticed that the calculated maximum is not necessarily the same as maximum of the dataset, since you make sure the calculated maximum is a nice round number.

 

Martin Ivanov
Telerik team
 answered on 09 Feb 2017
3 answers
157 views
I have a time zone map I've built that generates data 'bubbles' with a city name and local time from a datasource. Works great BUT the bubbles frequently overlap. I'd like to hittest each one as it is rendered and float it away from any underlying bubble.

What event is fired/should I be looking for as the informationLayer items are created? 
Martin Ivanov
Telerik team
 answered on 09 Feb 2017
7 answers
459 views

Hello Guys,

  I am having issues to do this. I have setup the following RadTreeView control:

 

<telerik:RadTreeView   AllowDrop="True"  
                                   telerik:AnimationManager.IsAnimationEnabled="False"
                                   Name="trvModule" ItemsIndent="15"
                                   IsLineEnabled="True"
                                   IsRootLinesEnabled="False" FontSize="11" 
                                   IsDropPreviewLineEnabled="True"
                                   IsDragDropEnabled="True" 
                                   IsLoadOnDemandEnabled="False" 
                                   DropExpandDelay="00:00:00" 
                                   BringIntoViewMode="HeaderAndItems"
                                   />

 

In the Code Behind I have the following:

 

        DragDropManager.AddDragInitializeHandler(trvModule, New DragInitializeEventHandler(AddressOf OnDragInitialize), True)
        DragDropManager.AddDragOverHandler(trvModule, AddressOf OnDragOver, True)
        DragDropManager.AddDragDropCompletedHandler(trvModule, New DragDropCompletedEventHandler(AddressOf OnDragDropCompleted), True)
        DragDropManager.AddDropHandler(trvModule, New DragEventHandler(AddressOf OnDropElement), True)

 

 I have seen this working in Windows Apps, but I am not being able to make it work in my WPF application.

I saw this might be to a security problem? 

Can you please provide any help to solve the problem? 

I cannot attach the project for security restrictions, but I can paste any piece of code you need.

 

 Any help will be much appreciated.

Thanks!

Martin Ivanov
Telerik team
 answered on 08 Feb 2017
3 answers
1.1K+ views
Hey guys,
I've got a problem which is really frustrating. I am trying to display content based on its type in a RadGridView. Therefore I am using a DataTemplate referenced to a DataType. Sadly it seems like the DataType isnt beeing recognized at all. If I change the DataMemberBinding from "{Binding}" to a member of the object which is of type string - it is working but thats not what I need, i need it to be working with my own Data types(classes). 

Code:

XAML
<Window x:Class="RadControlsWpfApp1.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:local="clr-namespace:RadControlsWpfApp1"
                xmlns:System="clr-namespace:System;assembly=mscorlib"
                Title="MainWindow" Height="350" Width="525">
        <Grid>
        <telerik:RadGridView x:Name="Grid" Grid.Column="1" Margin="11,10,9,50" Grid.Row="1" ItemsSource="{Binding}" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn IsReadOnly="True" Header="test" DataMemberBinding="{Binding}" >
                    <telerik:GridViewDataColumn.Resources>
                        <DataTemplate DataType="{x:Type local:Foo}">
                            <TextBlock Text="test" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.Resources>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
 
    </Grid>
</Window>

CS:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace RadControlsWpfApp1
{
    public class Foo
    {       
        public string Name { get; set; }
        public string Value { get; set; }
    }
    public class Foo2
    {
        public string Name { get; set; }
        public string Value { get; set; }
    }
 
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    ///
    public partial class MainWindow : Window
    {
         
        public MainWindow()
        {
            var list = new List<object> { new Foo2() { Name = "Brian2", Value = "val2" }, new Foo() { Name = "Brian", Value = "val1" } };
 
 
            InitializeComponent();
            Grid.DataContext = list;
        }
    }
}
Yoan
Telerik team
 answered on 08 Feb 2017
3 answers
159 views

Hello Telerik team!

I would like to implement a control I attached.  So I need to know: is it possible to do it using RadGridView or RadPivotGrid ?Thank you in advance

Ivan Ivanov
Telerik team
 answered on 08 Feb 2017
1 answer
1.2K+ views

i have created a derived class from telerik:RadGridView. i need to styling the cells based on the data. so that i have created a styling class and use it as cellstyleselector for columns. i need to sett column cell style for each column and i used the below code but it does not work. do you have any idea of why it does not works?

public class WPFGridConv:RadGridView
{
public WPFGridConv()
    {
        this.ShowGroupPanel = false;
        this.Loaded += WPFGridConv_Loaded;
        this.AutoGeneratingColumn += WPFGridConv_AutoGeneratingColumn;
        this.ValidationType = GridViewValidationType.None;
        this.ValidatesOnDataErrors= GridViewValidationMode.InViewMode;
 
    }
 
    private void WPFGridConv_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
    {
        CreateHeader();
    }
 
 
    public void WPFGridConv_Loaded(object sender, System.Windows.RoutedEventArgs e)
    {
        CreateHeader();
 
    }
 
    private void CreateHeader()
    {
 
        foreach (Telerik.Windows.Controls.GridViewColumn column in this.Columns)
        {
 
                column.CellStyleSelector= new GridStyleSelector();
 
        }
    }
}
 
public class GridStyleSelector : StyleSelector
{
 
    public override Style SelectStyle(object item, DependencyObject container)
    {
        if (container is GridViewCell)
        {
            GridViewCell cell = container as GridViewCell;
            string columnId = cell.Column.Tag.ToString();
            WPFGridConv grid = cell.ParentOfType<WPFGridConv>();
            List<InputClass.GridColumnInfoClass> columnsInfoList = grid.workingGridClass.ListOfColumnsInfo;
            InputClass.GridColumnInfoClass columnInfo = columnsInfoList.Find(x => x.id == columnId);
            Type columnType = columnInfo.typeOfColumn;
            if ((cell.Value==null||string.IsNullOrEmpty(cell.Value.ToString())) && columnInfo.IsValueNecessary)
            {
                return NeedeValueStyle;
            }
            else
            {
                if (columnType == null || columnType == typeof(double))
                {
                    double dummyDbl;
                    if (!double.TryParse(cell.Value.ToString(), out dummyDbl))
                        return BadInputStyle;
                    else
                        return CorrectValueStyle;
                }
                else if (columnType == typeof(int))
                {
                    int dummyInt;
                    if (!int.TryParse(cell.Value.ToString(), out dummyInt))
                        return BadInputStyle;
                    else
                        return CorrectValueStyle;
                }
                return CorrectValueStyle;
            }
        }
        return null;
    }
 
    public Style OutOfRangeStyle
    {
        get
        {
            Style returnStyle=new Style(typeof(GridViewCell));
            returnStyle.Setters.Add(new Setter(GridViewCell.BorderBrushProperty, new SolidColorBrush(Colors.Purple)));
            return returnStyle;
        }
        set
        {
 
        }
    }
 
    public Style BadInputStyle {
        get
        {
            Style returnStyle = new Style(typeof(GridViewCell));
            returnStyle.Setters.Add(new Setter(GridViewCell.BorderBrushProperty, new SolidColorBrush(Colors.Red)));
            return returnStyle;
        }
        set
        {
 
        }
    }
 
    public Style NeedeValueStyle
    {
        get
        {
            Style returnStyle = new Style(typeof(GridViewCell));
            returnStyle.Setters.Add(new Setter(GridViewCell.BorderBrushProperty, new SolidColorBrush(Colors.IndianRed)));
            return returnStyle;
        }
        set
        {
 
        }
    }
    public Style CorrectValueStyle
    {
        get
        {
            Style returnStyle = new Style(typeof(GridViewCell));
            returnStyle.Setters.Add(new Setter(GridViewCell.BorderBrushProperty, new SolidColorBrush(Colors.Black)));
            return returnStyle;
        }
        set
        {
 
        }
    }
}

i have created a derived class from telerik:RadGridView. i need to styling the cells based on the data. so that i have created a styling class and use it as cellstyleselector for columns. i need to sett column cell style for each column and i used the below code but it does not work. do you have any idea of why it does not works?

Dilyan Traykov
Telerik team
 answered on 08 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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?