Telerik Forums
UI for WPF Forum
1 answer
355 views

I have a RadGridView that uses Row-Level Validation (as per this article) to validate the objects in the Collection we bind to. When Adding or Editing grid items, the Validation works as expected.

However, if the user loads data that is not valid, the RadGridView does not highlight those rows in red. The user as to try to edit the row before the red invalid indication appears.

Is there a way to force the RadGridView to validate its contents? Or perhaps there is a different Validation Event I need to listen for?

Thanks for your help,
-Thanos

Dilyan Traykov
Telerik team
 answered on 03 Feb 2017
3 answers
207 views

Hi,

I have several clients using our WMS app to connect to their own server and they report this crash. They also tried different WMS app with their server but the other apps work fine. When I ask them to install fiddler to diagnose the issue, the app works fine only when fiddler is running. Any ideas how this happens?

 

Stack dump:

An existing connection was forcibly closed by the remote host

at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

 

Petar Mladenov
Telerik team
 answered on 03 Feb 2017
1 answer
176 views

I founded that you have done new useful property for grid column ShowToolTipOnTrimmedText in version 2017 R1 (gridview versio 2017.1.117.40). So I started to use it (went through my columns and checked that property on to my wanted colums). Here is one column definition where my image is also:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Path=NIMI, Mode=TwoWay}" Width="130"  ColumnGroupName="Nimitiedot" ShowToolTipOnTrimmedText="True" >
    <telerik:GridViewDataColumn.Header>
        <TextBlock Text="Nimi" TextWrapping="Wrap" />
    </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>

 

I mainly test my program with windows application and publish it both browser application and windows application. Above property works fine when I run published version as windows application (see picture RunningAsExeTooltip.png, mouse was over that yellow highlight cell, highlight done after screenshot) but when I run it in browser then it crash when it should show that tooltip (works well if just quickly go through that point where it should show tooltip but when stopped there --> crash). Here is detail from that.

 

Startup URI: http://caldinari001/awrdesktopbrowser/AWRDesktopBrowser.xbap
Application Identity: http://caldinari001/awrdesktopbrowser/AWRDesktopBrowser.xbap#AWRDesktopBrowser.xbap, Version=2017.2.2.0, Culture=neutral, PublicKeyToken=66a30cbeffcceb25, processorArchitecture=msil/AWRDesktopBrowser.exe, Version=2017.2.2.0, Culture=neutral, PublicKeyToken=66a30cbeffcceb25, processorArchitecture=msil, type=win32
System.ComponentModel.Win32Exception (0x80004005): Cannot create a top-level child window
   at MS.Win32.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
   at MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32 exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name, IntPtr parent, HwndWrapperHook[] hooks)
   at System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters parameters)
   at System.Windows.Interop.HwndSource..ctor(HwndSourceParameters parameters)
   at System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.BuildWindow(Int32 x, Int32 y, Visual placementTarget, Boolean transparent, HwndSourceHook hook, AutoResizedEventHandler handler)
   at System.Windows.Controls.Primitives.Popup.BuildWindow(Visual targetVisual)
   at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
   at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, 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.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
   at System.Windows.Controls.Primitives.Popup.CreateRootPopup(Popup popup, UIElement child)
   at System.Windows.Controls.ToolTip.HookupParentPopup()
   at System.Windows.Controls.ToolTip.OnIsOpenChanged(DependencyObject d, 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.GridView.GridViewDataControl.OpenCellTooltip()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnOpenTimerTick(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, 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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.StartDispatcherInBrowser(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, 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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.StartDispatcherInBrowser(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, 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)
-----------------------
PresentationHost.exe v4.0.41210.0 built by: Main - C:\Windows\SysWOW64\PresentationHost.exe
ntdll.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\ntdll.dll
kernel32.dll v6.1.7601.18015 (win7sp1_gdr.121129-1432) - C:\Windows\syswow64\kernel32.dll
KERNELBASE.dll v6.1.7601.18015 (win7sp1_gdr.121129-1432) - C:\Windows\syswow64\KERNELBASE.dll
ADVAPI32.dll v6.1.7601.23572 (win7sp1_ldr.161011-0600) - C:\Windows\syswow64\ADVAPI32.dll
msvcrt.dll v7.0.7601.17744 (win7sp1_gdr.111215-1535) - C:\Windows\syswow64\msvcrt.dll
sechost.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\sechost.dll
RPCRT4.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\RPCRT4.dll
SspiCli.dll v6.1.7601.23642 (win7sp1_ldr.170105-0730) - C:\Windows\syswow64\SspiCli.dll
CRYPTBASE.dll v6.1.7601.23642 (win7sp1_ldr.170105-0730) - C:\Windows\syswow64\CRYPTBASE.dll
USER32.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\syswow64\USER32.dll
GDI32.dll v6.1.7601.23591 (win7sp1_ldr.161106-0500) - C:\Windows\syswow64\GDI32.dll
LPK.dll v6.1.7601.23587 (win7sp1_ldr.161102-0600) - C:\Windows\syswow64\LPK.dll
USP10.dll v1.0626.7601.23585 (win7sp1_ldr.161027-0600) - C:\Windows\syswow64\USP10.dll
ole32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\ole32.dll
OLEAUT32.dll v6.1.7601.23569 - C:\Windows\syswow64\OLEAUT32.dll
mscoree.dll v4.0.40305.0 (Main.040305-0000) - C:\Windows\SysWOW64\mscoree.dll
SHLWAPI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\SHLWAPI.dll
WININET.dll v11.00.9600.18538 (winblue_ltsb.161112-0600) - C:\Windows\syswow64\WININET.dll
api-ms-win-downlevel-user32-l1-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\syswow64\api-ms-win-downlevel-user32-l1-1-0.dll
api-ms-win-downlevel-shlwapi-l1-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll
api-ms-win-downlevel-version-l1-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\syswow64\api-ms-win-downlevel-version-l1-1-0.dll
version.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\version.DLL
api-ms-win-downlevel-normaliz-l1-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\syswow64\api-ms-win-downlevel-normaliz-l1-1-0.dll
normaliz.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\normaliz.DLL
iertutil.dll v11.00.9600.18538 (winblue_ltsb.161112-0600) - C:\Windows\syswow64\iertutil.dll
api-ms-win-downlevel-advapi32-l1-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll
USERENV.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\USERENV.dll
profapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\profapi.dll
urlmon.dll v11.00.9600.18538 (winblue_ltsb.161112-0600) - C:\Windows\syswow64\urlmon.dll
api-ms-win-downlevel-ole32-l1-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\syswow64\api-ms-win-downlevel-ole32-l1-1-0.dll
SHELL32.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\syswow64\SHELL32.dll
IMM32.DLL v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\IMM32.DLL
MSCTF.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\MSCTF.dll
PresentationHost_v0400.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationHost_v0400.dll
MSVCR120_CLR0400.dll v12.00.52512.0 built by: VSWINSERVICING - C:\Windows\SysWOW64\MSVCR120_CLR0400.dll
PSAPI.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\PSAPI.DLL
uxtheme.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\uxtheme.dll
tv_w32.dll v10.0.47484.0 - C:\Program Files (x86)\TeamViewer\tv_w32.dll
COMCTL32.dll v6.10 (win7_rtm.090713-1255) - C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\COMCTL32.dll
CLBCatQ.DLL v2001.12.8530.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\CLBCatQ.DLL
CRYPTSP.dll v6.1.7601.23471 (win7sp1_ldr.160614-0600) - C:\Windows\SysWOW64\CRYPTSP.dll
rsaenh.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\rsaenh.dll
RpcRtRemote.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\SysWOW64\RpcRtRemote.dll
ieproxy.dll v11.00.9600.18538 (winblue_ltsb.161112-0600) - C:\Program Files (x86)\Internet Explorer\ieproxy.dll
api-ms-win-downlevel-shlwapi-l2-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\system32\api-ms-win-downlevel-shlwapi-l2-1-0.dll
dwmapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\dwmapi.dll
Secur32.dll v6.1.7601.23642 (win7sp1_ldr.170105-0730) - C:\Windows\SysWOW64\Secur32.dll
api-ms-win-downlevel-advapi32-l2-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\SysWOW64\api-ms-win-downlevel-advapi32-l2-1-0.dll
WS2_32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\WS2_32.dll
NSI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\NSI.dll
mswsock.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\mswsock.dll
wship6.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\wship6.dll
IPHLPAPI.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\IPHLPAPI.DLL
WINNSI.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\WINNSI.DLL
DNSAPI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\DNSAPI.dll
netprofm.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\netprofm.dll
nlaapi.dll v6.1.7601.18685 (win7sp1_gdr.141205-1623) - C:\Windows\System32\nlaapi.dll
dhcpcsvc6.DLL v6.1.7601.17970 (win7sp1_gdr.121009-0412) - C:\Windows\SysWOW64\dhcpcsvc6.DLL
wshtcpip.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\wshtcpip.dll
mdnsNSP.dll v3,0,0,10 - C:\Program Files (x86)\Bonjour\mdnsNSP.dll
dhcpcsvc.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\dhcpcsvc.DLL
npmproxy.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\npmproxy.dll
rasadhlp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\rasadhlp.dll
fwpuclnt.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\fwpuclnt.dll
dfshim.dll v4.0.41209.0 (Main.041209-0000) - C:\Windows\SysWOW64\dfshim.dll
mscoreei.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
clr.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
msxml3.dll v8.110.7601.23373 - C:\Windows\System32\msxml3.dll
bcrypt.dll v6.1.7601.23642 (win7sp1_ldr.170105-0730) - C:\Windows\System32\bcrypt.dll
SXS.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\SXS.DLL
PresentationHostProxy.dll v4.0.40305.0 built by: Main - C:\Windows\SysWOW64\PresentationHostProxy.dll
mshtml.dll v11.00.9600.18538 (winblue_ltsb.161112-0600) - C:\Windows\SysWOW64\mshtml.dll
msimtf.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\msimtf.dll
msls31.dll v3.10.349.0 - C:\Windows\SysWOW64\msls31.dll
d2d1.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\SysWOW64\d2d1.dll
DWrite.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\SysWOW64\DWrite.dll
dxgi.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\SysWOW64\dxgi.dll
DXGIDebug.dll v9.30.9600.17336 - C:\Windows\SysWOW64\DXGIDebug.dll
WINTRUST.dll v6.1.7601.23566 (win7sp1_ldr.161004-0600) - C:\Windows\syswow64\WINTRUST.dll
CRYPT32.dll v6.1.7601.23566 (win7sp1_ldr.161004-0600) - C:\Windows\syswow64\CRYPT32.dll
MSASN1.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\syswow64\MSASN1.dll
d3d11.dll v6.2.9200.16570 (win8_gdr.130327-1526) - C:\Windows\SysWOW64\d3d11.dll
IEFRAME.dll v11.00.9600.18538 (winblue_ltsb.161112-0600) - C:\Windows\SysWOW64\IEFRAME.dll
api-ms-win-downlevel-shell32-l1-1-0.dll v6.2.9200.16492 (win8_gdr_oobssr.130113-0015) - C:\Windows\SysWOW64\api-ms-win-downlevel-shell32-l1-1-0.dll
uiautomationcore.dll v7.0.0.0 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\uiautomationcore.dll
OLEACC.dll v7.0.0.0 (win7sp1_gdr.110826-1504) - C:\Windows\SysWOW64\OLEACC.dll
jscript9.dll v11.00.9600.18538 (winblue_ltsb.161112-0600) - C:\Windows\SysWOW64\jscript9.dll
windowscodecs.dll v6.2.9200.21830 (win8_ldr.160407-0600) - C:\Windows\system32\windowscodecs.dll
mlang.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\mlang.dll
mscorlib.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\02795048c7ede81af33acdb56f905958\mscorlib.ni.dll
nlssorting.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll
System.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System\e49af6abc3fb5dda64392cae6ca45db9\System.ni.dll
System.Core.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Core\6ad7bdc64040bfda8aa2c21b1e4394b0\System.Core.ni.dll
WindowsBase.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\WindowsBase\57ef31c77855c4fc6cb2f24942b0268c\WindowsBase.ni.dll
PresentationCore.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\PresentationCore\c3c1053ed917afc9b7d4468a7291456c\PresentationCore.ni.dll
PresentationFramework.ni.dll v4.6.1087.0 - C:\Windows\assembly\NativeImages_v4.0.30319_32\Presentatio5ae0f00f#\a38fec0cefab1f09ea34cdb8b1c0fcb0\PresentationFramework.ni.dll
wpfgfx_v0400.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpfgfx_v0400.dll
PresentationNative_v0400.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationNative_v0400.dll
System.Xaml.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xaml\fa3dc2466256e6a142ad7475ca5a1890\System.Xaml.ni.dll
clrjit.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll
PresentationFramework.Aero.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\Presentatio1c9175f8#\0c93e4509cd540cef3d8bc4f53e16401\PresentationFramework.Aero.ni.dll
d3d9.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\SysWOW64\d3d9.dll
d3d8thk.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\d3d8thk.dll
sgfxu32.dll v9.18.5.2 - C:\Windows\SysWOW64\sgfxu32.dll
aticfx32.dll v8.17.10.1404 - C:\Windows\SysWOW64\aticfx32.dll
WINMM.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\WINMM.dll
atiu9pag.dll v8.14.01.6463 - C:\Windows\system32\atiu9pag.dll
igdumdim32.dll v10.18.10.3993 - C:\Windows\SysWOW64\igdumdim32.dll
igdusc32.dll v10.18.10.3993 - C:\Windows\SysWOW64\igdusc32.dll
atiumdag.dll v9.14.10.01128 - C:\Windows\SysWOW64\atiumdag.dll
atiumdva.dll v8.14.10.0513 - C:\Windows\system32\atiumdva.dll
POWRPROF.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\POWRPROF.dll
SETUPAPI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\syswow64\SETUPAPI.dll
CFGMGR32.dll v6.1.7601.17621 (win7sp1_gdr.110523-2108) - C:\Windows\syswow64\CFGMGR32.dll
DEVOBJ.dll v6.1.7601.17621 (win7sp1_gdr.110523-2108) - C:\Windows\syswow64\DEVOBJ.dll
UIAutomationProvider.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\UIAutomationProvider\3aa36d070be9598846d66351256bbe13\UIAutomationProvider.ni.dll
UIAutomationTypes.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\UIAutomationTypes\1a50a8b002fc10cf93d63bea9cd7f83d\UIAutomationTypes.ni.dll
System.Configuration.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\e4b51f793514a0d7324ef02828145130\System.Configuration.ni.dll
System.Xml.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml\4d0104bb5509d906f129d54b070d1bd6\System.Xml.ni.dll
WtsApi32.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\SysWOW64\WtsApi32.dll
WINSTA.dll v6.1.7601.18540 (win7sp1_gdr.140716-1508) - C:\Windows\SysWOW64\WINSTA.dll
PresentationFramework-SystemXml.ni.dll v4.6.1087.0 - C:\Windows\assembly\NativeImages_v4.0.30319_32\Presentatio49d6fefe#\bfd90ce6cc9f7abe13deaa6ffb30d850\PresentationFramework-SystemXml.ni.dll
System.Drawing.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Drawing\c55a38896fef55fafafd1be9c8437243\System.Drawing.ni.dll
System.Windows.Forms.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\0fab00859ac0f599e69bc12e0cc2c497\System.Windows.Forms.ni.dll
System.DirectoryServices.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Dired13b18a9#\ac27cdb8736c1de2788f20345ae3b543\System.DirectoryServices.ni.dll
System.Deployment.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Deployment\778537f11601513db86dd22af0a51942\System.Deployment.ni.dll
rasapi32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\rasapi32.dll
rasman.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\rasman.dll
rtutils.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\SysWOW64\rtutils.dll
winhttp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SysWOW64\winhttp.dll
webio.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\SysWOW64\webio.dll
credssp.dll v6.1.7601.23642 (win7sp1_ldr.170105-0730) - C:\Windows\SysWOW64\credssp.dll
System.Data.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Data\4f33e4a12d701f157655f39825860335\System.Data.ni.dll
System.Data.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
System.ServiceModel.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.ServiceModel\c4175f38130bf0c2dac7b7837f82e00b\System.ServiceModel.ni.dll
SMDiagnostics.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\SMDiagnostics\eb4c22a56dfee4cdbe62aae589add10a\SMDiagnostics.ni.dll
System.Runtime.Serialization.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runteb92aa12#\8d1828b7cc6780ad2eaca89d9b73af42\System.Runtime.Serialization.ni.dll
System.ServiceModel.Internals.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Servd1dec626#\51bba9729fa33d00fb3f5498d07fbde0\System.ServiceModel.Internals.ni.dll
System.Transactions.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Transactions\5121470801ed6c246a1887a5054f398f\System.Transactions.ni.dll
System.Transactions.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
System.IdentityModel.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.IdentityModel\c4402d4b4964c9abd161c185c85ba12a\System.IdentityModel.ni.dll
System.ServiceModel.Web.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Servf73e6522#\e1941f80d62ffa57ce9738febfa098be\System.ServiceModel.Web.ni.dll
System.Web.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Web\a276923de4839a3576d77ac2d438800b\System.Web.ni.dll
System.Net.Http.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Net.Http\2821dc78750c2ce9f32849258e733c72\System.Net.Http.ni.dll
System.Numerics.ni.dll v4.6.1087.0 built by: NETFXREL4STAGE - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Numerics\2f1dd6d5b0094b85deb9730627b59918\System.Numerics.ni.dll
gdiplus.dll v6.1.7601.23545 (win7sp1_ldr.160912-1137) - C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23545_none_5c06d189a00e2c29\gdiplus.dll
System.ComponentModel.Composition.ni.dll v4.6.1087.0 - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Compba577418#\58c548e5e146aa6544f800cc8c96bcb7\System.ComponentModel.Composition.ni.dll
System.ComponentModel.DataAnnotations.ni.dll v4.6.1087.0 - C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Comp46f2b404#\315ea67fce0455f64c02fd23baedaa78\System.ComponentModel.DataAnnotations.ni.dll
PresentationFramework-SystemData.ni.dll v4.6.1087.0 - C:\Windows\assembly\NativeImages_v4.0.30319_32\Presentatio84a7b877#\890256efc83d2ae0e9a59d6e035a40b5\PresentationFramework-SystemData.ni.dll
msctfui.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\msctfui.dll
diasymreader.dll v14.00.1087.0 built by: NETFXREL4STAGE - C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll

Nasko
Telerik team
 answered on 03 Feb 2017
1 answer
543 views
Hi,

I am using Caliburn Micro to implement my MVVM pattern. I bind a BindableCollection of Order objects as the ItemsSource for the GridView.

I'm doing a custom sort of the collection in the ViewModel, based on a selected predefined sort order (also stored in the ViewModel as a BindableCollection of objects).

What I'd like to do is add an arrow image to any columns that are in the selected predefined sort.

Here's part of my ViewModel:
private BindableCollection<Order> _availableOrders;
public BindableCollection<Order> AvailableOrders {
    get { return _availableOrders; }
    set {
        _availableOrders = value;
        NotifyOfPropertyChange(() => AvailableOrders);
    }
}
 
private BindableCollection<OrderSortDefinition> _orderSortDefinitions;
public BindableCollection<OrderSortDefinition> OrderSortDefinitions {
    get { return _orderSortDefinitions; }
    set {
        _orderSortDefinitions = value;
        NotifyOfPropertyChange(() => OrderSortDefinitions);
    }
}
 
private OrderSortDefinition _selectedOrderSortDefinition;
public OrderSortDefinition SelectedOrderSortDefinition {
    get { return _selectedOrderSortDefinition; }
    set {
        if(value != _selectedOrderSortDefinition) {
            _selectedOrderSortDefinition = value;
            NotifyOfPropertyChange(() => SelectedOrderSortDefinition);
        }
    }
}

The OrderSortDefinition has multiple properties that I plan on binding to the column headers to display the sort image. Here's a sample:
public class OrderSortDefinition {
    public OrderSortDefinition() {
        this.Name = string.Empty;
        this.Details = new List<OrderSortInfo>();
    }
 
    public string Name { get; set; }
    public IList<OrderSortInfo> Details { get; set; }
 
    public bool HasDetails {
        get { return null != Details && Details.Count > 0; }
    }
 
    public Tuple<string, DynamicSortDirection>[] GetSortCriterion() {
        List<Tuple<string, DynamicSortDirection>> criterion = new List<Tuple<string, DynamicSortDirection>>();
 
        foreach(OrderSortInfo sortInfo in Details)
            criterion.Add(sortInfo.GetDynamicSortCriteria());
 
        return criterion.ToArray();
    }
 
    public bool? IsToolingAscending {
        get { return GetSortDirectionByProperty(OrderProperty.ToolingCode); }
    }
 
    public bool? IsMaterialAscending {
        get { return GetSortDirectionByProperty(OrderProperty.MaterialCode); }
    }
 
    public bool? IsOrderAscending {
        get { return GetSortDirectionByProperty(OrderProperty.OrderCode); }
    }
 
    public bool? IsFootageAscending {
        get { return GetSortDirectionByProperty(OrderProperty.Footage); }
    }
 
    public bool? IsCustomerAscending {
        get { return GetSortDirectionByProperty(OrderProperty.CustomerName); }
    }
 
    public bool? IsDateAscending {
        get { return GetSortDirectionByProperty(OrderProperty.RequestedDate); }
    }
 
    public bool? IsTruckAscending {
        get { return GetSortDirectionByProperty(OrderProperty.TruckNumber); }
    }
 
    private bool? GetSortDirectionByProperty(OrderProperty property) {
        var sortInfo = Details.Where(p => p.Association == property).First();
 
        if(null != sortInfo)
            return sortInfo.SortDirection == DynamicSortDirection.Ascending;
        else
            return null;
    }
}

And finally, here's where I set up the GridView in the XAML file:
<telerik:RadGridView x:Name="AvailableOrders" ItemsSource="{Binding AvailableOrders}"
                              AutoGenerateColumns="False"
                              ShowGroupPanel="False"
                              IsReadOnly="True"
                              CanUserSortColumns="False"
                              IsFilteringAllowed="False"
                              SelectionMode="Extended">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding PCode}">
            <telerik:GridViewColumn.Header>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                    <TextBlock Text="Tooling"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Center" />
                    <Image Source="{Binding SelectedOrderSortDefinition.IsToolingAscending, Converter={StaticResource NullBoolToImageConverter}}"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Margin="3"
                           MaxWidth="20"
                           MinWidth="20" />                            
                </StackPanel>
            </telerik:GridViewColumn.Header>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding MaterialCode}">
            <telerik:GridViewColumn.Header>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                    <TextBlock Text="Material"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Center" />
                    <Image Source="{Binding SelectedOrderSortDefinition.IsMaterialAscending, Converter={StaticResource NullBoolToImageConverter}}"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Margin="3"
                           MaxWidth="15"
                           MinWidth="15" />
                </StackPanel>
            </telerik:GridViewColumn.Header>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding OrderCode}">
            <telerik:GridViewColumn.Header>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                    <TextBlock Text="Order"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Center" />
                    <Image Source="{Binding SelectedOrderSortDefinition.IsOrderAscending, Converter={StaticResource NullBoolToImageConverter}}"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Margin="3"
                           MaxWidth="15"
                           MinWidth="15" />
                </StackPanel>
            </telerik:GridViewColumn.Header>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Footage}">
            <telerik:GridViewColumn.Header>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                    <TextBlock Text="Footage"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Center" />
                    <Image Source="{Binding SelectedOrderSortDefinition.IsFootageAscending, Converter={StaticResource NullBoolToImageConverter}}"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Margin="3"
                           MaxWidth="15"
                           MinWidth="15" />
                </StackPanel>
            </telerik:GridViewColumn.Header>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding CustomerName}">
            <telerik:GridViewColumn.Header>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                    <TextBlock Text="Customer"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Center" />
                    <Image Source="{Binding SelectedOrderSortDefinition.IsCustomerAscending, Converter={StaticResource NullBoolToImageConverter}}"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Margin="3"
                           MaxWidth="15"
                           MinWidth="15" />
                </StackPanel>
            </telerik:GridViewColumn.Header>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding TruckNumber}">
            <telerik:GridViewColumn.Header>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                    <TextBlock Text="Route"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Center" />
                    <Image Source="{Binding SelectedOrderSortDefinition.IsTruckAscending, Converter={StaticResource NullBoolToImageConverter}}"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Margin="3"
                           MaxWidth="15"
                           MinWidth="15" />
                </StackPanel>
            </telerik:GridViewColumn.Header>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding RequestedDate, Converter={StaticResource PrettyDateConverter}}">
            <telerik:GridViewColumn.Header>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center">
                    <TextBlock Text="Requested"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Center" />
                    <Image Source="{Binding SelectedOrderSortDefinition.IsDateAscending, Converter={StaticResource NullBoolToImageConverter}}"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Margin="3"
                           MaxWidth="15"
                           MinWidth="15" />
                </StackPanel>
            </telerik:GridViewColumn.Header>
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>

For each column header, I have a text block that will not change, and an image that will either be ascending, descending, or not there based on the bool? that is a property on the SelectedOrderSortDefinition object in the ViewModel.

I have this set up like this, and the breakpoint that I set in my converter never even fires. Any help/suggestions?

Thanks,

-Dan Pingel

Eng Liang
Top achievements
Rank 1
 answered on 02 Feb 2017
1 answer
152 views

Is it possible to change the layout of the RadDatForm control in the auto-generate layout, such that instead of just having one column of property/value pairs, you can define multiple, or at least two?

I know that I can create any layout by providing custom NewItem/ReadOnly/Edit templates. However, in order to do that, I would need to design specific templates for each DB table I want to work with, and I have many. For now, I would like to work with the auto-generated layout, but be able to better utilize the available screen space (hence the desire for more than one column with the auto-generate layout). With the current format (one property/value pair per row), I sometimes end up with a list of items that needs to be vertically scrolled, while I have lots of horizontal screen width being wasted.

Is this possible without creating custom templates for each edited table?

Stefan Nenchev
Telerik team
 answered on 02 Feb 2017
1 answer
89 views

Hello,

why when i use the EditEnded Event i have not the item in the events args?

All work fine whit AddedItem and DeletedItem Events.

 

Thank you and Regards.

Stefan Nenchev
Telerik team
 answered on 02 Feb 2017
2 answers
145 views

In one of our WPF applications there is a gridview which seems to randomly throw an exception and then crash the application.

I can't seem to figure out how to prevent the error or even to prevent the crash.

I tried catching unhandled exceptions however that doesn't work.

 

The stack trace is below:

2017-02-01 12:29:39.1438|ERROR|19608|1|System.Windows.RoutedEventArgs.InvokeEventHandler|Unhandled exception|System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: count
   at System.Linq.Enumerable.Range(Int32 start, Int32 count)
   at Telerik.Windows.Controls.GridView.Selection.CellRegionsPartitioner.CalculateAffectedRegions(Pair`2 firstAndLastSelectedIndices, Int32 columnCount)
   at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.UpdateSelectedCells(IList`1 items, Boolean isSelected)
   at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.UpdateCellSelectionOnSelectedItemsChanged(SelectionChangeEventArgs selectionChangeArgs)
   at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.OnOwnerSelectionChangedDispatch(Object sender, SelectionChangeEventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.RoutedEventArgs.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 Telerik.Windows.Controls.GridView.GridViewDataControl.RaiseSelectionChangedEvent(SelectionChangeEventArgs args)
   at Telerik.Windows.Data.Selection.ItemSelectionHandler.EndAllowedSelection(ItemSelectionChange selectionChange)
   at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.PerformRowSelection(Object dataItem, SelectionModificationOptions modificationOptions)
   at Telerik.Windows.Controls.GridView.Selection.CellAndRowSelectionDispatcher.HandleSelectionForCellInput(GridViewCell cell, SelectionModificationOptions allowedModifications)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.HandleMouseDownSelection(GridViewCell cell, Boolean allowDrag, Point mousePosition)
   at Telerik.Windows.Controls.GridView.GridViewCell.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   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.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   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.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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, 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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at MyApp.App.Main()


Yoan
Telerik team
 answered on 02 Feb 2017
1 answer
133 views

Greetings,

I want to change default color of relations. 

Yana
Telerik team
 answered on 02 Feb 2017
1 answer
117 views

Hi,

I have for example following GridView:

 

            <telerik:RadGridView x:Name="gvSystems" Grid.Row="1" Grid.Column="0" DataContext="{Binding}" ItemsSource="{Binding Systems}" AutoGenerateColumns="False"
                             ShowSearchPanel="False" ShowGroupPanel="False" ShowGroupFooters="False" IsFilteringAllowed="True" FilteringMode="FilterRow" IsReadOnly="True" GroupRenderMode="Flat"
                                 SelectionMode="{Binding QueryFilterModel.MultiSelectSystems, Converter={StaticResource BoolToSelectionModeConverter}}" Margin="3" CanUserSortColumns="True">          
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn IsSortable="True" Header="{Binding Path=[VXScada_GernericQueries_GridView_ID], Source={x:Static commonUIRes:TextContainer.Instance}}" DataMemberBinding="{Binding SystemID}" />
                    <telerik:GridViewDataColumn IsSortable="True" Header="{Binding Path=[VXScada_GernericQueries_GridView_Name], Source={x:Static commonUIRes:TextContainer.Instance}}" DataMemberBinding="{Binding SystemName}" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>     

If I click into the header to sort my application crashes with following Exception (This happens with each RadGridView I have):

System.NullReferenceException

Source: Telerik.Windows.Data

StackTrace:

   bei Telerik.Windows.Data.QueryableCollectionView.InternalGetItemAt(Int32 index)
   bei Telerik.Windows.Data.QueryableCollectionView.GetItemAt(Int32 index)
   bei Telerik.Windows.Data.DataItemCollection.get_Item(Int32 index)
   bei Telerik.Windows.Controls.GridView.Rows.GetRowItemsAtRange(Int32 startIndex, Int32 endIndex)
   bei Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RealizeRows(Int32 startIndex, Int32 endIndex, Double& verticalOffset, HashSet`1& realizedRows)
   bei Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.MeasureOverride(Size availableSize)
   bei Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
   bei System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bei System.Windows.UIElement.Measure(Size availableSize)
   bei System.Windows.ContextLayoutManager.UpdateLayout()
   bei System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   bei System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   bei System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   bei System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
   bei MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Windows.Threading.DispatcherOperation.Invoke()
   bei System.Windows.Threading.Dispatcher.ProcessQueue()
   bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   bei System.Windows.Application.RunDispatcher(Object ignore)
   bei System.Windows.Application.RunInternal(Window window)

Yoan
Telerik team
 answered on 01 Feb 2017
1 answer
194 views

hi dera all,

i have binded a table to the gridview. now, the grid cell for example double type, errors when the user left it empty and does not let user to go to the other cells. i do not need it. 

i need to user to freely go to the different cells and only caugh on the inputting wrong datatype forexample inputting string instead of double (not lefting a double cell empty). how can i disable built in validation for this?

also i need to check the cells manually and under certain circumestances, change the color of dell border to be red and else black. what does you suggest?

best regards.

Stefan
Telerik team
 answered on 01 Feb 2017
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?