Telerik Forums
UI for WPF Forum
1 answer
149 views

Hello Telerik,

 

I'm using a RadDiagram containing shapes. These shapes has TextBlock to display some text.

I search to get the position of a TextBlock inside this RadDiagram.

 

I did it (tb is a TextBlock and Me.MirBuilderDiagram is a RadDiagram) :

tb.TransformToAncestor(Me.MirBuilderDiagram).Transform(New Point(0, 0))

 

The problem is that values are false : the top-left corner of the RadDiagram is set to 20;20, and for a TextBock next to this corner, I get the wrong value. I tried to get the position with the parent of the RadDiagram (a Grid), but I have the same result.

 

I attached 2 screenshots with :

- raddiagram : showing you the visual RadDiagram

- debug : showing you the debug with an attached watcher.

 

How I can get the good values ?

Thank you.

 

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 05 Feb 2018
10 answers
604 views
We want to leverage Cell Templates instead of using the "edit mode" of the GridView however when tabbing between TextBoxes in the CellTemplate the Cell takes focus NOT the next cell's TextBox (that lives inside the CellTemplate). How do we fix this? We are using Q1 2009.
Anton
Top achievements
Rank 1
 answered on 05 Feb 2018
18 answers
2.9K+ views
I have a gridview item with a red background and a white text.
When i move the mouse above the gridview i get a yellow highlight, that causes the text to be unreadable.

Is there a easy way to set the row background/foreground color for the highlight, and selection?

For example:
Highlight: background = yellow, foreground=black
Selection: background = orange, foreground=black

With regards,
Rob


Pavel
Top achievements
Rank 1
 answered on 03 Feb 2018
0 answers
64 views

Hello!

I have:

1. CandlestickSeries

2. X-Axis (datetime): CategoricalAxis 

3. Y-Axis (double):  LinearAxis 

4. ChartPanAndZoomBehavior DragToZoomThreshold="0" MouseWheelMode="Zoom" DragMode="Pan" ZoomMode="Both" PanMode="Both"

How to make it so that:

1. When scrolling along the X-axis, all data on the Y-axis was displayed (in the visible range of X-axis)

 

Гоша
Top achievements
Rank 1
 asked on 03 Feb 2018
3 answers
255 views

Hello,

I have a project in which I have a radgridview that needs to be styled with different colors based on the values that are in the cell. So each cell can have different colors depending on its value. To do this I have just been programmatically changing the cell color from the cell loaded event. This is working fine for me but coloring the cells is having a weird effect that I would like to remove if possible. It appears that the cell colors are rendered on top of the row color and the selected row highlight when you mouse over a row. Is there a way I can easily reverse this so that the row color overrides the cell color while the row highlight is on top of the row color?

 

Thanks

Dilyan Traykov
Telerik team
 answered on 02 Feb 2018
5 answers
840 views

I want to always disable and, if I can, clear the content of the first cell in the first row of my RadGridView.  I know there is the readonly property to use, but that doesn't really work because then my objects need that field to bind to.  It is static for me that in the first row, the first cell is always disabled.  So no matter how the user moves around the rows or data, that cell remains static.

How can I do this?

Martin Ivanov
Telerik team
 answered on 02 Feb 2018
3 answers
249 views
I am using a RadScheduleView in MonthView only.  How can I disable highlighting the day slots on MouseOver, so that only the selected appointments are highlighted?  I tried editing the TimeRulerItemStyleSelector.MonthViewTickStyle and MonthViewTodayTickStyle so that the MouseOver VisualState in the RadButton and RadToggleButton templates was the same as the Normal VisualState, but that did not work.  I am having trouble finding the style the applies to the portion of the slot surrounding the appointments.  Any suggestions?
Dilyan Traykov
Telerik team
 answered on 02 Feb 2018
2 answers
109 views

Hi,

 

I am trying to make a universal style which would show header tooltip for every column in a gridview. In generic.xml I defined this style:

<Style TargetType="telerik:GridViewHeaderCell">
     <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=Content}" />
</Style>

This does show the tooltip, however when mouse pointer is hovered over the column header then the actual column header gets cleared. The tooltip stays. I tried to set binding mode to TwoWay but it doesn't change this behavior. How can this be fixed if I'd like to keep styling global?

 

Alex
Top achievements
Rank 1
 answered on 02 Feb 2018
4 answers
100 views

Hi, 

Do you have any example to create an appoiment skipping slots reservations?

Thanks in advance.

Carlos
Top achievements
Rank 1
 answered on 02 Feb 2018
1 answer
141 views
Hi, I have an Application Menu within this structure:
<telerik:RadRibbonView>
   <telerik:RadRibbonView.ApplicationMenu  >
      <telerik:ApplicationMenu>
         <telerik:ApplicationMenu.Content>
            <Grid>...
In the code behind I fill the grid with an child of an RadTeeView:

 

RadTreeView tree = new RadTreeView();
tree.Items.Add(myTree);
myGrid.Children.Add(tree);

 

So far so good, every thing is working fine.

But how can I prevent that the menu closes when I left click (MouseDown) on the menu or the main window?

The Application Menu did not close when I left click on the:

-root element from my tree

-plus/arrow icon of on tree node

-element which was selected on the last visit

 

It would be nice to handle the closing of the app-menu by my self, is this possible?

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Feb 2018
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
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?