Telerik Forums
UI for WPF Forum
1 answer
118 views
Is it possible for the user to resize rows?
Ivan Ivanov
Telerik team
 answered on 01 Apr 2011
2 answers
222 views
Hello,
I got a RadTreeView with 1000 items and using Virtualization.
Its definition is:
<telerik:RadTreeView x:Name="MyTree" ContextMenu="{StaticResource ResourceKey=contextManager}"  IsEditable="true"  Grid.Row="1" ItemsSource="{Binding Path=Devices.Children}"   IsLineEnabled="True" SelectionMode="Extended" ItemTemplateSelector="{StaticResource ItemSelector}" ItemContainerStyleSelector="{StaticResource ItemContainerSelector}" IsVirtualizing="true" IsDragDropEnabled="True" IsDragPreviewEnabled="True" IsDragTooltipEnabled="True" IsDropPreviewLineEnabled="True" PreviewDragEnded="TreeView_DragEnded"/>
I'm using a style to set all RadTreeViewItem a context menu like that:
<Style x:Key="DeviceContainerStyle" TargetType="telerik:RadTreeViewItem">
               <Setter Property="IsSelected" Value="{Binding IsSelected,Mode=TwoWay}"/>
               <Setter Property="IsEditable" Value="False"/>
               <Setter Property="IsExpanded" Value="{Binding IsExpanded,Mode=TwoWay}"/>
               <Setter Property="telerik:RadContextMenu.ContextMenu"  Value="{StaticResource ResourceKey=contextDevice}" />
 </Style>
contextDevice is a really simple context menu. with one RadMenuItem in it.

The problem: when scrolling to the bottom of the list and right click an item, the context menu opens fine. But when i scroll back to top of the tree, and right click an item, i get the following exception:

Message: Value cannot be null. Parameter name: format
Stack Trace:    at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Telerik.Windows.Controls.SRLoader`1.GetString(String defaultNamespace, String name, Object[] args) in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\SRLoader.cs:line 78
   at Telerik.Windows.Controls.SR.GetString(String name, Object[] args) in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\SR.cs:line 33
   at Telerik.Windows.Controls.RadContextMenu.CreateRootPopup(Popup popup, UIElement child) in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\Menu\ContextMenu.cs:line 767
   at Telerik.Windows.Controls.RadContextMenu.HookupRootPopup() in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\Menu\ContextMenu.cs:line 1168
   at Telerik.Windows.Controls.RadContextMenu.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\Menu\ContextMenu.cs:line 658
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadContextMenu.set_IsOpen(Boolean value) in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\Menu\ContextMenu.cs:line 318
   at Telerik.Windows.Controls.RadContextMenu.TriggerEventFired() in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\Menu\ContextMenu.cs:line 899
   at Telerik.Windows.Controls.RadContextMenu.OnEventTriggered(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\Menu\ContextMenu.cs:line 864
   at Telerik.Windows.Controls.RadContextMenu.RoutedEventFired(Object sender, RoutedEventArgs e) in c:\Builds\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\Menu\ContextMenu.cs:line 1059
   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.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.RaiseTrustedEvent(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, WindowMessage 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, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Please note that when i set IsVirtualizing=false the problem is solved ! but i get really bad memory consume

Thanks for your help.
Miky.
Petar Mladenov
Telerik team
 answered on 01 Apr 2011
9 answers
201 views

Hi,

I have got question about Docking control for WPF. I am using Docking inside Docking (AllowUnsafeMode set to true). And in the inside Docking I add RadPane,and if I Pinned this RadPane the pinned window is in outsie Dockside, why ? Is this a bug or is this in purpose ?

Regards

George
Telerik team
 answered on 01 Apr 2011
1 answer
150 views
In a master / detail scenario and need to know the best way to lock the selected item/row in the grid.  I tried isenabled and that doesn't seem to do the trick. Ideally I'd like to bind a bool from the vm.
Milan
Telerik team
 answered on 01 Apr 2011
1 answer
132 views

Hi.  I downloaded the soure control for the WPF Controls and noticed that its the .NET 3.5 Framework version.  Is there  a .NET 4.0 version of the code available for download.  Thanks.

Randy
Vlad
Telerik team
 answered on 01 Apr 2011
3 answers
1.4K+ views
Hi,

How i can implement group of Toggle Button, one button will be active at a time.

Please suggest/provide sample code.


Regards, Sreeju
Tina Stancheva
Telerik team
 answered on 31 Mar 2011
1 answer
90 views
Good morning
When I edit a row in TreeListView and confirm the change via Enter, 
the TreeListView always scroll to the first row.
Is there a way to disable this behaviour (aka maintain the edited row into view)?
Thank in advance
Marco
marco
Top achievements
Rank 1
 answered on 31 Mar 2011
1 answer
105 views
Hi, I am a new guy to WPF and Radcontrols and I created test application to use Rad Window control  but It is not working.

xaml code is,

<telerik:RadWindow x:Class="test.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    Header="Window1" Height="300" Width="300">
    <Grid>
        
    </Grid>
</telerik:RadWindow>

I inherited the rad window,

public partial class Window1 : RadWindow

The telerik rad control version is 2010.3.1314.35

Windows XP SP 3

Visual Studio 2008
Version 9.0.30729.1 SP

Microsoft .Net Framework
Version 3.5 SP1

Please help me.

Thank You.
Princy
Top achievements
Rank 2
 answered on 31 Mar 2011
1 answer
460 views
Hi.

I'm having some trouble trying to accomplish the following, maybe you can help me.

I have two or more tabs, each of them having several controls (combos, textbox, textblock, grids, etc.). None of this controls have the tabindex setted, the position of the control within the xaml code should be sufficient to ensure the right order.

When the user hits the tab key in the last control of the first tab, I want to focus the first control in the second tab.

Is this possible? Is it possible without setting the tabindex?

Thanks!

Nico
Petar Mladenov
Telerik team
 answered on 31 Mar 2011
6 answers
272 views
Hello,

When you shrink the size of the bottom area, all of the titles show up on a single line instead of on their individual lines.  Is it possible to begin in this state, where all of the items only show up on the single line instead of many?

Thanks!
Petar Mladenov
Telerik team
 answered on 31 Mar 2011
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?