Telerik Forums
UI for WPF Forum
10 answers
123 views
I have a custom set of fields in a document and am using UpdateAllFields() when I want to render a completed document. I notice from the documentation that this is deprecated. What should I be using instead?

Thanks,
John
Anand
Top achievements
Rank 1
 answered on 13 Aug 2014
1 answer
185 views
Hi ..

I faced a critical issue whenever I clicked any group title in heat map control multiple times. This is the error I got::
" A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Controls.DataVisualization.dll"
and this is the entire exception details

System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.DataVisualization
  StackTrace:
       at Telerik.Windows.Controls.TreeMap.RadTreeMapItem.Select(Boolean selected)
       at Telerik.Windows.Controls.TreeMap.RadTreeMapItem.OnIsSelectedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
       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.TreeMap.RadTreeMapItem.set_IsSelected(Boolean value)
       at Telerik.Windows.Controls.TreeMap.RadTreeMapItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(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.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)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at INtra_Day_EXplorer.App.Main() in d:\INDEX Mini\Main\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:
Petar Marchev
Telerik team
 answered on 13 Aug 2014
1 answer
212 views
Hey,

The filter button in the column header still showing, any idea how to hide it?
I'm using the following code:

01.<telerik:RadGridView x:Name="radGridView" AutoGenerateColumns="False" GroupRenderMode="Flat" CanUserReorderColumns="True"
02.                             ColumnBackground="Transparent" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" RowHeight="17" SelectionMode="Multiple"
03.                             CanUserSelect="True" SelectionUnit="FullRow" EnableLostFocusSelectedState="False"
04.                             HeaderRowStyle="{DynamicResource GridViewHeaderRowStyle1}"
05.                             Style="{DynamicResource RadGridViewStyle1}"
06.                             RowStyle="{DynamicResource GridViewRowStyle1}"
07.                             GroupRowStyle="{DynamicResource GridViewGroupRowStyle1}"
08.                             ItemTemplate="{DynamicResource DataTemplate1}">
09.            <telerik:RadGridView.Columns>
10.                <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayName}" Header="{DynamicResource ManageTempListNameLabel}" Width="150" ShowFilterButton="false" IsFilteringDeferred="True" IsReadOnly="True"/>
11.                <telerik:GridViewDataColumn DataMemberBinding="{Binding Artist}" Header="{DynamicResource ManageTempListArtistLabel}" Width="100" ShowFilterButton="true" IsFilteringDeferred="True" IsReadOnly="True"/>
12.                <telerik:GridViewDataColumn DataMemberBinding="{Binding Album}" Header="{DynamicResource ManageTempListAlbumLabel}" Width="75" IsReadOnly="True" IsVisible="False"/>
13.                <telerik:GridViewDataColumn DataMemberBinding="{Binding Duration}" Header="{DynamicResource ManageTempListDurationLabel}" Width="55" IsResizable="False" IsReadOnly="True" IsVisible="False"/>
14.            </telerik:RadGridView.Columns>
15.        </telerik:RadGridView>

Boris
Telerik team
 answered on 13 Aug 2014
1 answer
100 views
I have an expensive operation to determine if there are children for a node so I am determining if there are children asynchronously.  

I have simulated LoadOnDemand with the TreeListView using a view model with a background worker.  When the worker completes it's work it fires OnPropertyChanged for the collection and the tree then shows the expander.

Is there a way to show an animation in place of where the expander normally resides?  I would like it to be similar to how the TreeView loading animation displays when used with IsLoadOnDemandEnabled.  Right now my tree nodes show no expander until after the async call is complete and it is confusing to end users.

Thanks
Dimitrina
Telerik team
 answered on 13 Aug 2014
4 answers
265 views
Hi,
I want to add tool tip for the next, previous, first, and last button in the datapager control .
Please suggest how can I achieve this.

best regards.
Kim
Top achievements
Rank 1
 answered on 13 Aug 2014
3 answers
301 views
Hi,
I have a view that one cell can have a multiple content from two different property of the data model, I try some of the sample from documentation and have no success, any hint or guide to get this done
thank you.

my code snippet 

<telerik:GridViewDataColumn
Header="Case Type"
DataMemberBinding="{Binding CaseDetails}"
Style="{DynamicResource ColumnTextCenter}">
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>
                                <TextBlock Text="{Binding CaseDetails[0].Type}"/>
                                <TextBlock Text="{Binding CaseDetails[0].LandArea} Grid.Row="1 FontStyle="Italic"/>
                            </Grid>                           
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>                   
                </telerik:GridViewDataColumn>
Stanley
Top achievements
Rank 1
 answered on 13 Aug 2014
2 answers
230 views
Is there a way to change the mouse cursor for the pan operation (actually the default one is "hand")?
Manuel
Top achievements
Rank 1
 answered on 12 Aug 2014
3 answers
275 views
When I press a button to add a shape to my canvas I need it to be placed inside my current viewing area on the canvas.  Currently, I have it hard-coded.  Do you have some example code to do this?  I pass the position using my "GroupDD" object.

Thanks in advance for your help,
Joel

private void btnAddGroup_Click(
    object sender,
    RoutedEventArgs e)
{
    try
    {
        ((AppSettings)DataContext).Model.AddGroup(
            new GroupDD()
            {
                Name = "New Group",
                DynamicProperties = new NameValuePairList()
                {
                    new NameValuePair()
                    {
                        Name = "PositionLabel",
                        Value = GroupNode.GetPointLabel(
                            new Point(20, 20))
                    }
                }
            });



        
public void AddGroup(
            GroupDD group)
        {
            GroupNode node = GetGroupNode(group);
            GraphSource.AddNode(node);
        }
 
        public GroupNode GetGroupNode(
            GroupDD group)
        {
            GroupNode node = new GroupNode()
            {
                Position = GetPoint(group.DynamicProperties),
                Group = group
            };
 
            return node;
        }
 
public class GroupNode : NodeViewModelBase, INotifyPropertyChanged
{
...
}

Joel Palmer
Top achievements
Rank 2
 answered on 12 Aug 2014
2 answers
663 views
Hello,

I'd like to override the keyboard shortcuts for copy, cut and paste because there are some very specific things that I need to do to copy/paste my objects. I've tried overriding the OnKeyDown event, but the commands never hit that method, even though other ctrl commands (ex. ctrl+s) do. Is there a way to have this this control returned to me when I set AllowCopy, AllowCut and AllowPaste to False?

Thanks,
Zak
Zak
Top achievements
Rank 1
 answered on 12 Aug 2014
1 answer
144 views
hi, is the RadWrapPanel child can be stretch?
Yana
Telerik team
 answered on 12 Aug 2014
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?