Telerik Forums
UI for WPF Forum
1 answer
127 views
I'm using the WPF controls, and cannot find any documentation on RadMaskedTextBox.  The API reference has no comments.  How would one know what mask formats are supported?
Boyan
Telerik team
 answered on 09 Jun 2009
19 answers
392 views
Hi,


I have a RadTreeView bound to my datasource and everything is working fine, however, I am having trouble when adding a new object to the underlying databound  collection, your documentation does not seem to cover this scenario in depth. What I would like to achieve is this:-

Each time the user right clicks on a treeviewitem a dynamic context menu is built and displayed. (it has to be a dynamic context menu because each node represents a particular business event)

On selection of a menu item , a new node is added to the tree , brought into focus and in edit mode.

I require a reference to the treeviewitem each time the user selects a node (I am a bit confused why the SelectionChanged event does not pass me back a reference to the treeviewitem)

    <DockPanel x:Name="dp" LastChildFill="True" > 
        <DockPanel.Resources> 
           <ContextMenu x:Key="contextMenu">  
            </ContextMenu> 
            <Style TargetType="telerik:RadTreeViewItem" x:Key="itemStyle">  
                <Setter Property="ContextMenuService.ContextMenu" Value="{StaticResource contextMenu}" /> 
            </Style> 
            <CollectionViewSource x:Key="cvs" /> 
              
            <LocalF:GetHBaseListConverter x:Key="GetHBaseListConverter"/>  
 
            <HierarchicalDataTemplate  DataType="{x:Type LocalModel:BaseListHierarchy}" ItemsSource="{Binding Converter={StaticResource GetHBaseListConverter}}">  
                <StackPanel Name="Node" Orientation="Horizontal">  
              
                    <Image Name="imgIcon" Width="20" Height="20" Stretch="Fill" /> 
                    <TextBlock Name="txtNode"   Text="{Binding Name}"  Margin="5,0,0,0" MouseDown="txtNode_MouseDown" /> 
 
                
                </StackPanel> 
                <HierarchicalDataTemplate.Triggers> 
                     
                   <DataTrigger Binding="{Binding IsFolder}" Value="True">  
                            <Setter TargetName="imgIcon" Property="Image.Source" Value="../../Images/folder.png" /> 
                    </DataTrigger> 
                    <DataTrigger Binding="{Binding IsFolder}" Value="False">  
                        <Setter TargetName="imgIcon" Property="Image.Source" Value="../../Images/diskdrive.png" /> 
                    </DataTrigger> 
                    
                </HierarchicalDataTemplate.Triggers> 
            </HierarchicalDataTemplate> 
             
                 
        </DockPanel.Resources> 
          
        <telerik:RadTreeView ItemsSource="{Binding}"   IsDragDropEnabled="True"  Edited="trvListEvents_Edited"    DataContext="{Binding Source={StaticResource cvs }}"   Name="trvListEvents"  Selected="trvListEvents_Selected"    > 
              
        </telerik:RadTreeView> 
             
    </DockPanel> 

Thanks

P
Paul Gallen
Top achievements
Rank 1
 answered on 09 Jun 2009
1 answer
65 views
Hi

Is there any reason why the edited event fires twice after editing the radTreeViewItem


Best

P
Bobi
Telerik team
 answered on 09 Jun 2009
2 answers
59 views
Hi

I've installed Rad Controls for WPF "RadControls_for_WPF_2009_1_0526_TRIAL".But when i tried to add the RadGridView control to the project its giving error.Below i've pasted the error message shown in deign window.

Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.get_HeightsCache() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 73
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.get_ExtentHeight() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 505
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.UpdateScrollBars() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 493
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.GridViewScrollViewer_LayoutUpdated(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 513
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   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)


Is there anything wrong happened while installing the package ?

With Regards,
Madhu k


Madhu
Top achievements
Rank 1
 answered on 09 Jun 2009
1 answer
65 views
Hi

i've tried to add RADGridView control to the window of wpf project.but its giving error like

Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.get_HeightsCache() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 73
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.get_ExtentHeight() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 505
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.UpdateScrollBars() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 493
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.GridViewScrollViewer_LayoutUpdated(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 513
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   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)

Hav i missed any dll's while installing RAD controls ?
I've installed trail version of RAD controls.

With Regards,
Madhu k







Vlad
Telerik team
 answered on 09 Jun 2009
1 answer
171 views
Hi,

I currently have 2 issues on the width of a column.

1) if you change the size of the 1st column by dragging the separator and 'hide' the column, you can't get it back. All the other columns can be restored, but the 1st isn't restorable. This only happens when the user can't freeze columns.


2) It seems like the auto-size functionality of the columns only works 1 time. Normally if you resize a column and double-click on the separator, the column will auto-size to the right size. Currently, this doesn't appear to work, with any of the ColumnsWidthMode values.
Kalin Milanov
Telerik team
 answered on 09 Jun 2009
5 answers
146 views
Hi ,

Few minutes back i've installed RAD controls for WPF.When i tried to acces the quick starts i'm getting error.
Even i couldnt able to access the online version of Quick starts ...its showing error message in browser which something goes like this.

Startup URI: http://demos.telerik.com/wpf/
Application Identity: http://demos.telerik.com/wpf/#Telerik.Windows.Examples.xbap, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil/Telerik.Windows.Examples.exe, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil, type=win32

This application type has been disabled.

-----------------------

PresentationHost.exe v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\system32\PresentationHost.exe
ntdll.dll v5.1.2600.5755 (xpsp_sp3_gdr.090206-1234) - C:\WINDOWS\system32\ntdll.dll
kernel32.dll v5.1.2600.5781 (xpsp_sp3_gdr.090321-1317) - C:\WINDOWS\system32\kernel32.dll
ADVAPI32.dll v5.1.2600.5755 (xpsp_sp3_gdr.090206-1234) - C:\WINDOWS\system32\ADVAPI32.dll
RPCRT4.dll v5.1.2600.5512 (xpsp.080413-2108) - C:\WINDOWS\system32\RPCRT4.dll
Secur32.dll v5.1.2600.5753 (xpsp_sp3_gdr.090203-1302) - C:\WINDOWS\system32\Secur32.dll
USER32.dll v5.1.2600.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\USER32.dll
GDI32.dll v5.1.2600.5698 (xpsp_sp3_gdr.081022-1932) - C:\WINDOWS\system32\GDI32.dll
msvcrt.dll v7.0.2600.5512 (xpsp.080413-2111) - C:\WINDOWS\system32\msvcrt.dll
ole32.dll v5.1.2600.5512 (xpsp.080413-2108) - C:\WINDOWS\system32\ole32.dll
SHELL32.dll v6.00.2900.5622 (xpsp_sp3_gdr.080617-1319) - C:\WINDOWS\system32\SHELL32.dll
SHLWAPI.dll v6.00.2900.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\SHLWAPI.dll
urlmon.dll v7.00.6000.16825 (vista_gdr.090218-1505) - C:\WINDOWS\system32\urlmon.dll
OLEAUT32.dll v5.1.2600.5512 - C:\WINDOWS\system32\OLEAUT32.dll
iertutil.dll v7.00.6000.16825 (vista_gdr.090218-1505) - C:\WINDOWS\system32\iertutil.dll
mscoree.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\system32\mscoree.dll
WININET.dll v7.00.6000.16827 (vista_gdr.090226-1506) - C:\WINDOWS\system32\WININET.dll
Normaliz.dll v6.0.5441.0 (winmain(wmbla).060628-1735) - C:\WINDOWS\system32\Normaliz.dll
IMM32.DLL v5.1.2600.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\IMM32.DLL
comctl32.dll v6.0 (xpsp.080413-2105) - C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
uxtheme.dll v6.00.2900.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\uxtheme.dll
MSCTF.dll v5.1.2600.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\MSCTF.dll
CLBCATQ.DLL v2001.12.4414.700 - C:\WINDOWS\system32\CLBCATQ.DLL
COMRes.dll v2001.12.4414.700 - C:\WINDOWS\system32\COMRes.dll
VERSION.dll v5.1.2600.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\VERSION.dll
xpsp2res.dll v5.1.2600.5512 (xpsp.080413-2113) - C:\WINDOWS\system32\xpsp2res.dll
ws2_32.dll v5.1.2600.5512 (xpsp.080413-0852) - C:\WINDOWS\system32\ws2_32.dll
WS2HELP.dll v5.1.2600.5512 (xpsp.080413-0852) - C:\WINDOWS\system32\WS2HELP.dll
nvLsp.dll v2, 2, 0, 6793 - C:\WINDOWS\system32\nvLsp.dll
PSAPI.DLL v5.1.2600.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\PSAPI.DLL
mswsock.dll v5.1.2600.5625 (xpsp_sp3_gdr.080620-1249) - C:\WINDOWS\system32\mswsock.dll
hnetcfg.dll v5.1.2600.5512 (xpsp.080413-0852) - C:\WINDOWS\system32\hnetcfg.dll
wshtcpip.dll v5.1.2600.5512 (xpsp.080413-0852) - C:\WINDOWS\System32\wshtcpip.dll
dfshim.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\system32\dfshim.dll
MSVCR80.dll v8.00.50727.1433 - C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
mscorwks.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
PresentationHostDLL.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\Microsoft.Net\Framework\v3.0\WPF\PresentationHostDLL.dll
mscorlib.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\32e6f703c114f3a971cbe706586e3655\mscorlib.ni.dll
System.ni.dll v2.0.50727.1433 (REDBITS.050727-1400) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\ba0e3a22211ba7343e0116b051f2965a\System.ni.dll
WindowsBase.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\WindowsBase\0703021437c2ec71213a6b701771be86\WindowsBase.ni.dll
PresentationCore.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationCore\011f8e31d197b4ccb6a61c2267a38e5c\PresentationCore.ni.dll
PresentationFramework.ni.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\60421dda88800b14dc101ed9dca422fe\PresentationFramework.ni.dll
msctfime.ime v5.1.2600.5512 (xpsp.080413-2105) - C:\WINDOWS\system32\msctfime.ime
actxprxy.dll v6.00.2900.5512 (xpsp.080413-2113) - C:\WINDOWS\system32\actxprxy.dll
PresentationHostProxy.dll v3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109) - C:\WINDOWS\system32\PresentationHostProxy.dll


Whats the reason for this ..how can i access the quick starts ?

With Regards,
Madhu k

Vlad
Telerik team
 answered on 09 Jun 2009
1 answer
97 views
iam trying wpf dragdrop treeview but in that items are dragging but not droping where we took the position........ if any on know's please tell me the code...........
prem



thank you
Valentin.Stoychev
Telerik team
 answered on 08 Jun 2009
15 answers
253 views
Hello!
Could you tell, how i can programmatically  create filter by two (for example) columns? Is it possible?

Thx
Orit
Top achievements
Rank 1
 answered on 08 Jun 2009
2 answers
111 views

Posted 23 hours ago (permalink)

Hi,
I need to rotate label in code
we using code behind (example in forum) to create a chart. how can i get following done in code behind not sure how  to get to this properties from code:

following works in xamel but need to do from code

<Style TargetType="telerik:AxisXLabel2D"
            <Setter Property="LayoutTransform"
                <Setter.Value> 
                    <RotateTransform Angle="-90"/> 
                </Setter.Value> 
            </Setter> 
        </Style> 

or

 

 

<telerik:LabelFormatConverter

 x:Key="labelFormatConverter" />

 <Style

      targetType="telerik:AxisXLabel2D">

     <Setter

         Property="LayoutTransform">

     <Setter.Value>

        <RotateTransform

             Angle="-90" />

     </Setter.Value>

  </Setter>

 

 


thx
Ves
Telerik team
 answered on 08 Jun 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
Expander
Slider
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?