Telerik Forums
UI for WPF Forum
2 answers
153 views

Hello all,

First of all, I have done some searching on the Telerik forums (and using Google) to find my desired behavior, but I haven't been able to find quite what I'm looking for.  If there is another post or how-to that I missed, please direct me there.

I am working with the WPF GridView control, and want to duplicate the behavior of the current WPF Toolkit DataGrid, with regards to editing.  When you are focused on a cell (in the WPF DataGrid), you can immediately start typing, and the input cell will switch to edit mode and record that first key stroke, and continue in edit mode.  (Think Microsoft Excel as another example.)  I have been playing with the RadControls WPF Demo App, and cannot find any example that behaves in this fashion.  Speed of data entry is a prime consideration for our users, and most will be using a tablet pc, so the act of double-clicking to change to edit mode makes for an inconvenient extra step.

Hopefully my description is clear...  any help is greatly appreciated.
Thanks!
-Matt.
Matt
Top achievements
Rank 1
 answered on 20 Oct 2010
1 answer
121 views
Hello,

i have some unsteady and non-reproducible XamlParseExceptions in the context of telerik RadGridView. These exceptions are caused by a denied access to  tmp-files in the users temp-dir (eg: "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp").
The files content is binary (maybe some BAML?).  The user is logged in as a normal user (not as administrator).
We are developing a desktop application using the RadGridView for WPF (2009.2) with .NET3.5 and Windows 7.


System.Windows.Markup.XamlParseException: Die in der Assembly "Telerik.Windows.Controls.GridView, Version=2009.2.813.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" definierte Instanz von "FrozenColumnsSplitter" kann nicht erstellt werden. Ein Aufrufziel hat einen Ausnahmefehler verursacht.  Fehler in Objekt "PART_FrozenGridViewCellsPanel" in Markupdatei "Telerik.Windows.Controls.GridView;component/themes/office/black/DataCellsPresenter.xaml". ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp" wurde verweigert.
   bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bei System.IO.File.Delete(String path)
   bei System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
   bei System.Windows.Input.Cursor..ctor(Stream cursorStream)
   bei Telerik.Windows.Controls.GridView.GridViewCursors.get_RefreezeCursor()
   bei Telerik.Windows.Controls.GridView.FrozenColumnsSplitter..ctor()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
   bei System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)


Does anyone have any ideas whats happening here and how to avoid it?

thanks
tim
Milan
Telerik team
 answered on 20 Oct 2010
2 answers
51 views
I wish to capture the selection changed event for DateTimePicker. But the event is triggered when I select the date and yet to select the time, how to make sure that the event is triggered only after I select both date and time?
Kaloyan
Telerik team
 answered on 20 Oct 2010
5 answers
174 views
Hi,
I need to add a button to my treeviewitems in code behind (c#).
I don't find any "How to ", can you please help me?

Regards.
/Rodolfo
Alex Fidanov
Telerik team
 answered on 20 Oct 2010
4 answers
436 views
In code, I am attempting to execute the following pseudo code:

On left mouse up 
{
   (If the item clicked is an image) and
   (matches Carosel.FindCaroselPanel().TopComtainer)
   {
      Show image preview overlay.  // This is not a thumbnail as is inside the carousel. It's a bigger image.
   }
}

I'm fairly certain I'll get this working, but I'm wondering if I'm just missing some functionality that the carousel has.  Seems like this would be a common use for it.
Milan
Telerik team
 answered on 20 Oct 2010
1 answer
696 views
Programmatically, if I put text with new line characters in it into a cell, it automatically increases the height and displays the text correctly. The question is, when I'm using the control, how do I type the newline characters in from the keyboard. Enter takes you to the next cell.
I've tried Alt-Enter (like Excel), Ctrl-Enter and Shift-Enter but I can't seem to insert newlines into the text.

Do I need to set a property to enable this sort of behavior?
Vanya Pavlova
Telerik team
 answered on 20 Oct 2010
3 answers
193 views
Hi,

Having a

<

 

 

telerik:GridViewDataColumn Header="Cost(USD)" DataMemberBinding="{Binding Path=TotalCost, StringFormat=\{0:c\}, ConverterCulture=en-US}"/>

 

gives me the currency in my locale (kr) and not  ($.)

Is this not supported ?.

Best

Ole
Nedyalko Nikolov
Telerik team
 answered on 20 Oct 2010
1 answer
126 views
Hi,

I am trying to set a global header style, but an exception is thrown when I use the following xaml.

<Style TargetType="{x:Type telerik:GridViewHeaderCell}">            
       <Setter Property="Padding" Value="5,0,5,0" />            
</Style>

If I give the style an x:Key="headerCellStyle", and set HeaderCellStyle="{StaticResource headerCellStyle}" , no exception occurs.
I'm using the .net 4 assemblies.

ex.ToString() "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Telerik.Windows.Controls.StyleManager.GetTheme(DependencyObject element)\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PrepareHeaderCellStyle()\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnNotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.PropertyChangedCallback.Invoke(DependencyObject d, DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)\r\n   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)\r\n   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)\r\n   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PrepareHeaderCellStyle()\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnNotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.PropertyChangedCallback.Invoke(DependencyObject d, DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)\r\n   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)\r\n   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)\r\n   at System.Windows.FrameworkElement.UpdateStyleProperty()\r\n   at System.Windows.FrameworkElement.OnInitialized(EventArgs e)\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnInitialized(EventArgs e)\r\n   at System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent)\r\n   at System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent)\r\n   at System.Windows.Media.VisualCollection.Add(Visual visual)\r\n   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)\r\n   at System.Windows.Controls.VirtualizingPanel.AddInternalChild(UIElement child)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.InsertContainer(Int32 childIndex, UIElement container, Boolean isRecycled)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.InsertNewContainer(Int32 childIndex, UIElement container)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.AddContainerFromGenerator(Int32 childIndex, UIElement child, Boolean newlyRealized)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GenerateChild(IItemContainerGenerator generator, Size constraint, GridViewColumn column, Int32& childIndex, Size& childSize)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.EnsureColumnHeader(Int32 i, IItemContainerGenerator generator, Size constraint, GridViewColumn column, Size& childSize, List`1 realizedColumnIndices, List`1 realizedColumnDisplayIndices)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.EnsureAtleastOneHeader(IItemContainerGenerator generator, Size constraint, List`1 realizedColumnIndices, List`1 realizedColumnDisplayIndices)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.DetermineRealizedColumnsBlockList(Size constraint)\r\n   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size constraint)\r\n   at Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride(Size availableSize)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)\r\n   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.ContextLayoutManager.UpdateLayout()\r\n   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)\r\n   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()\r\n   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)\r\n   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)"
Vanya Pavlova
Telerik team
 answered on 20 Oct 2010
1 answer
106 views
Hello,

We have a requirement to have a hierarchy grid with the below features 

1) editable.
2) when user edit the data then the summary totals (2-3 rows should be on top of a header for each level) should reflect on the fly.
3) should able to handle around 400 columns with huge number of rows.

do you see any limitations with the WPF GridView?? also can we consider SilverLight control and is it tough enough to handle this?? of is there any better approach?

Please let us know if there any sample code or demo is already out there.

Thanks,
Suman
Vlad
Telerik team
 answered on 20 Oct 2010
3 answers
115 views

I have a radgrid that takes about a second to scroll from page to page.  This is without a page control.  Only a 150 records, which are already in the grid, I am not experiencing a delay from the database.

What the problem seems to be is when I add custom columns.  The last column I added was a custom column that had a radrating control in it.  This made paging 200% worse. 

Should I not use the RadRating control in a grid? 

Is there a setting to make the perfromance better?

Maybe I am make the column in the grid wrong?

At this time, I am most likely going to remove the column as the users are complaining.

<telerik:GridViewDataColumn  DataMemberBinding="{Binding Path=Rating}" Header="Rating" MinWidth="60" Width="SizeToCells">
                       <telerik:GridViewColumn.CellTemplate>
                          <DataTemplate>
                             <telerikInput:RadRating Name="_leadRating"  Value="{Binding Path=Rating,Mode=TwoWay}" UseLayoutRounding="True">
                                <i:Interaction.Triggers>
                                   <i:EventTrigger EventName="ValueChanged">
                                      <cmd:EventToCommand Command="{Binding Path=DataContext.ChangeRatingCommand, RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl, AncestorLevel=1}}" CommandParameter="{Binding}" />
                                   </i:EventTrigger>
                                </i:Interaction.Triggers>
                             </telerikInput:RadRating>
                          </DataTemplate>
                       </telerik:GridViewColumn.CellTemplate>
                    </telerik:GridViewDataColumn>


Vlad
Telerik team
 answered on 20 Oct 2010
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?