Telerik Forums
UI for WPF Forum
8 answers
810 views
Hi,

I've run into an interesting/bad behavior of the RadGridView:

I have a RadGridView (with CanUserDeleteRows="True" ) that I can change the ItemsSource based on a ComboBox.  
Initially, I am able to delete rows.  However, after I switch the ItemsSource, I am unable to delete rows *unless I first put the grid manually into edit mode and back again*.   My desired behavior is for the grid to behave the same regardless of whether or not the grid's ItemsSource has changed.

I have tried to attach an example of this behavior to this message, but I get an error message saying:

"The selected file(s) cannot be attached because it may exceed the maximum attachment size (2 MB) or is from not allowed type (allowed: .gif, .jpg, .jpeg, .png)."

The file I'm attempting to upload ends with .zip and is 8.45kb in size....

Please let me know:
1) How do I attach a 8.45kb .zip file?
2) How do I get the behavior I require from the RadGridView?

Thanks,
Dustin
Stefan
Telerik team
 answered on 20 Oct 2015
1 answer
65 views
I have a RadGridView with a GridViewComboBoxColumn. I have disabled some items based on a property, but tehey still show on text search.
Stefan
Telerik team
 answered on 20 Oct 2015
1 answer
151 views

Hello

I am using the radgridview and when adding a row I receive sometimes the following error message:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.<ShowInsertRowIfNeeded>b__3f(FrameworkElement f)
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass84.<CallbackAction>b__83(FrameworkElement f)
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.FlatLayoutStrategy.<>c__DisplayClassfa.<ScrollRowIndexIntoView>b__f5()
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
   bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Windows.Threading.DispatcherOperation.Invoke()
   bei System.Windows.Threading.Dispatcher.ProcessQueue()
   bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   bei System.Windows.Window.ShowHelper(Object booleanBox)
   bei System.Windows.Window.Show()
   bei System.Windows.Window.ShowDialog()
   bei Telerik.Windows.Controls.InternalWindow.WindowWithNoChromeWindowHost.Open(Boolean isModal)
   bei Telerik.Windows.Controls.WindowBase.ShowWindow(Boolean isModal)...


Do you know what the source of this error message is? And even better how can I solve this or find a solution without this error message?

Note - we have been able to narrow it down to the following scenarios (at current time):
- the error occurs if I add very quickly in succession new rows to the grid
- the error occurs if the computer hard drive is maxed out and I add rows normally (not fast)

 

Sincerly,

Kasar

Stefan
Telerik team
 answered on 20 Oct 2015
3 answers
199 views

We are using the RadSpreadsheet in one of our projects. Some of the cells will contain data that can be elaborated on. We are styling those cells to look like they contain hyperlinks and when the user clicks on the cell, an additional view is spawned with more information.

 What we have not been able to acheive is changing the cursor value to 'Hand' to be more consitent with the hyperlink paradigm.

 

Any help is much appreciated.

Anna
Telerik team
 answered on 19 Oct 2015
4 answers
1.0K+ views

It's a simple one....

 

How can I Programmatically insert a Hyperlink into a cell?

 

Thanks.​

Anna
Telerik team
 answered on 19 Oct 2015
4 answers
264 views
Hi,
I'm using RadChartView and dynamically change font size of Axis title at runtime. But RadChartView doesn't rerender itself. The same problem appears when the font size of axis label is changed.
Could you give me some advice how to ensure that RadChartView will be rerendered in these situations?
Peter
Top achievements
Rank 1
 answered on 19 Oct 2015
3 answers
331 views
Hello,

Is there a proterty in RadGridView (Q2 2015) wich allow the user to resize the column automatically when he ​double click on the splitter of column header  ?

Thanks in advance.
Geoffrey
Stefan
Telerik team
 answered on 19 Oct 2015
2 answers
158 views

when i was try RadImageEditor  use MultiBinding , RadImageEditor  was not work .

but when i was use .net Image Control. the .net image control was ok.

The same MultiBinding  code in Different Control(Telerik RadImageEditor and .net Image Control)

but just .net original Image Control was ok.

 

sorry My engilsh,

Please Help!

Thanks!

u can view the Attach files

Todor
Telerik team
 answered on 19 Oct 2015
1 answer
135 views

Hi,

I'm experiencing a weird issue with grouping in the grid. The grid is bound to a QueryableCollectionView for which I programatically set one GroupDescriptor and one SortDescriptor. The problem is that, when the view is loaded (it's a UserControl) sometimes neither the grouping nor the sorting are applied. 

The order in code (if it matters) is:

1. Set the Items property (to which the grid is bound) to a QueryableCollectionView, which raises a PropertyChanged event.

2. Add a GroupDescriptor to the QueryableCollectionView

3. Add a SortDescriptor to the QueryableCollectionView

I also tried raising PropertyChanged after the steps, the same random behavior of it not working persists.

Any idea what I'm doing wrong?

Stefan Nenchev
Telerik team
 answered on 19 Oct 2015
3 answers
202 views

An example: I have a NumericScale with a single NumericIndicator. I add 5 HexagonalNumberPosition instances to the indicator because I want to display the number "66.00". (Note: I have tried this with NumericIndicator.Format set to "F2" and ".00;.00;0" both - using the formatting described in the docs, not those exact strings). When English is the current cutlure, the gauge displays "66.00". When Spanish is the current culture, the gauge still displays "66.00". I would expect the decimal place to change with the culture. In this case is should be a comma. After peeking at the code in NumberTemplateSelector.SelectTemplate(), I created classes derived from HexagonalNumberPosition and NumberTemplateSelector just so I could break in NumberTemplateSelector.SelectTemplate(). The code (from Just Decompile) for SelectTemplate shows that a DataTemplate for each hex character is found by concatenating the digit (or symbol) passed in with ""HexagonalSevenSegs".  So, the digit "7" would result in the template with the key of "HexagonalSevenSegs7" being used. (The DataTemplates being located in the Telerik.Windows.Controls.DataVisualization.xaml" file). The problem seems to be that when Spanish is the current culture, the "." is still passed into SelectTemplate() for the decimal point. Even though there is a DataTemplate for the comma character, it is never utilized for the decimal point.  So, is the NumericIndicator ​supposed to display numbers using the current culture or a specific culture? Is it a bug that it is not doing so, or is this by design?

 

Thanks - Mitch

Mitchell
Top achievements
Rank 1
 answered on 16 Oct 2015
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?