Telerik Forums
UI for WPF Forum
4 answers
138 views
Hello,
I have a problem with the Q1 2013 version that was not in the previous, Q3 2012 SP1. I'm using Gridview with a GroupDescriptor 
, my gridview is in a telerik tabItem, when i switch from tabitem, and I'm back on my grid I have this error :


Column cannot be null
Nom du paramètre : newColumn

Stack Trace :

à Telerik.Windows.Controls.GridView.ColumnGroupDescriptor.OnColumnChanged(GridViewColumn oldColumn, GridViewColumn newColumn)
à Telerik.Windows.Controls.GridView.ColumnGroupDescriptor.OnColumnPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
à System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
à System.Windows.Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
à System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
à System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
à System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
à System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
à System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
à System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
à MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
à MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
à MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)
à MS.Internal.Data.PropertyPathWorker.OnPropertyChanged(Object sender, PropertyChangedEventArgs e)
à System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
à System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
à System.Collections.ObjectModel.ObservableCollection`1.OnPropertyChanged(PropertyChangedEventArgs e)
à System.Collections.ObjectModel.ObservableCollection`1.ClearItems()
à Telerik.Windows.Controls.GridViewColumnCollectionInternal.ClearItems()
à System.Collections.ObjectModel.Collection`1.Clear()
à Telerik.Windows.Controls.GridView.GridViewDataControl.TotalColumnRefresh()
à Telerik.Windows.Controls.GridView.GridViewDataControl.Grid_Loaded(Object sender, RoutedEventArgs e)
à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
à System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
à System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
à System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
à MS.Internal.LoadedOrUnloadedOperation.DoWork()
à System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
à System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
à System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
à System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
à MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
à System.Windows.Threading.DispatcherOperation.InvokeImpl()
à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Windows.Threading.DispatcherOperation.Invoke()
à System.Windows.Threading.Dispatcher.ProcessQueue()
à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
à MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
à System.Windows.Threading.Dispatcher.Run()
à System.Windows.Application.RunDispatcher(Object ignore)
à System.Windows.Application.RunInternal(Window window)
à System.Windows.Application.Run(Window window)
à System.Windows.Application.Run()
à BaseCamp.App.Main() dans d:\ManagerEntrepriseVS\BaseCamp\BaseCamp\obj\Debug\App.g.cs:ligne 0

XAML Code :

<telerik:RadTabItem Header="{Binding Resource.PerSupplier}">
                              <telerik:RadGridView x:Name="QuotationDashBoardGrid"  ShowGroupPanel="true" AutoGenerateColumns="False"
                          ItemsSource="{Binding LstQuotationDashBoard, Mode=TwoWay}"  SelectedItem="{Binding SelectedQuotation, Mode=TwoWay}"
                          IsReadOnly="True" >
                                  <telerik:RadGridView.GroupDescriptors>
                                      <telerik:ColumnGroupDescriptor Column="{Binding Columns[SupplierColumn],ElementName=QuotationDashBoardGrid}"  SortDirection="Ascending" />
                                  </telerik:RadGridView.GroupDescriptors>
                                  <telerik:RadGridView.Columns>
                                      <telerik:GridViewImageColumn ImageHeight="17" ImageWidth="17"  DataMemberBinding="{Binding DiscountIndication,Converter={StaticResource QuotationToUri}}" Header="" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding CodeTarif}" Header="{Binding Resource.DiscountCode}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding FamilleLibelle}" Header="{Binding Resource.DiscountLabel}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayDiscount}"  Header="{Binding Resource.Discount}" />
                                      <telerik:GridViewDataColumn Header="{Binding Resource.Note}" DataMemberBinding="{Binding Note}"/>
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding DiscountDealName}" Header="{Binding Resource.DiscountDealName}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding  OuContractedName}" Header="{Binding Resource.OU}" />
                                      <telerik:GridViewDataColumn DataMemberBinding="{Binding RootSupplierName}" UniqueName="SupplierColumn"  Header="{Binding Resource.Supplier}" />
                                       
 
                                  </telerik:RadGridView.Columns>
                          
                              </telerik:RadGridView>
                              </telerik:RadTabItem>

Without the GroupDescriptor, there is no problem.

Thanks in advance

Vera
Telerik team
 answered on 08 Apr 2013
1 answer
127 views
I'm trying to customize my property grid.  Is there a way to access the EditorTemplate at runtime in code behind?

1) for strings that use text editors, I want to access the text changed event, so I can validate entries as the user types instead of waiting until the field loses focus.

1) to customize the editor's background color and border at runtime.
Maya
Telerik team
 answered on 08 Apr 2013
0 answers
160 views

Hello,

I have a problem with HyperlinkButton and his static method: OnRequestNavigate.

If my URI contains absolute path to file with polish diacritic characters, Process.Start throws Win32Exception (NativeErrorCode: 2).

Example file path:
@”C:\zażółć gęsią jaźń.xlsx”

After change this line:
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));

to:
Process.Start(new ProcessStartInfo(e.Uri.LocalPath));

in my case everything looks perfectly.
It's possible to change URI handling logic in this method?

Cheers,
Szymon
Szymon
Top achievements
Rank 1
 asked on 07 Apr 2013
2 answers
123 views
Is there any way to restrict the RACB to a single item?  In other words, change its behavior so that it appears like a textbox without boxing selected items?  I'm trying to use it to autocomplete a filename from the file system as the user types in a path.  It makes no sense that, when the user hits tab or enter, the filename gets boxed up with a little delete button.  
Soma
Top achievements
Rank 1
 answered on 06 Apr 2013
5 answers
1.0K+ views
Hi,
I'm using the line-chart for displaying complex data. Now, i want to put the ranges (upper and lower limit in which all data is supposed to occur) in the charts. These limits should be horizontal lines in the background (simple red lines without any points). How can i do this?
Thx
Guilherme
Top achievements
Rank 1
 answered on 05 Apr 2013
4 answers
163 views
Is there any way to stop Visual Studio from switching to Design view every time a change is made to the XAML of a RadDiagram?!? So annoying!
Terry
Top achievements
Rank 1
 answered on 05 Apr 2013
4 answers
119 views
I'm evaluating the radcontrols package and have had some problems with the RadPropertyGrid with a FlagEnumEditor.  I followed the documentation here: (http://www.telerik.com/help/wpf/radpropertygrid-radenumeditor.html).  When I run the project and click on the enum field, the FlagEnumEditor seems to be broken.  I can't just click on an option, I need to click and press spacebar.  And it also doesn't let go of the focus. If I click anywhere else on the form, even the close button, the editor just opens and closes like I'm clicking on it. I have to stop the executable to exit the program. Am I just not setting it up properly, or is this a bug?

Code I used is below:  Image is attached.

Class MainWindow
    Public Sub New()
 
        ' This call is required by the designer.
        InitializeComponent()
 
        ' Add any initialization after the InitializeComponent() call.
        RadPropertyGrid1.Item = New Employee
 
    End Sub
End Class
 
Class Employee
 
 
    Public Property Name As String
    Public Property Position As PositionType
 
    <Flags()> _
    Public Enum PositionType As Integer
        All = -1
        None = 0
        Engineer = 1
        Sales = 2
        Marketing = 4
        Management = 8
    End Enum
 
End Class

Andrew
Top achievements
Rank 1
 answered on 05 Apr 2013
16 answers
829 views
Since it is not clearly stated anywhere else, I've thought Id help another soul, and give an example how to easily use RadTileView with data binding. RadTileView implements ItemsControl and as such can be treated as one. So the code below is completely valid:

<telerikNavigation:RadTileView ItemsSource="{Binding Items}"
            <telerikNavigation:RadTileView.ItemTemplate> 
                <DataTemplate> 
                    <TextBlock Text="{Binding Name}" Style="{StaticResource HeaderTitle}"/> 
                </DataTemplate> 
            </telerikNavigation:RadTileView.ItemTemplate> 
            <telerikNavigation:RadTileView.ContentTemplate> 
                <DataTemplate> 
                    <telerik:RadFluidContentControl telerikAnimation:AnimationManager.IsAnimationEnabled="True"  
                                                SmallToNormalThreshold="291, 130" 
                                                NormalToSmallThreshold="291, 130" 
                                                NormalToLargeThreshold="730, 350" 
                                                LargeToNormalThreshold="730, 350"
                        <telerik:RadFluidContentControl.SmallContent> 
                            <Border Width="193" Height="30"
                                <TextBlock Text="Small Content" Style="{StaticResource SmallBox}"/> 
                            </Border> 
                        </telerik:RadFluidContentControl.SmallContent> 
                        <telerik:RadFluidContentControl.Content> 
                            <Border Width="279" Height="130"
                                <TextBlock Text="Content" Style="{StaticResource SmallBox}"/> 
                            </Border> 
                        </telerik:RadFluidContentControl.Content> 
                        <telerik:RadFluidContentControl.LargeContent> 
                            <Border Width="730" Height="350"
                                <TextBlock Text="Large Content" Style="{StaticResource SmallBox}"/> 
                            </Border> 
                        </telerik:RadFluidContentControl.LargeContent> 
                    </telerik:RadFluidContentControl> 
                </DataTemplate> 
            </telerikNavigation:RadTileView.ContentTemplate> 
</telerikNavigation:RadTileView> 

Alan
Top achievements
Rank 1
 answered on 05 Apr 2013
6 answers
212 views
I'm using WPF RadControls Q3 2012 with VS2012. I need to make some changes to the RadGridView templates and I hoped to use Blend for VS2012 to help me with this. Blend for VS2012 doesn't support WPF projects until Update 2, so I've installed VS2012 Update 2 CTP 4 and Blend is now working with WPF projects.

My project is using RadControls with implicit styles, to this end I have the following app.xaml.cs code behind

public App()
{
    InitializeComponent();
    SetTheme("Expression_Dark");
}
 
public void SetTheme(string themeName)
{
    Resources.MergedDictionaries.Add(new ResourceDictionary()
    {
        Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/System.Windows.xaml",
           UriKind.RelativeOrAbsolute)
    });
 
    Resources.MergedDictionaries.Add(new ResourceDictionary()
    {
        Source = new Uri("/Telerik.Windows.Themes." + themeName +
            ";component/Themes/Telerik.Windows.Controls.xaml", UriKind.RelativeOrAbsolute)
    });
 
    // ... plus more merged resources
}

And in my Window class I have

<tk:RadWindow x:Class="GridViewTesting.RadGridView.RadGridViewVw" x:ClassModifier="internal"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:tk="http://schemas.telerik.com/2008/xaml/presentation"
              xmlns:rgv="clr-namespace:GridViewTesting.RadGridView"
              Header="Telerik RadGridView Demo" Height="600" Width="500">
     
    <tk:RadWindow.Resources>
        <Style TargetType="rgv:RadGridViewVw" BasedOn="{StaticResource RadWindowStyle}"/>
    </tk:RadWindow.Resources>
 
    <!-- Controls defined here. -->
 
</tk:RadWindow>

But when I open this in Blend I get the error "The resource 'RadWindowStyle' could not be resolved."

What's causing this and what's the best way to fix it please?
Hristo
Telerik team
 answered on 05 Apr 2013
5 answers
428 views
I want to implement a tab control like IE9, place textbox and button at the right of tab items header. See the illustration.

http://res1.windows.microsoft.com/resbox/en/Internet%20Explorer/main/3/4/340ea7de-bd9e-4e59-ba6c-959fc8728199/340ea7de-bd9e-4e59-ba6c-959fc8728199.jpg
Steven
Top achievements
Rank 1
 answered on 05 Apr 2013
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?