Telerik Forums
UI for WPF Forum
2 answers
324 views
Hello,
        I can add secondary y-axis to my chart.Currently the chart has secondary Y-axis equals to the number of series aligned to that axis.
But our requirement is to have only one secondary Y axis should be configured to the all the series which have  aligned to that secondary Y axis.In short, I would like to have only one secondary Y-axis to right for multiple series and it should configure scale automatically on that axis according to series values. Just like we have primary vertical  Y  on Left axis  which scales automatically for any multiple number of series.
Is it possible to assign the same primary Vertical Y  on Right axis for any number of series?
I have gone through the documentation of shared vertical axis here http://www.telerik.com/help/wpf/radchartview-axes-multipleaxes.html
but we have dynamic multiple series and we are adding series to the chart dynamically.So how do i set the secondary vertical axis?.Currently I have set it to for every series and that's why multiple vertical axes are getting added.   
 
Could you please help me to resolve this issue if it is possible to implement.
Thank You in Advance  
Dts
Top achievements
Rank 1
 answered on 17 Oct 2013
2 answers
221 views

Hello.

I have a problem with columns in grid. I would like to have columns with the same width and this width should not depend on the content of the columns.

Here is my code:

    <Grid Margin="5" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="0" 
                                 ItemsSource="{Binding TreeView0}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="1" 
                                 ItemsSource="{Binding TreeView1}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="2" 
                                 ItemsSource="{Binding TreeView2}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="3" 
                                 ItemsSource="{Binding TreeView3}" />
    </Grid>

When I am expanding tree in RadTreeView the column changes it's width and other columns changes respectively. But I would like to have four columns with width = 1/4 of grid's width. RadTreeView has its own ScrollBar for horizontal scrolling.

Is there any property on RadTreeView that stops it from growing horizontally? I tried to enable horizontal scrollbar but it didn't helped.
Ilya
Top achievements
Rank 1
 answered on 17 Oct 2013
1 answer
444 views
Hello,

I want RadAutoCompleteBox to display the vertical scroll bar and I'm using ScrollViewer.VerticalScrollBarVisibility="Auto", but it's not displaying. What am I missing? Please advise.

Thanks,
Brew
Brew Hutch
Top achievements
Rank 1
 answered on 16 Oct 2013
2 answers
119 views
Hello! I'm wondering If I can change the size of the point in caret position .

This point appears only when I touch the screen but it's difficult to select that point to change the selection with the fingers.

Thanks for your help.

Here is the image of that point.

Ricardo
Top achievements
Rank 1
 answered on 16 Oct 2013
11 answers
204 views
Hello,,,
I'm new to the Telerik components and we are having some difficulties because do not know them well, but I know I will receive help.
The thing is, I've had reading the help, but I could not see a way to add a filter feature automatic, I know you have the fields above each column, but the filter is only done after hit enter or loses focu but we need a functionality that when typing the RadGridView already go with updating the information entered.

Please if possible add a sample Demo here to see and we can apply in our project.

graciously
André
Andre
Top achievements
Rank 1
 answered on 16 Oct 2013
1 answer
153 views
Hy,

In radbook template i would to add a simply close button with its click event to close the control itself
How i can this? There is any code sample?

Many thanks :)
Tina Stancheva
Telerik team
 answered on 16 Oct 2013
4 answers
410 views
Hi,

I have a  chart which has a linear axis and with a range of -150 to 150. As soon as I zoom the label for 0 is displayed in scientific notation (see attached image). Is there a way I can stop this? I would prefer to not have to set a format string on the axis as I would like the labels to show more decimal places as the user zooms in to view the data in more detail.

Thanks,

Steven
Evgenia
Telerik team
 answered on 16 Oct 2013
1 answer
153 views
Hi,

I have a RadScheduleView and a Listbox in a UserControl that I am dragging appointments between which works great.

My issue is that my application uses a RadDocking control with a RadPane docked on the left with the UserControl inside a RadDocumentPane on the right. When I am dragging an appointment and I move outside of the UserControl and onto the RadPane it is showing that it will accept the Drop of the appointment which it shouldn't. I have tried setting AllowDrop = false on the RadPane but this does not change anything.

Any ideas?

Thanks
Anthony

Vladi
Telerik team
 answered on 16 Oct 2013
1 answer
107 views
Hi, 

I need to implement a custom tool that is very similar to the crop tool in the user experience. I mean the user has to activate the tool, draw a square across the image, resize and move if necessary and then trigger a custom functionality instead of cropping. 

Is it possibile to perform it by overriding the crop tool or it needs to create a new ITool from the scratch? How can I implement that two steps process (Selection/adjustment then action) whithin a custom tool? How can I manage to draw the square like in the crop tool?

Thank you very much for your responses

My warmest regards

Luca 
Petya
Telerik team
 answered on 16 Oct 2013
3 answers
224 views
Hi,
I seem to be unable to get the databinding to work so that, for example, the background colour of a grid cell is set to the colour property of a business object. Please can someone take a look and show me the error of my ways?

ORM version 2013.2.702.1
RadControls for WPF version 2013.2.724.40

In summary, I am getting a list back from the database using a stored procedure mapped to a domain method. I have also added a partial class and a transient property to the result item in my ORM library. This transient property is a System.Windows.Media.Color and the values are stored in an XML file that are merged with the database result by my view model prior to the view being presented.

In my attempt to understand why the colour is not set, I am showing the ToString result in the cell so I know the colour value is present, however, the colour of the cell remains white.

Here's my ORM partial class:
using System;
using System.Linq;
using System.Windows.Media;
 
namespace xyz
{
    public partial class DBLISTitem
    {
        [Telerik.OpenAccess.Transient]
        private Color _patternColour;
        public Color PatternColour
        {
            get
            {
                return _patternColour;
            }
            set
            {
                _patternColour = value;
            }
        }
    }
}

Here's the XAML cut down for brevity:
<UserControl x:Class="..."
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="5"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Grid.Resources>
            <telerik:ColorToBrushConverter x:Key="ColorToBrushConverter" />
        </Grid.Resources>
 
        <telerik:RadGridView Name="ocyMapyGrid" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3"
                             HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="Auto" IsFilteringAllowed="False" CanUserSortColumns="True" CanUserSortGroups="True" 
                             ItemsSource="{Binding DBLIST, Mode=TwoWay}" AutoGenerateColumns="False" ShowGroupPanel="False"
                             ShowInsertRow="False"
                             RowHeight="23" RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                             CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="True"
                             >
                <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ColName}" Header="Col1" Width="*" />
                <telerik:GridViewDataColumn Header="Colour" Width="150">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=PatternColour}" Background="{Binding Path=PatternColour, Converter={StaticResource ColorToBrushConverter}}" Margin="0" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</UserControl>

I've attached a sample of the output view.

I've since worked on a very simple test project to try to reproduce the problem but I cannot. The test app works. I changed the cell template in the problem app to match the working test app as follows:
<telerik:GridViewDataColumn.CellTemplate>
    <DataTemplate>
        <TextBlock Text="{Binding Path=HatchPatternColour}" Margin="0">
            <TextBlock.Background>
                <SolidColorBrush Color="{Binding Path=HatchPatternColour}" />
            </TextBlock.Background>
        </TextBlock>
    </DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
This made no difference. The backgound color remains white.

Further to this, I've increased the trace level to high and get this output for the SolidColorBrush binding:
System.Windows.Data Warning: 54 : Created BindingExpression (hash=20902088) for Binding (hash=2322454)
System.Windows.Data Warning: 56 :   Path: 'HatchPatternColour'
System.Windows.Data Warning: 58 : BindingExpression (hash=20902088): Default mode resolved to OneWay
System.Windows.Data Warning: 59 : BindingExpression (hash=20902088): Default update trigger resolved to PropertyChanged
System.Windows.Data Warning: 60 : BindingExpression (hash=20902088): Attach to System.Windows.Media.SolidColorBrush.Color (hash=53901065)
System.Windows.Data Warning: 62 : BindingExpression (hash=20902088): Use Framework mentor <null>
System.Windows.Data Warning: 65 : BindingExpression (hash=20902088): Resolving source 
System.Windows.Data Warning: 67 : BindingExpression (hash=20902088): Framework mentor not found
System.Windows.Data Warning: 63 : BindingExpression (hash=20902088): Resolve source deferred
System.Windows.Data Warning: 93 : BindingExpression (hash=20902088): Got InheritanceContextChanged event from SolidColorBrush (hash=53901065)
System.Windows.Data Warning: 65 : BindingExpression (hash=20902088): Resolving source 
System.Windows.Data Warning: 68 : BindingExpression (hash=20902088): Found data context element: TextBlock (hash=15347538) (OK)
System.Windows.Data Warning: 69 : BindingExpression (hash=20902088): DataContext is null
System.Windows.Data Warning: 65 : BindingExpression (hash=20902088): Resolving source 
System.Windows.Data Warning: 68 : BindingExpression (hash=20902088): Found data context element: TextBlock (hash=15347538) (OK)
System.Windows.Data Warning: 76 : BindingExpression (hash=20902088): Activate with root item TopLevelAccountCode (hash=28952916)
System.Windows.Data Warning: 106 : BindingExpression (hash=20902088):   At level 0 - for TopLevelAccountCode.HatchPatternColour found accessor ReflectPropertyDescriptor(HatchPatternColour)
System.Windows.Data Warning: 102 : BindingExpression (hash=20902088): Replace item at level 0 with TopLevelAccountCode (hash=28952916), using accessor ReflectPropertyDescriptor(HatchPatternColour)
System.Windows.Data Warning: 99 : BindingExpression (hash=20902088): GetValue at level 0 from TopLevelAccountCode (hash=28952916) using ReflectPropertyDescriptor(HatchPatternColour): Color (hash=1871599772)
System.Windows.Data Warning: 78 : BindingExpression (hash=20902088): TransferValue - got raw value Color (hash=1871599772)
System.Windows.Data Warning: 87 : BindingExpression (hash=20902088): TransferValue - using final value Color (hash=1871599772)
Doesn't this show that it has found the Color property?

Any suggestions please?

Thanks
Craig

Craig
Top achievements
Rank 1
 answered on 16 Oct 2013
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?