Telerik Forums
UI for WPF Forum
1 answer
89 views

I am tracking changes on a WPF RadRichtextBox so that I can see what changes a user has made, so that they can be approved by a supervisor later on. I don't want the first user to see the change tracking. 

Is there a way that I can remove the ability for that user to accept their own changes. Currently they can change the document, accept the change and there is no indication that they have changed anything.

I'm also looking to remove the visual indications of changes to the basic user. I have set Insert.Decoration = None and same for Delete.Decoration. But I am still getting tooltips with the revision details when the mouse is over the change.

Thanks

Tanya
Telerik team
 answered on 25 Oct 2017
1 answer
62 views

Hello,

I have an unexpected behavior with the TileView.

The behavior occurs when MinimizedItemsPosition is Top or Bottom. Maximizing the first item is all okay. If you maximize another item, one minimized item is no longer displayed. You can understand this in your WPF demos (TileView Examples, Docking) and the pictures.

Martin Ivanov
Telerik team
 answered on 24 Oct 2017
1 answer
119 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
141 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
151 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
187 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
448 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
127 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
346 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
83 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
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?