Telerik Forums
UI for WPF Forum
0 answers
142 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
282 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
274 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
274 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
174 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
81 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.5K+ 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
2 answers
179 views

Good day.

National characters in RadPasswordBox are displayed as a 
question mark, if the password is inserted through the clipboard.

This behavior is not observed in either RadWatermarkTextBox or PasswordBox.

Please tell me how to solve this problem.

Below is a link to the project and files.
https://drive.google.com/open?id=1fnNaE2Gs0SLVfnf2jvBHpyL4pJLhlF9i

Regards,
Denis

Kalin
Telerik team
 answered on 04 Mar 2019
2 answers
703 views

Hello

I'm using RadGridView and try to handle the MouseDoubleClick-Event. My problem is to get the RadGridCell the user has double-clicked on.

Can you help me with this?

Thanks!

Best regards

Tobias

 

 

Tobias
Top achievements
Rank 1
 answered on 04 Mar 2019
0 answers
217 views

Hey. I use RadTileView and this is a great solution. Could you tell me how I can adjust the vertical Tiles distribution instead of the horizontal one? And how can I set margin=0 for Tiles?

01.<telerik:RadTileView x:Name="tile" RowHeight="*" ColumnWidth="*"  ItemsSource="{Binding Path=PictureCollection}" SelectedItem="{Binding Path=SelectedPicture}"  Grid.Column="2" Grid.RowSpan="3" IsAutoScrollingEnabled="True" >
02. 
03.           <telerik:RadTileView.Style>
04.               <Style TargetType="{x:Type telerik:RadTileView}">
05.                   <Setter Property="Margin"
06.                    Value="0"/>
07.               </Style>
08.           </telerik:RadTileView.Style>
09. 
10.           <telerik:RadTileView.ItemContainerStyle>
11.               <Style TargetType="{x:Type telerik:RadTileViewItem}">
12.                   <Setter Property="Margin"
13.                    Value="0"/>
14.               </Style>
15.           </telerik:RadTileView.ItemContainerStyle>
16. 
17. 
18.           <telerik:RadTileView.ItemTemplate>
19.               <DataTemplate>
20.                   <TextBlock Text="{Binding Path=Name}" FontSize="14" FontWeight="Bold"/>
21.               </DataTemplate>
22.           </telerik:RadTileView.ItemTemplate>
23. 
24.           <telerik:RadTileView.ContentTemplate>
25.               <DataTemplate>
26.                   <Grid Margin="0">
27.                           <Grid.RowDefinitions>
28.                               <RowDefinition Height="4*" x:Name="Row1"/>
29.                               <RowDefinition Height="*" x:Name="Row2"/>
30.                           </Grid.RowDefinitions>
31. 
32.                           <Border Background="Black" Margin="0" Grid.Row="0" >
33.                               <Grid>
34.                               <local2:ZoomBorder  ClipToBounds="True"  x:Name="BorderName">
35.                                       <Grid>
36.                                           <Image  x:Name="ImageTop" Source="{Binding Path=Image}"  />
37.                                       <Button Command="{Binding RelativeSource={RelativeSource AncestorType=Controls:MetroWindow, Mode=FindAncestor}, Path=DataContext.FullScreenCommand}" CommandParameter="{Binding Path=Name}" HorizontalAlignment="Right" VerticalAlignment="Top" Width="50" Height="50" Style="{DynamicResource MetroCircleButtonStyle}" Background="{DynamicResource AccentColorBrush}" ToolTip="{x:Static res:Resources.FullScreen}" Opacity="0.7" Margin="0,20,20,0">
38.                                               <Rectangle Fill="{DynamicResource BlackColorBrush}" Width="20" Height="20">
39.                                                   <Rectangle.OpacityMask>
40.                                                       <VisualBrush Visual="{StaticResource appbar_vector_group}" Stretch="Fill"/>
41.                                                   </Rectangle.OpacityMask>
42.                                               </Rectangle>
43.                                           </Button>
44.                                       </Grid>
45.                                   </local2:ZoomBorder>
46.                               </Grid>
47.                           </Border>
48.                       <Controls:Tile  Margin="0"  Content="{x:Static res:Resources.Capture_Image}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType=Controls:MetroWindow, Mode=FindAncestor}, Path=DataContext.WebCamCaptureCommand}" CommandParameter="{Binding  Path=Name}" Grid.Row="1"  Height="{Binding ElementName=Row1, Path=Height}"   Width="{Binding ElementName=BorderName, Path=Width}" FontWeight="Bold" FontSize="14"/>
49.                       </Grid>
50. 
51.               </DataTemplate>
52.           </telerik:RadTileView.ContentTemplate>
53.       </telerik:RadTileView>


Svyatoslav
Top achievements
Rank 1
 asked on 03 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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?