Telerik Forums
UI for WPF Forum
1 answer
133 views
Hello, Telerik team!
I'm stumbled into some little UI inconveniences using RadGridView.
I use checkbox column bound to IsSelected property of my Model.
Item source of RadGRidView is of ObservableCollection<Model> class:

<controls3:RadGridView x:Name="Sports" ShowGroupPanel="False" ItemsSource="{Binding AllSports}"
    AutoGenerateColumns="False" RowIndicatorVisibility="Collapsed" CanUserSelect="False" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
    <controls3:RadGridView.Columns>
        <controls3:GridViewCheckBoxColumn DataMemberBinding="{Binding IsSelected}" Header="Chosen" ForceCursor="True" IsThreeState="False" />
        <controls3:GridViewDataColumn Width="239" DataMemberBinding="{Binding name}" Header="Name"/>
    </controls3:RadGridView.Columns>
</controls3:RadGridView>
when I want to check the checkbox, it takes three clicks to make it checked: first accordin row is selected, second click select a cell, and only on third click the box is checked.
I understand that it should be a lame problem, but nevertheless,  it would be very kinf of you if you help me!
Dimitrina
Telerik team
 answered on 08 Apr 2013
3 answers
859 views
Hello,

I am trying to two-way bind to a List<Stores> in order to pre-populate the auto suggest box and get its updated values. I tried using the following:

<telerik:RadAutoCompleteBox Name="radAutoCompleteBox1" Grid.Column="2" Grid.Row="0"
                            DataContext="{Binding DetailViewModel}"
                            SelectionMode="Multiple"
                            WatermarkContent="Type a name"
                            TextSearchMode="Contains"
                            ItemsSource="{Binding BookstoreLookup}"
                            DisplayMemberPath="ShortName"
                            TextSearchPath="ShortName"
                            AutoCompleteMode="Suggest"
                            SelectedItems="{Binding SelectedNoticeItem.Bookstores, Mode=TwoWay}"
                            />


However, I keep getting "Collection was of a fixed size" exceptions. I've tried no Mode too.

BookstoreLookup is an ObservableCollection<BookstoreModel> and SelectedNoticeItem.Bookstores is a List<BookstoreModel> (I also tried ObservableCollection).

Thanks for your help.

John
Vladi
Telerik team
 answered on 08 Apr 2013
4 answers
112 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
93 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
139 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
95 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
998 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
88 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
102 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
782 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
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?