Telerik Forums
UI for WPF Forum
3 answers
292 views

Hi,

I'm evaluating ChartView3D and Telerik UI for a project. We are going to visualise drill holes using it. A hole typically starts at the surface and goes into the ground. My attempt to achieve this was to rotate the whole graph 180 degrees, but doing so rotates also all labels and axis titles, see screendump :(

Is there any other way I can achieve this? Or can I rotate the graph without rotating the labels/titles? Or could I counter rotate them? Any tips would be appreciated.

Kind regards,
Karl-Petter

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Mar 2019
3 answers
95 views

We have a RadTreeListView where the IsExpanded property of the rows is bound to a property on row objects.  Sometimes, some of the expander triangles in the RadTreeListView look expanded, but their children are not visible.  Any idea what might be causing this or how to fix it? 

 

The attached image shows a small example.  The third row looks like it's expanded, but its child is not shown.  If you click the triangle, it collapses it; and if you click it again, it's then expanded properly with the child shown.

 

Dilyan Traykov
Telerik team
 answered on 07 Mar 2019
6 answers
2.3K+ views

Hi,

How can I set the background color (in XAML) of a NumericUpDown control when IsReadOnly is set to true ?  I tried using a style but without succes ...

Regards,
Hans

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Mar 2019
0 answers
138 views

Hi,

    I'm using  in GridView to keep the input away from unexpected errors. But I encountered a tiny defect. The error messages only display when mouse hovering on the top-right corner (it's a red small triangle out there). This makes the user a little trouble when checking the message because he has to move his mouse in a  pretty accurate location. In fact, users usually prefer to get the error tip when the mouse enters the cell. there any methods to implement this?

 

Thank you!

yi
Top achievements
Rank 1
 asked on 07 Mar 2019
5 answers
243 views

I wish to make a RangdSpline series with a gradient. Similar to what is done in the SurfaceSeries3D

Is this possible in 2D?

Karl B
Top achievements
Rank 1
 answered on 05 Mar 2019
2 answers
255 views

This is a difficult one, I think. If you look at one of the attached screenshots, some of the labels are adjacent to the axis as they should be, but some are quite distant. Sometimes they will all be correct except a few, sometimes they are all fine, and sometimes they are all wrong.

 

The problem seems to especially manifest when that the chart is bound to changes, and the new values on the labels are not included in the original values. For example the first screenshot has values at each 100 step, and when the data point changes from 400 to 200, the x100 values which were already on the axis are correct but the new x50 values are placed incorrectly. It isn't that straightforward of course... for example, often labels which weren't there originally are added fine. 

 

The chart is fairly basic. It is a single fixed series bound to a list of data point objects. When we change the data we completely replace the list rather than try to use an observable collection.

<telerik:RadCartesianChart x:Name="Chart" BorderThickness="1">
     
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis PlotMode="OnTicksPadded" SmartLabelsMode="SmartStep" />
    </telerik:RadCartesianChart.HorizontalAxis>
 
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis Title="{Binding VerticalLabel}" Minimum="0" SmartLabelsMode="SmartStepAndRange"
                            LabelTemplate="{StaticResource VerticalAxisLabelTemplate}" />
    </telerik:RadCartesianChart.VerticalAxis>
 
    <telerik:RadCartesianChart.Series>
        <telerik:BarSeries x:Name="barSeries" ItemsSource="{Binding SeriesData}" CategoryBinding="XValue" ValueBinding="YValue" >
            <telerik:BarSeries.DefaultVisualStyle>
                <Style TargetType="Border">
                    <!--The data context here is the data point, but we need to bind to properties of the visualizer,
                    which is the data context of the series (presenter) which contains it -->
                    <Setter Property="Background" Value="{Binding Presenter.DataContext.Fill}"/>
                    <Setter Property="BorderBrush" Value="{Binding Presenter.DataContext.Color}"/>
                    <Setter Property="BorderThickness" Value="2"/>
                </Style>
            </telerik:BarSeries.DefaultVisualStyle>
        </telerik:BarSeries>
    </telerik:RadCartesianChart.Series>
     
</telerik:RadCartesianChart>
Steve
Top achievements
Rank 1
 answered on 05 Mar 2019
4 answers
268 views
Hello,

we're using your RadExpression editor in our application. We create the expressions using the editor and then we save them. At a
later stage we parse them using the editor again, but we would like to use the parsing functionality without a dependence on WPF.
Is there anyway to do that with any of your products?


public static List<T> Filter<T>(IList<T> items, string filter) where T : new()
        {
            var result = new List<T>();
 
            try
            {
                var editor = new RadExpressionEditor();
                editor.Item = new T();
                Expression exprResult;
                var isSuccess = editor.TryParse(filter, out exprResult);
 
                if (isSuccess)
                {
                    var expr1 = (Expression<Func<T, bool>>)exprResult;
                    var func = expr1.Compile();
                    result = items.Where(func).ToList();
                }
            }
            catch (Exception)
            {
                
            }
 
            return result;
        }
regards,
Ned Stoyanov
Maurizio
Top achievements
Rank 2
 answered on 05 Mar 2019
1 answer
166 views
We have multiple grids (RadGridView and RadTreeListView) visible at the same time in our application.  We would like for the unfocused grid(s) to have their selected cells appear unfocused.  This works when the SelectionUnit is FullRow, but doesn’t otherwise, and the EnableLostFocusSelectedState doesn’t seem to have an effect.  Is there a way to make this work with SelectionUnit=”Cell”?
Vladimir Stoyanov
Telerik team
 answered on 05 Mar 2019
3 answers
77 views

Hi,

I recently noticed some strange behaviour when using the search panel of the GridView.

In our application the AvalonDock control (Xceed) is used for the UI. Each time the user selects a program in the menu, a UserControl is opened in a new docked document of the AvalonDock control.

Now for the strange behaviour: 

  • Program A with GridViewA is launched
  • A search criteria is entered, GridViewA shows the result (so far so good)
  • Program B with GridViewB is launched.  For GridViewB the search panel is hidden by default
  • Return to the docked document containing program A => the search panel is also hidden
  • Pressing CTRL+F opens the search panel for GridViewA, but no search criteria is shown => the displayed data is limited to the search criteria,  impossible to view all records in GridViewA !!

Any help would be much appreciated !

Best Regards,
Hans

Martin Ivanov
Telerik team
 answered on 05 Mar 2019
8 answers
2.4K+ views
Hello,
We're using RadListbox to display elements of varying height. Some of them are small, some are large.
The default behaviour of the scroll mechanism seems to work based on the whole items.
For example if the user clicks with his mouse on the up or down arrow of the scrollbar (vertical one) he gets shifted by the length of the visible item. Gets shifted more for bigger items.
Also, when doing

var v = radlistboxChat.ChildrenOfType<ScrollViewer>();
foreach (var q in v)
{
   q.ScrollToBottom();
}

to programatically scroll down to the last item, often we observe that in case of larger items, the item gets positioned at the top of the RadListbox, leaving an empty space below. My guess is that it happens because the previous item is also big, and if this was to scroll to the bottom, it would show the last element at the bottom but the previous element would not fit the remaining space and would need to be displayed partially, which the listbox doesnt want to do.

We found a simple solution to the problem. We do something like this:

<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
    <telerik:RadListBox ScrollViewer.VerticalScrollBarVisibility="Disabled" >
</ScrollViewer>

This puts the listbox into a scrollviewer that works as expected. It operates on pixel lenghts rather than item height's, so the scrolling is smooth and scrolltobottom works as expected.
However, there is a very weird behaviour observed with this solution.
Populating items and refreshing the listbox becomes significantly longer. An average sized list of items refreshed in 90 ms without the additional scrollviewer, but it took 1800 ms to do the same with the scrollviewer, That's 20 times longer. Our requirements indicate that our list needs to refresh quickly, since its often refreshed.

My question to you is:
Can I make the scrollbar of the listbox behave like in our solution while and maintain it's original speed?
thanks.
Shanthosh
Top achievements
Rank 1
 answered on 05 Mar 2019
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?