Telerik Forums
UI for WPF Forum
7 answers
364 views

Hi,

I have a Telerik Rad Cartesian Spline Curve Chart where X axis Categorical axis and Y Axis is numerical. Currently the values of X Axis Labels are like eg 0,1,2,3....

On Mouse hover over the labels on Categorical X Axis I want to display a tool tip which represent some string corresponding to 0,1,2 accordingly.

eg: 0=> Apple

       1=> Orange etc

How do I acheive this?

 

Regards,

Shilpa

Shilpa
Top achievements
Rank 1
 answered on 03 Aug 2016
2 answers
250 views

I upgraded my Telerik version from 2014.1.331.45 to 2016.2.606.45. RadTreeView Multiple selection mode was working just fine with the older version, multiple selection is applied only when using Ctrl and/or Shift key (as expected). But after upgrading, RadTreeView is applying multiple selection without clicking Ctrl or Shift key, which is strange. The code is the same before and after upgrading:

<telerik:RadTreeView x:Name="lstVariables" Padding="5" BorderThickness="0" Grid.Row="0" ScrollViewer.CanContentScroll="False" IsEditable="True" SelectionMode="Multiple" ItemsSource="{Binding LstAppDataSeriesGrouping}" IsDropPreviewLineEnabled="False" IsDragPreviewEnabled="True" IsDragTooltipEnabled="False"  telerik:TreeViewSettings.DragDropExecutionMode="New" IsLineEnabled="True" IsSingleExpandPath="False" IsExpandOnSingleClickEnabled="True" IsDragDropEnabled="True"
KeyDown="lstVariables_KeyDown" ItemTemplateSelector="{StaticResource ItemDataTemplateSelector}">
                            <telerik:RadContextMenu.ContextMenu>
                                <telerik:RadContextMenu x:Name="radContextMenu"  Opened="radContextMenuBasic_Opened">
                                    <telerik:RadMenuItem x:Name="mnuEditVariableBasic" Height="23" Header="{Lang:LangCheck Edit}" Click="EditBasicVariable_Click">
                                        <telerik:RadMenuItem.Icon>
                                            <Image Source="{DynamicResource editseries}"/>
                                        </telerik:RadMenuItem.Icon>
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem x:Name="mnuDelete" Height="23" Header="{Lang:LangCheck Delete}" Click="mnuDeleteBasic_Click">
                                        <telerik:RadMenuItem.Icon>
                                            <Image Source="{DynamicResource delete}"/>
                                        </telerik:RadMenuItem.Icon>
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem x:Name="mnuRename" Height="23" Header="{Lang:LangCheck Rename}" Click="mnuRenameBasic_Click">
                                        <telerik:RadMenuItem.Icon>
                                            <Image Source="{DynamicResource rename}"/>
                                        </telerik:RadMenuItem.Icon>
                                    </telerik:RadMenuItem>
                                </telerik:RadContextMenu>
                            </telerik:RadContextMenu.ContextMenu>
                        </telerik:RadTreeView>

Adnan
Top achievements
Rank 1
 answered on 03 Aug 2016
1 answer
78 views

hello,when I load diagram use code like this:

                    StreamReader streamReader = new StreamReader(diagramXmlFile);
                    string data = streamReader.ReadToEnd();
                    streamReader.Close();
                    this.ProjectImageDiagram.Load(data);

                    RadDocumentPane diagramPane = new RadDocumentPane();
                    DataTemplate doctabTemplate = (DataTemplate)CRWindow.TryFindResource("doctab");
                    StackPanel docTab = (StackPanel)doctabTemplate.LoadContent();
                   diagramPane.Header = docTab;
                   UserControl diagramUserControl = new UserControl(diagram, true);
                   diagramPane.Content = diagramUserControl;

And I add diagramPane to RadDocking-DocumentHost-RadSplitContainer-RadPaneGroup, but when I run the program and open this pane, I find that the diagram is zoom in first, and then zoom out to fit the window,why?   Hope to answer, Thanks !

Peshito
Telerik team
 answered on 02 Aug 2016
1 answer
92 views

Hi,

We are using custom page presenters (from FixedDocumentPresenterBase),

We have updated the telerik dlls to the last version (2016.2.613) since then we are unable to see our pdfs correctly using the pdfviewer with our custom presenters.

Only the first page is displayed, the other ones are all blank.

Works fine with the default page presenter.

I think that it could be related to a new page caching optimization that has been implemented.

Is there a way to be able to use it in our custom page presenters or maybe a way to disable it ?

Regards,

 

Mihail
Telerik team
 answered on 02 Aug 2016
1 answer
1.1K+ views

Hello,

I would like to know how to change the RadDesktopAlert appearance so that it will have rounded corners.

Masha
Telerik team
 answered on 02 Aug 2016
2 answers
144 views

If I import an existing xlsx-file (Excel 2013) with a special Formatting and export it afterwards, the formatting is destroyed.

The file has its rows colored in different kinds of grey. After processing it, the colors are from dark blue to dark green. Seems like this depends on the brightness of the grey color of the original file.

If I use a standard Excel-Formatting, it is removed while processing.

What can be the reason for this behaviour?

Nikolay Demirev
Telerik team
 answered on 02 Aug 2016
21 answers
520 views
Hi. I am having some difficulties using the RadToolBar.
The following code (utilizing the standard toolbar) works just fine:
<ToolBarTray DockPanel.Dock="Top" 
             IsLocked="False"
     <ToolBar BandIndex="0" 
              ToolBarTray.IsLocked="False"
          <Button Click="Button_Click">foo</Button> 
     </ToolBar> 
     <ToolBar BandIndex="0" 
              ToolBarTray.IsLocked="False"
          <Button Command="ApplicationCommands.Cut" 
                  Content="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                  HorizontalAlignment="Center" 
                  VerticalAlignment="Center" /> 
          <Button Command="ApplicationCommands.Copy" 
                  Content="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                  HorizontalAlignment="Center" 
                  VerticalAlignment="Center" /> 
          <Button Command="ApplicationCommands.Paste" 
                  Content="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                  HorizontalAlignment="Center" 
                  VerticalAlignment="Center" /> 
     </ToolBar> 
</ToolBarTray> 
i.e. Commands are active when inside a TextBox otherweise not and the two Toolbars are repositionable inside the ToolBarTray.

However, when I switch to RadToolBar....
<telerik:RadToolBarTray DockPanel.Dock="Top" 
                        IsLocked="False"
     <telerik:RadToolBar BandIndex="0" 
                         telerik:RadToolBarTray.IsLocked="False"
          <Button Click="Button_Click">foo</Button> 
     </telerik:RadToolBar> 
     <telerik:RadToolBar BandIndex="0" 
                         telerik:RadToolBarTray.IsLocked="False"
          <Button Command="ApplicationCommands.Cut" 
                  Content="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                  HorizontalAlignment="Center" 
                  VerticalAlignment="Center" /> 
          <Button Command="ApplicationCommands.Copy" 
                  Content="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                  HorizontalAlignment="Center" 
                  VerticalAlignment="Center" /> 
          <Button Command="ApplicationCommands.Paste" 
                  Content="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                  HorizontalAlignment="Center" 
                  VerticalAlignment="Center" /> 
     </telerik:RadToolBar> 
</telerik:RadToolBarTray> 
The Commands are Disabled and do not enable and the ToolBars are not repositionable inside the ToolBarTray.

Have I misread the Documentation on RadToolBar ?

Yours, Nils
Petar Mladenov
Telerik team
 answered on 02 Aug 2016
2 answers
297 views

Hi,

I'm trying to create a telerik rad menu with all the items with icons. The xaml code I´m using is:

 

01.<UserControl.Resources>
02.        <ResourceDictionary>
03.            <ResourceDictionary.MergedDictionaries>
04.                <ResourceDictionary Source="pack://application:,,,/Resources;component/Themes/Generic.xaml"/>
05.            </ResourceDictionary.MergedDictionaries>
06.             
07. 
08. 
09.            <Style x:Key="MultiColumnMenuItemStyle" TargetType="telerik:RadMenuGroupItem">
10.                <Setter Property="ItemsPanel">
11.                    <Setter.Value>
12.                        <ItemsPanelTemplate>
13.                             
14.                            <telerik:RadWrapPanel Orientation="Vertical" MaxHeight="300" />
15.                        </ItemsPanelTemplate>
16.                    </Setter.Value>
17.                </Setter>               
18.            </Style>
19.             
20. 
21.            <HierarchicalDataTemplate x:Key="MenuItemTemplate" ItemsSource="{Binding Items}">               
22.                <TextBlock Text="{Binding Text}" />
23.                <HierarchicalDataTemplate.ItemContainerStyle>
24.                    <Style TargetType="telerik:RadMenuItem">
25.                        <Setter Property="IconTemplate">
26.                            <Setter.Value>
27.                                <DataTemplate>
28.                                    <Image Source="{Binding}"
29.                                       MaxWidth="16"
30.                                       MaxHeight="16"
31.                                       MinWidth="16"
32.                                       MinHeight="16"
33.                                       Stretch="Fill"
34.                                       Opacity="0.8"
35.                                       HorizontalAlignment="Center"
36.                                       Margin="0 0 5 0" />
37.                                </DataTemplate>
38.                            </Setter.Value>
39.                        </Setter>
40.                        <Setter Property="Icon"  Value="{StaticResource Icon48MultiFolder}"></Setter>
41.                    </Style>
42.                </HierarchicalDataTemplate.ItemContainerStyle>
43.            </HierarchicalDataTemplate>
44.        </ResourceDictionary>
45.    </UserControl.Resources>
46.    <Grid>
47.        <telerik:RadMenu            
48.            VerticalAlignment="Top"
49.            telerik:StyleManager.Theme="Windows8Touch">
50.             
51.             
52.            <telerik:RadMenuItem ItemContainerStyle="{StaticResource MultiColumnMenuItemStyle}" >
53.                <telerik:RadMenuItem.Icon>
54.                    <StackPanel Orientation="Horizontal">
55.                        <Image Source="{StaticResource Icon48Menu}" Opacity="0.8" Stretch="None"  />
56.                    </StackPanel>
57.                </telerik:RadMenuItem.Icon>
58.                 
59.                <telerik:RadMenuGroupItem ItemsSource="{Binding Items}"
60.                                          ItemTemplate="{StaticResource MenuItemTemplate}">
61.                     
62.                </telerik:RadMenuGroupItem>
63.            </telerik:RadMenuItem>
64.</telerik:RadMenu>
65.    </Grid>
66.</UserControl>

But in the menu result, the first level has not any icons. (You can see the image attached)

Any idea?

 

Nasko
Telerik team
 answered on 02 Aug 2016
2 answers
305 views
Is there a way to make the toolbar overflow area horizontal?

Currently it seems to display elements vertically and that not what I desire considering the fact that I'm customizing the layout of the toolbar controls.

Preferably the overflow orientation should match that of the toolbar.
Greg
Top achievements
Rank 1
 answered on 01 Aug 2016
1 answer
56 views

Hi,

I have been unable to right align the contents of a merged cell in my RadGridView using the VS2013 dark theme.

With a little digging following the default cell template, it doesn't have the horizontal alignment bound.

I have therefor altered the control templates ContentControl as follows to fix the problem.

<ContentControl x:Name="PART_ContentPresenter"
   IsTabStop="{TemplateBinding IsTabStop}"
   Margin="{TemplateBinding Padding}"
   Foreground="{TemplateBinding Foreground}"
   Content="{TemplateBinding Content}"
   ContentTemplate="{TemplateBinding ContentTemplate}"
   VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
   VerticalContentAlignment="Stretch"
   <!-- Added below-->
   HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
   <!-- Added above-->
   HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/>

I am not sure whether this needs updating in the default theme Telerik.Windows.Controls.GridView.xaml but it would seem to make sense to me.

Regards,

Shaun Criten

 

 

Yoan
Telerik team
 answered on 01 Aug 2016
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?