Telerik Forums
UI for WPF Forum
2 answers
143 views
I would like to change the style of the toolbar, however when editing the style or controltemplate in Blend it forces me to "Create New".  I would prefer to "Edit Existing" so that I can start with the existing template to ensure I am providing all the necessary control parts.  Do you have any suggestions, or can you send me a default style for the toolBar to work with?

Thank you!
Ivan
Telerik team
 answered on 05 Oct 2009
7 answers
282 views
Hi,

In the application we're building we use the RadGridView (version 2009.2.701.35) in an UserControl that is added to a TabControl as the content of a TabItem.

When the TabItem containing the RadGridView is removed from the TabControl (=closed), the application still holds a reference to the UserControl. We've tried everything, including memory profiling. If we replace the RadGridView with a standard WPF ListView on the UserControl, the reference to the UserControl no longer exists!

To reproduce this in a more simple environment, we created a new WPF application containing 2 Windows. The startup window contains 1 button, doing nothing more then showing the 2nd window. The 2nd window contains a RadGridView, and in the constructor of the window the RadGridView is filled with 300.000 items.

Memory profiling that test application shows that after closing the 2nd window, there is still a reference to it, while if we replace the RadGridView with a standard WPF ListView again, there is no reference.

Is there something we're missing or is this a (serious) bug in the RadGridView? I can't find anything in the release notes newer then the version we use that this is already fixed, nor can I find anything on the forums about a memory leak...
Hristo
Telerik team
 answered on 05 Oct 2009
3 answers
126 views
Hello, I'm using your RadTreeView with Columns example and a few days ago, I started getting these two strange exceptions, they seem to be in the RadTreeViewItem code, so I can't trace them.

Error 1) When I call the Clear() event from the RadTreeView

Message:

"Object reference not set to an instance of an object."

Stack trace:

   at Telerik.Windows.Controls.RadTreeViewItem.HandleSingleClickFunctionality() in c:\Builds\WPF_Scrum\Navigation_WPF\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.Events.cs:line 439
   at Telerik.Windows.Controls.RadTreeViewItem.OnHeaderMouseLeftButtonUp(Object sender, MouseEventArgs e) in c:\Builds\WPF_Scrum\Navigation_WPF\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.Events.cs:line 863
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Error 2) When I click on a RadTreeViewItem to select it.

Message:

"The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals."

Stack Trace:

"   at System.Windows.Media.Visual.TransformToVisual(Visual visual)\r\n   at Telerik.Windows.Controls.RadTreeViewItem.get_IsInViewport() in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeViewItem.Properties.cs:line 434\r\n   at Telerik.Windows.Controls.RadTreeViewItem.BringIntoView() in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeViewItem.cs:line 341\r\n   at Telerik.Windows.Controls.RadTreeViewItem.OnIsSelectedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs args) in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeViewItem.Properties.cs:line 1161\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, OperationType operationType)\r\n   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)\r\n   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)\r\n   at Telerik.Windows.Controls.RadTreeViewItem.set_IsSelected(Boolean value) in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeViewItem.Properties.cs:line 417\r\n   at Telerik.Windows.Controls.RadTreeView.SelectionChanger_SelectionChanged(Object sender, SelectionChangedEventArgs e) in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeView.cs:line 2735\r\n   at Telerik.Windows.Controls.SelectionChanger`1.InvokeSelectionChangedEvent() in c:\\Builds\\WPF_Scrum\\Core_WPF\\Sources\\Development\\Core\\Controls\\Common\\SelectionChanger.cs:line 322\r\n   at Telerik.Windows.Controls.SelectionChanger`1.End() in c:\\Builds\\WPF_Scrum\\Core_WPF\\Sources\\Development\\Core\\Controls\\Common\\SelectionChanger.cs:line 74\r\n   at Telerik.Windows.Controls.RadTreeView.SetSelectedItem(RadTreeViewItem itemContainer) in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeView.cs:line 2687\r\n   at Telerik.Windows.Controls.RadTreeView.HandleItemSelectionFromUI(RadTreeViewItem itemToSelect) in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeView.cs:line 2133\r\n   at Telerik.Windows.Controls.RadTreeViewItem.OnHeaderMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in c:\\Builds\\WPF_Scrum\\Navigation_WPF\\Sources\\Development\\Controls\\Navigation\\TreeView\\RadTreeViewItem.Events.cs:line 846\r\n   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)\r\n   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)\r\n   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)\r\n   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)\r\n   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)\r\n   at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)\r\n   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)\r\n   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)\r\n   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)\r\n   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)\r\n   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)\r\n   at System.Windows.Input.InputManager.ProcessStagingArea()\r\n   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)\r\n   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)\r\n   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)\r\n   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)\r\n   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)"

If you need more info I can show you the dissasembly. Thanks in advance.
Miroslav
Telerik team
 answered on 05 Oct 2009
4 answers
233 views
I have a WPF page with a RadGridView, and i want to change the column headers of this grid at runtime beacuse my application is bilingual, i tiried the following code but the headers dose not changed.

<

 

telerik:RadGridView Name="gvEmployees" Margin="2" telerik:StyleManager.Theme="Office_Blue" AutoGenerateColumns="False" HorizontalAlignment="Stretch" ColumnsWidthMode="Fill" ShowGroupPanel="False" IsReadOnly="True">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewDataColumn DataMemberPath="Employee_NO" Header="Employee NO."/>

 

 

 

 

<telerik:GridViewDataColumn DataMemberPath ="National_ID" Header="National ID"/>

 

 

 

<telerik:GridViewDataColumn DataMemberPath="Full_Name_Ar" Header="Name Ar"/>

 

 

 

<telerik:GridViewDataColumn DataMemberPath="Full_Name_En" Header="Name En"/>

 

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 



 

Private Sub gvEmployees_DataLoaded(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvEmployees.DataLoaded

 

gvEmployees.Columns(0).Header =

"Test Change"

 

 

End Sub

 

Pavel Pavlov
Telerik team
 answered on 05 Oct 2009
3 answers
48 views

We are using Telerik Tree control in our project. We are doing Automation by Testpartner Tool. Testpartner doesn't support directly to recognize Telerik Tree control. So we are using Telerik Tree view reference in Testpartner tool for accessing/fetching data from Tree view. By late binding unable to get tree items.
Need your suggestions forTestpartner to identify Telerik Tree view items.

Valentin.Stoychev
Telerik team
 answered on 05 Oct 2009
1 answer
115 views
Hi

I think I found a bug involving drag/drop on the radscheduler.
The synopsis is with RadPanel and RadScheduler. I drag an item from the panel and drop it on the scheduler and build an Appointment
It's working fine in general.

But if I slowly move the drag cue on an existing Appointment, immediatly when the cursor moves on the text displayed, the DragAndDropManager crashes. It works fine if I don't display Appointment.Subject.

I was able to solve the issue by creating an appointment template like this:

 

 

<DataTemplate x:Key="AppointmentTemplate">

 

 

 

<Border>

 

 

 

<TextBlock x:Name="PART_SubjectTextBox" Text="{Binding Path=Occurrence.Appointment.Subject}"></TextBlock>

 

 

 

</Border>

 

 

 

</DataTemplate>

 


 But I can't see any reason this solves the problem.
Please find bellow the crash report provided par VS if it may help.

My system is .NET 3.5, Windows XP Pro French.
---------------------------------

System.NullReferenceException was unhandled by user code
  Message="La référence d'objet n'est pas définie à une instance d'un objet."
  Source="Telerik.Windows.Controls"
  StackTrace:
       à Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.<FindDropZones>b__2(HitTestResult el) dans c:\Builds\WPF_Scrum\Core_WPF_2009_Q2_SP1\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:ligne 1148
       à System.Windows.Media.Visual.HitTestPointInternal(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters hitTestParameters)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTest(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters hitTestParameters)
  InnerException:
Miroslav
Telerik team
 answered on 05 Oct 2009
3 answers
104 views
I am trying to show textbox in grid cell performing aggregate function.
These underneath Xaml show textboxes but while editing  value in textbox,textbox disappear on double-click and when done with editing it re-appear again.and aggregate functions seem to work sometime.

Please help me..hoe to achieve textboxes in a gridcell with aggrgate functionality for that datacolumn

  <telerik:GridViewDataColumn Header="Term Leased"  ToolTip="Term Leased" HeaderTextAlignment="Center" DataMemberBinding="{Binding TERM_LEASED}" IsReadOnly="False"  >
  <telerik:GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBox HorizontalAlignment="Center" VerticalAlignment="Top" Width="40" x:Name="TxtTermLeased" Margin="5,0" Text="{Binding TERM_LEASED}" >

                                            </TextBox>
                                        </DataTemplate>
                                    </telerik:GridViewColumn.CellTemplate>
                                    <telerik:GridViewDataColumn.AggregateFunctions>
                                        <telerik:SumFunction Caption="Term Leased: "  SourceField="TERM_LEASED" />
                                    </telerik:GridViewDataColumn.AggregateFunctions>
                                </telerik:GridViewDataColumn>
Vlad
Telerik team
 answered on 05 Oct 2009
7 answers
420 views
Is there a practical limit to the number of rows in a GridView? I tried putting 4k in and get a memory exception. If I limit to 1k rows it works but I can see the system memory take a steep rise each time I refresh the grid. I have a similar application in WinForms and I can load 4k rows easily with no impact on system performance.
Hector
Top achievements
Rank 1
 answered on 02 Oct 2009
2 answers
384 views
I am attempting to create a Custom Item Template for my carousel that is bound to a datatable. The problem is that when I do the below XAML code, it displays System.DataRow.View or something like that instead of the actual data. I think it has something to do with not defining my data type. What should I put in the DataType property for my DataTemplate in the case that it is bound to a datatable?

<Grid.Resources> 
            <DataTemplate DataType="">  
                <Border Background="LightSlateGray" Padding="10">  
                    <Grid> 
                        <Grid.ColumnDefinitions> 
                            <ColumnDefinition Width="60" /> 
                            <ColumnDefinition Width="*" /> 
                        </Grid.ColumnDefinitions> 
                        <Grid.RowDefinitions> 
                            <RowDefinition Height="20" /> 
                            <RowDefinition Height="*" /> 
                        </Grid.RowDefinitions> 
                        <TextBlock Grid.Column="0" Grid.Row="0" Text="DocumentMasterID">  
                            <TextBlock.TextDecorations> 
                                <TextDecoration Location="Underline" /> 
                            </TextBlock.TextDecorations> 
                        </TextBlock> 
                        <TextBlock Grid.Column="0" Grid.Row="1" Text="{Binding Path=Data[DocumentMasterID]}" /> 
                        <TextBlock Grid.Column="1" Grid.Row="0" Text="CleanLeadsID">  
                            <TextBlock.TextDecorations> 
                                <TextDecoration Location="Underline" /> 
                            </TextBlock.TextDecorations> 
                        </TextBlock> 
                        <TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Path=Data[CleanLeadsID]}" /> 
                    </Grid> 
                </Border> 
            </DataTemplate> 
        </Grid.Resources> 
Matt Tapia
Top achievements
Rank 1
 answered on 02 Oct 2009
5 answers
646 views

Hi, I've been confused by a problem. First, I set RadGridView.ItemSource with a ObservableCollection and selected a row. Then I removed an item from ObservableCollection, the RadGridView.SelectedItem changed to null and did't trigger SelectionChanged Event. Is that by desgin? Thanks.

Version: Q2 2009.2.813.35

zai yunfeng
Top achievements
Rank 2
 answered on 02 Oct 2009
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?