Telerik Forums
UI for WPF Forum
1 answer
155 views
I need to alter the default validation error styles in the RadGridView.  Errors are generated via INotifyDataErrorInfo

One of the main changes is to remove the "reddish" background that is shown on the row when an error exists in one of the columns.

I have been trying to follow the instructions for styling a row here: http://www.telerik.com/help/wpf/gridview-styling-a-row.html

The instructions indicate one should be able to go to Object -> Edit Additional Styles -> Edit Row Style -> Edit a copy...

However, the only option I have is "Create Empty..." so am unsure as to what the original style looks like so it is difficult to alter.  The instructions indicate I should be able to "Edit a copy..." which would give me the style properties I need.

Is there something I'm missing?

Here is a quick example of the XAML being used:

<Window x:Class="TelerikGridTest.MainWindow"
        xmlns:telerikGridTest="clr-namespace:TelerikGridTest"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525" d:DataContext="{d:DesignInstance telerikGridTest:ViewModel}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Transparent;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <telerik:RadGridView ItemsSource="{Binding Rows}" ActionOnLostFocus="None" GroupRenderMode="Flat" AutoGenerateColumns="False" CanUserInsertRows="True" NewRowPosition="Bottom" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Column One" DataMemberBinding="{Binding ColumnOne, UpdateSourceTrigger=PropertyChanged}" />
                <telerik:GridViewDataColumn Header="Column Two" DataMemberBinding="{Binding ColumnTwo, UpdateSourceTrigger=PropertyChanged}"/>
                <telerik:GridViewDataColumn Header="Column Three" DataMemberBinding="{Binding ColumnThree, UpdateSourceTrigger=PropertyChanged}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

Yoan
Telerik team
 answered on 17 Jul 2014
4 answers
90 views
Hi,

I see that snap mode has three options; None, AllClosePoints, ClosestPoint. However I was wondering if it is possible to snap to a given series only? For example series 1 has 300 data points but series 2 only has 100 (both can be plotted on the same chart). I would like the TrackBallInfo to only snap to data points in series 2 (but show data for 1 and 2)

Thanks for your help!
James
Top achievements
Rank 1
 answered on 17 Jul 2014
1 answer
1.1K+ views
Hi,
I am using telerik RadGridview 2013 Q3.  We have a N-Tier app, so I am saving the record per row instead of per cell.  I have a requirement from the business user mandating a confirmation dialog to be shown asking if the user wants to save the data when the user navigates away from the current editing row.  I tried to show the confirmation dialog at the roweditended event, but when the user clicks on No, the row's edit mode is still being ended. I don't want the edit mode to end when the user does not want to save the row and I want the focus to stay on the current editing cell.

The way I think this might  work is that if we can somehow stop the roweditended event chain in code, I tried to call e.Handled = true, but that doesn't do anything, the row is still being edit ended.
A workaround I found is that If I move the confirmation dialog code to the rowvalidating event and set the IsValid to false to stop the row edit ended event being fired, however this causes an undesired side effect of the row turning to red, I have consulted with the business users, and they feel like it's too confusing to have the background turn red when there's no validation error.
My question would be, how does telerik cancel the row level editing event without setting the IsValid to false?
Boris
Telerik team
 answered on 17 Jul 2014
1 answer
184 views
I was testing out this panel but found that it does not support item container recycling. E.g., if I set:

VirtualizingPanel.VirtualizationMode="Recycling"

Item containers are still created new each and every time. Are there any plans to support this feature? WPF's default VirtualizingStackPanel supports it OOTB, so I was expecting it here as well.
Ivan Ivanov
Telerik team
 answered on 17 Jul 2014
1 answer
120 views
Is it possible to disable tile reordering (by the user), without disabling the entire TileList control?
Maya
Telerik team
 answered on 17 Jul 2014
7 answers
342 views
Hi,
I'm working on a WPF desktop application using RadControls for WPF version 2010.1.0603.35.
I have a number of ListView and RadTreeView controls that are Drag and Drop enabled. They also have a RadContextMenu. The problem I have is when I right click on an item then immediately left click the same or another item in the control. This seems to enable drag and drop and sometimes move items around. In order to reproduce this I used the Demo solution installed with the Telerik product. I took the DragAndDrop TreeToGrid example and I added a RadContextMenu to the ListBox and the RadTreeView as shown below.
<nav:RadTreeView x:Name="allProductsView" 
        ItemTemplateSelector="{StaticResource ExampleTemplateSelector}" 
        ItemContainerStyle="{StaticResource TreeViewItemStyle}" 
        IsDragDropEnabled="True" Background="White" BorderThickness="1" 
        BorderBrush="LightGray"   
        Padding="16">  
    <telerikNavigation:RadContextMenu.ContextMenu> 
        <telerikNavigation:RadContextMenu > 
            <telerikNavigation:RadMenuItem Header="RadTreeView Menu 1" /> 
            <telerikNavigation:RadMenuItem Header="RadTreeView Menu 2"  /> 
        </telerikNavigation:RadContextMenu> 
    </telerikNavigation:RadContextMenu.ContextMenu> 
</nav:RadTreeView> 
 
<ListBox x:Name="wishlistView" Grid.Column="2" 
        telerik:StyleManager.Theme="Office_Black" SelectionMode="Extended" 
        dragDrop:RadDragAndDropManager.AllowDrop="True" 
        ItemTemplate="{StaticResource WishlistProduct}" 
        ItemContainerStyle="{StaticResource WishlistItemStyle}" Padding="16" > 
    <telerikNavigation:RadContextMenu.ContextMenu> 
        <telerikNavigation:RadContextMenu > 
            <telerikNavigation:RadMenuItem Header="ListBox Menu 1" /> 
            <telerikNavigation:RadMenuItem Header="ListBox Menu 2"  /> 
        </telerikNavigation:RadContextMenu> 
    </telerikNavigation:RadContextMenu.ContextMenu> 
</ListBox> 
Using this example you can right-click on any item under Wishlist and then immediately left-click on a different item under the same control. The items will most likely shuffle around. In any case (on the RadTreeView also) it will enable the drag and drop event and that is not desirable functionality for me.

Your help is very much appreciated.

Thank you,
Ogi Ivanov

Martin Ivanov
Telerik team
 answered on 17 Jul 2014
2 answers
58 views
Good day.
I need to catch changes Expanded and under certain conditions, to cancel this action.
I tried to implement this by using event GroupRowIsExpandedChanging, but property args.Row.IsExpanded has changed.
Help me, please :(
Alexandr
Top achievements
Rank 1
 answered on 17 Jul 2014
2 answers
80 views
Hello,
im using Telerik version 2013.3.1016.40,
i have problem on displaying Text on Windows XP or Server 2003 ,
on attached screenshot: the line 2 is not perfectly visible 
Envirenment :
- Windows XP
- WPF 4.0
- MVVM technologie

the same Code is working perfect on Windows 7.

please Help,
thank you 
Svetoslav
Telerik team
 answered on 17 Jul 2014
1 answer
83 views
Hello,
i have problem on displaying document on Windows XP/ Windows 2003 Server
the same Code working perfectly on Windows 7 
 on attached screenshot the second line is not complet displayed 
Envirenment:
-OS: Windows XP
-.Net 4.0
-Telerik version 2013.3.1016.40
- Technologie : MVVM

please Help.
thank you 
Svetoslav
Telerik team
 answered on 17 Jul 2014
4 answers
222 views
I can't figure out how to attach a RadContextMenu to a RadDiagramConnection.  Any help would be great.

Thanks,
Donovan
donovan
Top achievements
Rank 1
 answered on 17 Jul 2014
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
SplashScreen
Rating
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
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?