Telerik Forums
UI for WPF Forum
6 answers
278 views
Hi,

I have 2 RadGridView's in a window both of which perform row level validation.  I am able to raise an exception" "An infinite loop appears to have resulted from cross-dependent views." when both grids are validating. 

Ive created a very basic test app and here are the steps:
  1. Top Grid.  Click "Click here to add a new item" to add a new row.
  2. Bottom Grid do the same.

     

    The Top grid will show the row as invalid. and the botton grid will have a new row
  3. Click in the bottom grid's new row (the Initial value 2 column) and it will crash

Here is the Xaml

<Window x:Class="TestMultipleRadGrids.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
         
        <telerik:RadGridView Grid.Row="0"
                             x:Name="_rad1"
                             ValidatesOnDataErrors="InEditMode"
                             ShowGroupPanel="False" 
                             AutoGenerateColumns="False"
                             CanUserReorderColumns="True"
                             CanUserInsertRows="True"
                             RowValidating="_rad1_RowValidating"
                             ShowInsertRow="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Name1" />
                <telerik:GridViewDataColumn Header="Initial Value1" DataMemberBinding="{Binding InitialValue1, Mode=TwoWay}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
 
        <telerik:RadGridView Grid.Row="1"
                             x:Name="_rad2"
                             ShowGroupPanel="False" 
                             ValidatesOnDataErrors="InEditMode"
                             AutoGenerateColumns="False"
                             CanUserReorderColumns="True"
                             CanUserInsertRows="true"
                             RowValidating="_rad2_RowValidating"
                             ShowInsertRow="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Name2"/>
                <telerik:GridViewDataColumn Header="Initial Value2" DataMemberBinding="{Binding InitialValue2, Mode=TwoWay}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>


Here is the code behind:

using System.Windows;
using Telerik.Windows.Controls;
 
namespace TestMultipleRadGrids
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void _rad1_RowValidating(object sender, Telerik.Windows.Controls.GridViewRowValidatingEventArgs e)
        {
            GridViewCellValidationResult validationResult = new GridViewCellValidationResult();
            validationResult.PropertyName = "InitialValue1";
            validationResult.ErrorMessage = "Error";
            e.ValidationResults.Add(validationResult);
            e.IsValid = false;
        }
 
        private void _rad2_RowValidating(object sender, Telerik.Windows.Controls.GridViewRowValidatingEventArgs e)
        {
            _rad1.Focus();
 
            GridViewCellValidationResult validationResult = new GridViewCellValidationResult();
            validationResult.PropertyName = "InitialValue2";
            validationResult.ErrorMessage = "Error";
            e.ValidationResults.Add(validationResult);
            e.IsValid = false;
        }
    }
}


Any help would be greatly appreciated.

Martin Ivanov
Telerik team
 answered on 17 Jul 2017
1 answer
109 views
We were looking at implementing KPI support in the WPFpivotGrid.  Is this only available when using an OLAP data source?
Polya
Telerik team
 answered on 14 Jul 2017
13 answers
961 views

I tried hosting your WPF RichTextBox in a WinForms application and the Japanese IME doesn't work properly with it. I used the Microsoft IME and the characters start repeating themselves.

 

Brian
Top achievements
Rank 1
 answered on 14 Jul 2017
1 answer
188 views

I am wanting to change the behavior of the Radial Menu Button.  Instead of opening / closing the radial menu, I'd like it to do something else. 

Is it possible to override the behavior of the central radial menu button on a radial menu?

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Jul 2017
4 answers
77 views

when I  batch delete links,  the number is 2000, I use removelink method to remove the link from UI, but the efficiency is very low, the time is 67 seconds,  if do not call the method the time is 2 seconds

why the removelink  method is so low efficiency, and is any solution the raise batch delete links efficiency?

 

thank you !

rui
Top achievements
Rank 1
 answered on 14 Jul 2017
3 answers
111 views

Is it possible to save a RadRichTextBox RadDocument with IsTrackChangesEnabled so that it can be reloaded and the changes still be visible?

I need to save the document to a database (or file system) and then load it on a different PC/user later on for review.

I presume it needs to be Exported using a FormatProvider - but can't find any documentation detailing the steps.

Thanks

Tanya
Telerik team
 answered on 13 Jul 2017
1 answer
107 views

I wonder if it's possible. Please refer below picture.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 13 Jul 2017
1 answer
377 views

Provide us the Editable WPF RadGridView GroupHeader text value example. So that we can rename the Group Header value by double click on header. Our grid view code is -

<telerik:RadGridView x:Name="Gridview"  AutoGenerateColumns="False" ShowGroupPanel="False" ValidatesOnDataErrors="None"
                                  AllowDrop="True" CanUserDeleteRows="True" CanUserInsertRows="True" CanUserSelect="True" CanUserSortGroups="True"
                             AutoExpandGroups="True" GroupRenderMode="Nested"   ItemsSource="{Binding SelectedItems}"
                         SelectionMode="Extended">
            <telerik:RadGridView.GroupHeaderTemplate>
                            <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <CheckBox x:Name="grpCheckbox" IsThreeState="True">
                            <i:Interaction.Behaviors>
                                <behaviors:GroupSelectionBehavior/>
                            </i:Interaction.Behaviors>
                        </CheckBox>
                        <TextBlock Foreground="Black"   Text="{Binding Group.Key}" FontWeight="Bold" ForceCursor="True"/>

                    </StackPanel>
            </DataTemplate>
            </telerik:RadGridView.GroupHeaderTemplate>

Dinko | Tech Support Engineer
Telerik team
 answered on 13 Jul 2017
9 answers
95 views

Dear Admin

I just have a RadGridView with two columns, and I have already set these column read-only to be 'True' , users are not allowed to do any change for these two columns' value. But if users would like to copy value in these two columns, how to implement such request? I tried to use Ctrl+C and no effct finally.

Ning
Top achievements
Rank 1
 answered on 13 Jul 2017
2 answers
122 views

I'm trying to access some metada features of the image selected by user. I'm using following code to read metadata of the image once user selects it. However, it always returns null. 

var metadata = ImageEditorUI.ImageEditor.Image.Bitmap.Metadata; 

 

Does telerik imageEditor erases all metadata when loaded?

Martin Ivanov
Telerik team
 answered on 12 Jul 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?