Telerik Forums
UI for WPF Forum
1 answer
143 views

Hi

I am using ChartView for visualizing some data.

The data is a list of doubles and strings. The string is a category and the double is a value.

The data is shown as points – and it works fine (see attached image)

Vertical axis is a LinearAxis.
Horizontal axis is a CategoricalAxis.
The series is a PointSeries.

I now want to use the trackball feature to highlight the point closest to the mouse. I have used this feature before on non-categorical axis and it worked fine. But in this case only one point for each category gets highlighted. The point highlightet is always the first point in the list in each category.

Do you have any idea what is wrong?

/Flemming Rosenbrandt


Martin Ivanov
Telerik team
 answered on 24 Oct 2017
0 answers
166 views
Not sure if this belong here or in the RadListBox-forum. But anyway...

I've got a RadListBox bound to an ObservableCollection with 2000 items. The items are displayed using a DataTemplate with an Image and a TextBlock. I've also implemented filtering of the items using a regular TextBox together with an IsVisible-property on the items. When entering text in the TextBox I hide all the items not matching the searchstring. Filtering works great, but I've noticed severe performance hits when running this on laptops with touch-screens (Windows 10). It works reasonably well when hiding items, but when clearing my filter (i.e. setting a lot of items to be visible again) it's really slow. I have set the TouchManager.IsTouchEnabled to false, and the AutomationManager.AutomationMode is disabled. It doesn't matter if i turn on or off the VirtualizingPanel.IsVirtualizing on the RadListBox. The only thing that I've found to work is by opening the device manager and disable the touchscreen-HID device, so I'm fairly certain that the performance hit is due to the touch-functionality.
Magnus
Top achievements
Rank 1
 asked on 24 Oct 2017
2 answers
179 views

I have a class inheriting from RadWindow called ColorEditor expected to be shown by the following code from within a response to a color picker face click from another RadWindow:

private void EditFaceColor_Click(object sender, RoutedEventArgs e) {     
    var source = sender as FrameworkElement;     
    var font = DataContext as FontModel;     
    if (font == null) return;     
    var colorEditor = new ColorEditor     
    {         
         Alpha = false,
        InitialColor = Color.FromArgb(font.Face.Color.A, font.Face.Color.R, font.Face.Color.G, font.Face.Color.B)     
    };     
    var initialColor = font.Face.Color;     
    colorEditor.DataContext = font.Face;     
    if (source != null)     
    {         
        var loc = source.PointToScreen(new Point(0, 0));         
        colorEditor.Left = loc.X;         
        colorEditor.Top = loc.Y;     
    }     
    colorEditor.Owner = this;     
    colorEditor.ShowDialog();     
    if (colorEditor.DialogResult != true)     
    {         
        font.Face.Color = initialColor;     
    }
}

But the window does not show and freezes the entire application.

It also doesn't show up by calling Show(); or by trying to bring it to the front after showing.

After inserting some breakpoints in  OnActivate and OnDeactivate methods in ColorEditor, I noticed that the color editor gets stuck in a loop of OnActivate, immediately followed by OnDeactivate, then a pause, then OnActivate, followed by an immediate OnDeactivate again. 

Does anyone know what might be happening here?
Thank you!

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Oct 2017
3 answers
203 views

Hello,

 

I'm defining some shapes for the raddiagram and I can see that at design time however when I set the connectors I can only see them at run time.  So it's a pain to see where the connectors will end up by having to compile and run every time.  I don't mind even doing it at run time if I can edit the live xaml but that is not showing up.  A sample project would be great!  

 

Thanks,

Amiel

Vladimir Stoyanov
Telerik team
 answered on 23 Oct 2017
3 answers
475 views

Hello!

We want to design RadGridView with nested ColumnGroups, as in example. But they are rendering not as expected (see unexpected.png). As expected in expected.png. How we can get it? Thanks for support

<telerik:RadGridView>
    <telerik:RadGridView.ColumnGroups >
        <telerik:GridViewColumnGroup Name="Level1group0" >
            <telerik:GridViewColumnGroup.ChildGroups>
                <telerik:GridViewColumnGroup Name="Level1group11">
                    <telerik:GridViewColumnGroup.ChildGroups>
                        <telerik:GridViewColumnGroup Name="Level2group11"/>
                        <telerik:GridViewColumnGroup Name="Level2group12"/>
                    </telerik:GridViewColumnGroup.ChildGroups>
                </telerik:GridViewColumnGroup>
                <telerik:GridViewColumnGroup Name="Level1group12"/>
            </telerik:GridViewColumnGroup.ChildGroups>
        </telerik:GridViewColumnGroup>
 
    </telerik:RadGridView.ColumnGroups>
 
 
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn ColumnGroupName="Level1group11" Width="200" Header="Column1"/>
        <telerik:GridViewDataColumn ColumnGroupName="Level1group12" Width="200" Header="Column2"/>
        <telerik:GridViewDataColumn ColumnGroupName="Level2group11" Width="200" Header="Column3"/>
        <telerik:GridViewDataColumn ColumnGroupName="Level2group12" Width="200" Header="Column4"/>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
Stefan
Telerik team
 answered on 20 Oct 2017
3 answers
145 views

Is it possible to set the Datafield labels horizontal position when the columns are auto generated in code?  The look of left justified labels is not the best look for my customers application.  It seems odd that there is not simple property that could be set to achieve this in the AutoGeneratingField event.

Some labels are large and some are small and make it difficult on the eyes to follow a small label so far from it's associated control.

Thank you...

Stefan
Telerik team
 answered on 20 Oct 2017
10 answers
377 views
We want to allow user to drag and drop to show/hide columns from a column chooser listbox. I am following the example code in http://www.telerik.com/help/wpf/radgridview-how-to-show-hide-columns-outside-of-the-radgridview.html.  We want to allow user to be able to drag a column from the list box and drop it in the column header of the grid. So it will be easy for user to design their grid columns layout.  Is there an example to do that?
Martin Ivanov
Telerik team
 answered on 20 Oct 2017
1 answer
98 views

Hi,

i have a radgridview on my wpf app. This grids itemssouce is bound to a List of objects in my ViewModel (MVVM).

When i click on a Button a new element is added to the bound list. This creates a new Row in my DataGrid like expected.

Question:
i want to focus the last cell in the new row after the new row was added.

I already have the correct way of doing this (see snippet below) but i dont know WHEN i should execute this code. When the bound items are changed its too early to do this and i cant use events like "LayoutUpdated" because it triggers too often.

Is there any possibility to launch this code AFTER the GridViewRow was Added?

private void OnInitializedGridViewCommand(RadGridView obj)
        {
            obj.Items.CollectionChanged += (sender, e) =>
            {
                var grid = obj as RadGridView;
                var rows = obj.ChildrenOfType<GridViewRow>().ToList();
                if (rows.Count < 1) return;
                var cells = rows[rows.Count - 1].ChildrenOfType<GridViewCell>().ToList();
                var box = cells[cells.Count - 1].ChildrenOfType<RadComboBox>();
                box.First().Focus();
            };
        }
Vladimir Stoyanov
Telerik team
 answered on 19 Oct 2017
5 answers
156 views

Hi~

I want to show RadialMenu over TileViewItem.

TileViewItem hide RadialMenu.

Here is example code.

<Window x:Class="TileView.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:tileView="clr-namespace:Telerik.Windows.Controls.TileView;assembly=Telerik.Windows.Controls.Navigation"
                Title="MainWindow" Height="350" Width="525">

    <Window.Resources>
        <Style TargetType="telerik:RadTileView">
            <Setter Property="PreservePositionWhenMaximized" Value="True" />
            <Setter Property="telerik:TileViewPanel.IsVirtualized" Value="True" />
            <Setter Property="IsAutoScrollingEnabled" Value="True" />
            <Setter Property="TileStateChangeTrigger" Value="SingleClick" />
            <Setter Property="MinimizedColumnWidth" Value="180" />
            <Setter Property="MinimizedRowHeight" Value="155" />
            <Setter Property="RowHeight" Value="250" />
            <Setter Property="ColumnWidth" Value="250" />
            <Setter Property="ColumnsCount" Value="3" />
        </Style>
        <Style TargetType="telerik:RadTileViewItem">
            <Setter Property="Background" Value="#eaeaea" />
        </Style>
        <DataTemplate x:Key="sizeTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Item" />
                <TextBlock Text="{Binding}" />
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="contentTemplate">
            <StackPanel>
                <telerik:RadRadialMenu Panel.ZIndex="99999">
                    <telerik:RadRadialMenuItem Header="Item 1" />
                    <telerik:RadRadialMenuItem Header="Item 2" />
                    <telerik:RadRadialMenuItem Header="Item 3" />
                </telerik:RadRadialMenu>
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    
    <Grid>
       
        <telerik:RadTileView  ItemsSource="{Binding}" ItemTemplate="{StaticResource sizeTemplate}"
                              ContentTemplate="{StaticResource contentTemplate}"  />
    </Grid>
</Window>

You can see capture file "Actual.png"

I want to "Expect.png" screen.

How?

Russell
Top achievements
Rank 1
 answered on 19 Oct 2017
2 answers
271 views

I have a major issue with checkbox columns in the RadGridView for WPF.  I tried using both Green Theme and the Expression Dark.  I prefer the Green theme but here is my problem:

When the pointer is still in the focus of the cell right after clicking all is good.  The checkbox appears as white on green and is obviously checked.

When the pointer loses focus witht he checkbox cell, the checkbox appears as white on white.  NO GOOD!  How do I fix this?

When you put the focus on a new row, all looks fine as the checkbox appears White on Black.

I tried setting  EnableLostFocusSelectedState="False" on the Grid as I read in another similar post that this might fix the issue, but it does not.  

I really hope the answer is not to modify the default themes as the whole reason we bought this package was to make life easier.  Not more difficult.  It is totally illogical to show white on white for a default theme for a checkbox because it defeats the purpose of a checkbox.

Thank you...

 

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Oct 2017
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
DataPager
PersistenceFramework
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?