Telerik Forums
UI for WPF Forum
32 answers
815 views

Hi folks, I appreciate the help!

We used to use VisiBlox and there was a very helpful method called GetRenderPosition() and GetRealPosition() I think it was. 
This is helpful for converting a value such as 1000 (Hertz) into a screen position such as 123.456 (pixels) and back again.

Say I need to adjust a ScatterPointSeries by 10 pixels. I can't do this because there is no way to translate 10 pixels into X units on the HorizontalAxis. 

Specifically, this is impossible to do because I amusing a LogarithmicAxis for the X-Axis. So on the left side of the graph, 10 pixels on the screen corresponds to about 125Hz on my graph. On the right side of the graph, 10 pixels on screen corresponds to more like 2000Hz. 

Anyways, I found a method called RadChart.DefaultView.ChartArea.AxisX.ConvertPhysicalUnitsToData()
This looks like what I need, except for these problems:
-I am using RadCartesianChart not RadChart
-I tried hacking it together with a temporary RadChart variable and noticed that the AxisX property has no IsLogarithmic. 

So is there a method to do this? If not, that is incredibly disappointing. The VisiBlox method was so easy and helpful. 

Right now I have typed in dozens of data points and their approximate screen positions using screenshots of my pc, and then typing all these values into a Ti-83 graphing calculator and finding the best fit, and converting that function into c# code. It works, but now that the graph size has changed due to changes in my program, it is useless and there is no way to fix it again and make it future-proof. 

tl;dr - How, with RadCartesianChart, do I convert from a graph value to screen position and back again?

Nathanial
Top achievements
Rank 1
 answered on 07 Nov 2016
2 answers
148 views

InvalidOperationException: A style intended for type 'Telerik_Windows_Controls_RadTileViewItem_0_123599943' cannot be applied to type 'ContentPresenter'.

What is this supposed to mean?  This appears to pop up randomly, and now I cannot get it to go away..

Tyler
Top achievements
Rank 1
 answered on 07 Nov 2016
2 answers
161 views

Hello!

At the Reorder-Drag&Drop there are 3 options to reorder the Tasks: "Before", "Inside" and "After". Is there a possibility to disable "Inside" and "After", so the user only has the option to reorder "Before"?

 

kind regards

Ludwig

Ludwig
Top achievements
Rank 1
 answered on 07 Nov 2016
1 answer
271 views

Hi, 

Is it possible when using the standard DateTimePicker to dynamically change the StartTime/EndTime properties of the Time-part of the control?

I would like the user to be able to click f.ex. 9:00 in the TimePicker, after which this same Time-picker part displays 9:05, 9:10, 9:15, 9:20... until 10:00

(a bit the same like for the Date-picker part - where you can choose the year, then month, then date ....)

Is that something that can be done?

 

Stefan Nenchev
Telerik team
 answered on 07 Nov 2016
0 answers
89 views
How can I save edited data when I click Ok button of Appointment and Edit Recurrence pop up screen
Rafnas
Top achievements
Rank 1
 asked on 07 Nov 2016
7 answers
835 views

Hi,

We would like our users to perform "undo/redo" in the GridView (at the very least, "undo") as in Excel where users can "undo/redo" changes in each cell.

Could you please help in providing an example of how to accomplish this scenario?

We are using MVVM with observable properties and observable collections.

 

Kind regards

 

Stefan
Telerik team
 answered on 07 Nov 2016
1 answer
300 views

I need to display grid filters with both an image and descriptive text.  I've searched the forum and found numerous examples for adding the image, but none with both image and text.

Is this possible?  if not, can I reduce the width of the filter dropdown to avoid the "ugly" whitespace in my filter list?  There is really no need to include the "Apply" and "Clear" filter buttons as the check boxes auto apply the filters when checked or unchecked.

Here is what I have so far:

 

    public class ImageFilterColumn : GridViewImageColumn
    {
        protected override Func<object, object> FilteringDisplayFunc => CategoryToFilterImage;

        public static object CategoryToFilterImage(object value)
        {
            var rtn = new object();
            var cat = (LogCategory) value;
            var image = new Image() {Source = new BitmapImage(cat.ToSmallImageUri())};
            return image;
        }
    }

xaml:

 <telerik:RadGridView.Columns>
 <local:ImageFilterColumn ShowFieldFilters="False" Header ="" DataMemberBinding="{Binding cat, Converter={StaticResource CategoryImageConverter}}"/>

 

Yoan
Telerik team
 answered on 07 Nov 2016
4 answers
125 views
Hello. If I set a custom cursor to a RadWindow, when I hover the pointer over the title area of the window, the custom cursor isn;t displayed, instead the standard arrow cursor is shown.

Is there a way to have the custom cursor displayed in the title area as well?
Nasko
Telerik team
 answered on 07 Nov 2016
1 answer
320 views
I have a Radgridview with a custom cell which is editable. When the enter key is pressed it appropriately moves to the next row down. When a value is entered into the second row and the user presses the enter key it does not move to the next row. Is there a way to always have the cursor move to the next cell down when the enter key is pressed and not just once?
Ivan Ivanov
Telerik team
 answered on 04 Nov 2016
1 answer
1.5K+ views
Hello, 
i am working on an mapping application with a RadGridView and only two columns, in the second column, i have foreach row a GridViewComboBoxColumn.
The GridViewComboBoxColumn, looks in xaml like this:
<telerik:GridViewDataColumn  DataMemberBinding="{Binding PropName, UpdateSourceTrigger=PropertyChanged}" Header="MappingPropertyItem" Width="200"/>
Now my problem is how to bind the selectedItem to my ObservableCollection. Does anybody know how i can bind the selectedItem?
I already took a look at this thread: http://www.telerik.com/forums/contextmenu-bind-to-selected-value-of-radgridview-combobox
But this example didnt help me further....

Any help is welcome, thanks in advance!
Ivan Ivanov
Telerik team
 answered on 04 Nov 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
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
Iron
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
Iron
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?