Telerik Forums
UI for WPF Forum
1 answer
101 views
Hi,

I was able to set 2 series for YAxis based on samples found on this site.

Right now only one scale is calculated and displayed on the left for both YAxis series...

I am looking for a way to display second YAxis scale on the right side of chart area.

Thanks !

<!-- Start Graphic Control -->
 <telerik:RadChart ItemsSource="{Binding GraphicValueList}"  x:Name="chart" HorizontalAlignment="Stretch">
     <telerik:RadChart.SeriesMappings>
         <!--Pen 1 Y-Axis-->
         <telerik:SeriesMapping CollectionIndex="0">
             <telerik:SeriesMapping.SeriesDefinition>
                 <telerik:LineSeriesDefinition ShowItemLabels="False" />
             </telerik:SeriesMapping.SeriesDefinition>
  
            <telerik:SeriesMapping.GroupingSettings>
                 <telerik:GroupingSettings>
                     <telerik:GroupingSettings.GroupDescriptors>
                         <telerik:ChartGroupDescriptor Member="PenName" />
                     </telerik:GroupingSettings.GroupDescriptors>
                 </telerik:GroupingSettings>
             </telerik:SeriesMapping.GroupingSettings>
 
            <telerik:ItemMapping DataPointMember="XValue" FieldName="ProductionDate" />
             <telerik:ItemMapping DataPointMember="YValue" FieldName="GenericValue"  />
 
        </telerik:SeriesMapping>
 
        <!--Pen 2 Y-Axis-->
         <telerik:SeriesMapping CollectionIndex="1"  >
             <telerik:SeriesMapping.SeriesDefinition>
                 <telerik:LineSeriesDefinition ShowItemLabels="False" AxisName="Pen2" />
             </telerik:SeriesMapping.SeriesDefinition>
 
            <telerik:SeriesMapping.GroupingSettings>
                 <telerik:GroupingSettings>
                     <telerik:GroupingSettings.GroupDescriptors>
                         <telerik:ChartGroupDescriptor Member="PenName" />
                     </telerik:GroupingSettings.GroupDescriptors>
                 </telerik:GroupingSettings>
             </telerik:SeriesMapping.GroupingSettings>
 
            <telerik:ItemMapping DataPointMember="XValue" FieldName="ProductionDate" />
             <telerik:ItemMapping DataPointMember="YValue" FieldName="GenericValue" />
 
        </telerik:SeriesMapping>
 
    </telerik:RadChart.SeriesMappings>
  
    <telerik:RadChart.DefaultView >
         <telerik:ChartDefaultView >
 
            <telerik:ChartDefaultView.ChartLegend>
                 <telerik:ChartLegend x:Name="legend" VerticalAlignment="Top" HorizontalAlignment="Center" >
                 </telerik:ChartLegend>
             </telerik:ChartDefaultView.ChartLegend>
 
            <telerik:ChartDefaultView.ChartArea>
                 <telerik:ChartArea LegendName="legend" EnableAnimations="False">

 
                    <telerik:ChartArea.AxisX>
                         <telerik:AxisX Title="Date" MinorTicksVisibility="Collapsed" IsDateTime="True" />
                     </telerik:ChartArea.AxisX>
 
                    <!--Pen 1 Y-Axis-->
                     <telerik:ChartArea.AxisY>
                         <telerik:AxisY Title="Pen 1 Values" MinorTicksVisibility="Collapsed">
                         </telerik:AxisY>
                     </telerik:ChartArea.AxisY>
 
                    <!--Pen 2 Y-Axis-->
                     <telerik:ChartArea.AdditionalYAxes>
                         <telerik:AxisY AxisName="Pen2" Title="Pen 2 Values" MinorTicksVisibility="Collapsed">
                         </telerik:AxisY>
                     </telerik:ChartArea.AdditionalYAxes>
 
                </telerik:ChartArea>
             </telerik:ChartDefaultView.ChartArea>
         </telerik:ChartDefaultView>
     </telerik:RadChart.DefaultView>
 </telerik:RadChart>
 <!-- End Graphic Control -->


Rosko
Telerik team
 answered on 06 Jun 2012
1 answer
187 views
We are using RadDocking and there is an option for user to pickup any theme they want.  We like to keep the PaneHeader background color if the pane is not on focus, but for the ActivePane, we like to have more strong color to emphasize the current focused view.  Could you please show us how to do it.
Thanks.
Dani
Telerik team
 answered on 06 Jun 2012
4 answers
300 views
I can't seem to paste data from Excel 2010 (only version I have tried) directly into GridView. After pasting, I need to click to edit cell, then that cell only updates. I then have to click into each other cell for it to update. I have tried different options for ClipboardPasteMode - "Default", "AllSelectedCells","AllSelectedCells, Cells","Cells,AllSelectedCells".
I assumed that pasting data from Excel would automatically update the cell (or multiple) value. For now I have comment out the Context Menu because VS2010 debugging won't work.

Many thanks.

Alan
<Page x:Class="ENG_120319.Page1"
            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:Navigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
       xmlns:telerikg="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
            mc:Ignorable="d"
            d:DesignHeight="416" d:DesignWidth="1203"
            Title="Page1">
    <Grid>
        <TabControl Height="392" HorizontalAlignment="Left" Margin="12,12,0,0" Name="tabControl1" VerticalAlignment="Top" Width="1177">
            <TabItem Header="Support Docs" Name="tabSD">
                <Grid>
                    <telerik:RadGridView ClipboardCopyMode="All" ClipboardPasteMode="AllSelectedCells,Cells" AutoGenerateColumns="False" ItemsSource="{Binding Path=SupDocList}" Margin="6,10,6,6" Name="radGridView1" SelectedItem="{Binding Path=CurrentVCategory, Mode=TwoWay}" SelectionMode="Extended" SelectionUnit="Cell"  ShowGroupPanel="False" FontSize="10" RowHeight="20">
                                                                   
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding SupDocID}" HeaderTextAlignment="Center" Header="Sup Doc ID" Width="70" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding DocCode}" HeaderTextAlignment="Center" Header="Doc List Code" Width="70" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding DocName}" Header="Doc List Name" Width="200"  />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding StartDate}" DataFormatString=" {0:dd/MM/yyyy}" HeaderTextAlignment="Center"  Header="Start Date" Width="100" />
 
                        </telerik:RadGridView.Columns>
                      <!--  <Navigation:RadContextMenu.ContextMenu>
                            <Navigation:RadContextMenu Opened="OnContextMenuOpened">
                                <Navigation:RadMenuItem Command="{Binding AddCommand}" Header="Add a new line" />
                                <Navigation:RadMenuItem Command="{Binding EditCommand}" Header="Save" />
                                <Navigation:RadMenuItem Command="{Binding DeleteCommand}" Header="Delete" />
                            </Navigation:RadContextMenu>
                        </Navigation:RadContextMenu.ContextMenu>-->
                    </telerik:RadGridView>
                </Grid>
            </TabItem>
            <TabItem Header="Handover Docs" Name="tabHO">
            </TabItem>
        </TabControl>
    </Grid>
</Page>


Dimitrina
Telerik team
 answered on 06 Jun 2012
2 answers
117 views
Hello,

we add columns to a rad grid view in code including the DataFormatString. The first time we add the column everything works well, the value is displayed with the correct format.
We can remove a column and later on we add it again with the same DataFormatString, but this time the format string does not get applied, what could that be?
Thanks for help.

Michael
Michael
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
139 views
Is there a way to auto-close one RadExpander when another RadExpander is expanded?

James
Miro Miroslavov
Telerik team
 answered on 06 Jun 2012
3 answers
101 views
Hello!

Is there the possibility to set MinHeight & MinWidth to the document host so when the user is resizing the window the DocumentHost would not go shrunk under the specified values?

Thank you!
Roxana
George
Telerik team
 answered on 06 Jun 2012
3 answers
400 views
Hi,

I use programmatically columns generation:

var col = new GridViewDataColumn
{
     DataMemberBinding =
new Binding(column.Name),
        Header = column.Header,
        ToolTip = new Binding(column.Description)
};
........................

for GridView:

<telerik:RadGridView x:Name="dgvResults" AutoGenerateColumns="False" CanUserDeleteRows="False" SelectionMode="Extended" IsReadOnly="True"
                             ShowGroupPanel="False" CanUserFreezeColumns="False" IsFilteringAllowed="True" RowIndicatorVisibility="Collapsed" ScrollMode="Deferred" EnableRowVirtualization="True" EnableColumnVirtualization="True"
                             ColumnWidth="170">
..............
</telerik:RadGridView>

But I can't see ToolTips for columns.
What is problem?

Thanks!
Vlad
Telerik team
 answered on 06 Jun 2012
2 answers
208 views
I've got a custom style for my RadGridView in my WPF application.  Before I started editing the style, I remember that the RadGridView used to show the selected row by changing the background color (I think). After editing the style, my control isn't doing this any more.

Can you point me to the style, or provide it in a response to this thread?

Thanks

Tony
Tony
Top achievements
Rank 1
 answered on 05 Jun 2012
0 answers
86 views
I am finding drag and drop really difficult to implement. I have tried to modify the DragandDrop example in RadListBox by adding a treeview in a column next to the Group A-D listboxes, modified the code to populated it with a couple country objects, but could not work draganddrop from this radtreeview to listboxes work. I also would like to enable reorder in the radlistbox as well.

I can post my solution here, but do not want to include the binaries etc.

Could someone quickly write a small demo, by modifying the demo little bit? I guess I need to use (maybe?) RadDragandDropManager and DragandDrop at the same time, but a sample project would help a lot.

Thanks.
Ahmet
Top achievements
Rank 1
 asked on 05 Jun 2012
4 answers
157 views
I have the following xaml:
<telerik:RadCarousel Name="myCarousel"  HorizontalContentAlignment="Stretch" VerticalAlignment="Top" VerticalContentAlignment="Center" Height="43" Padding="0" IsSynchronizedWithCurrentItem="True" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" Background="{x:Null}" Margin="25,0,2,0" PreviewMouseDown="effectiveDateCarousel_PreviewMouseDown" PreviewKeyDown="effectiveDateCarousel_PreviewKeyDown" PreviewMouseWheel="effectiveDateCarousel_PreviewMouseWheel">
<telerik:RadCarousel.ItemsPanel>
<ItemsPanelTemplate>
<telerik:RadCarouselPanel HorizontalAlignment="Stretch" VerticalAlignment="Center" Path="{StaticResource path}" IsSelectedTopItem="True" />
          </ItemsPanelTemplate>
</telerik:RadCarousel.ItemsPanel>
</telerik:RadCarousel>


On the UserControl loaded event I have the following:
RadCarouselPanel panel = myCarousel.FindCarouselPanel();
panel.ItemsPerPage = 7;

Most of the time this works fine. However occasionally the FindCarouselPanel will return null instead of the panel? Am I doing something wrong? Is there anything I can do to prevent this?
Dev
Top achievements
Rank 1
 answered on 05 Jun 2012
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?