Telerik Forums
UI for WPF Forum
3 answers
140 views
Hello,
   I was trying to figure out how to programmatically scroll the grid but the documentation on this site and on the Net did not help much. I finally figured it out. I have this code in the TextChanged event of a textbox so when the user types in some text this code is executed and the first line in the grid that contains the text in the textbox is scrolled too.

Here's my solution:

int numRows = gridname.Items.Count;

 for (int i = 0; i < numRows; i++)
    if (gridname.Items[i].ToString().Contains(<Text to look for goes in here>)
      {
         this.gridname.ScrollIntoView(gridname.Items[i]);
         break;
      }

My grid only contains 1 column.
Jorge Gonzalez
Top achievements
Rank 1
 answered on 04 Jan 2010
3 answers
164 views
I have the following hierarchy structure

Item (object)
- List<Item>Children (property)
- ItemType (property)

ItemType (object)
- ImageSource Icon (property)

My Icons are stored as .png resource files.  So, I can't load them directly.  Instead, I need to convert them from a Bitmap over to a BitmapSource.  They can then be used as the Icon (ImageSource).

Question is, does anyone have a good way in managed code to do this conversion?  I currently do this using interop but I would think there is a better way.  My current conversion method:

        public static BitmapSource LoadBitmap(Bitmap source)  
        {  
            return System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(  
                source.GetHbitmap(),  
                IntPtr.Zero, Int32Rect.Empty,  
                System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());  
        } 
Joel Palmer
Top achievements
Rank 2
 answered on 04 Jan 2010
2 answers
93 views
In my gridview, I set GridLinesVisibility to "None".  When the grid is displayed, there is no gridline displayed.  But as I scroll the grid, horizontal grid lines appear.  I noticed that if I change the grid theme to default "Office_Black", it works fine.  If I change it to any other theme, horizontal gridlines appear as I scroll.

 

 

        <telerikGrid:RadGridView Name="radGridEmployeeList" ItemsSource="{Binding}" CanUserFreezeColumns="False"   
                                 AutoGenerateColumns="False"   
                                 IsReadOnly="True" telerik:Theming.Theme="Windows7" 
                                 ShowGroupPanel="False" IsFilteringAllowed="False" Background="#327494"   
                                 FontSize="19" GridLinesVisibility="None"   
                                 Width="550">  
            <telerikGrid:RadGridView.Columns> 
                <telerikGrid:GridViewDataColumn UniqueName="EmpName" Width="275"/>  
                <telerikGrid:GridViewDataColumn UniqueName="Department" Header="Department" Width="150" /> 
            </telerikGrid:RadGridView.Columns> 
        </telerikGrid:RadGridView> 

 

 

 

 

 

 

Jhansirani Sarvamohan
Top achievements
Rank 1
 answered on 04 Jan 2010
8 answers
190 views
Hi,
I have a problem with panels. 

(1) When i am trying to drag the Pane it shows a wiered black pane at the starting position. If I drag pane from the outermost side (RadPaneGroup)  , itis fine but if i try to drag them from second (radpane) it shows that wiered black pane .. Any suggestion?
Using MS 2010 with window 7 operating system. As far I know, this thing was working good with vista.
(2) I am not getting the resizing thing. When I maximize the window the pane is not resizing. I am missing something here iknow but the question is how to make my pane resizable according to the main window(outside window)
Thanks,
N
Screen shot attached.
<Grid> 
          
       
            <telerikDock:RadDocking x:Name="radDocking" Margin="9,3,-9,-3">  
            
 
                  
            <telerikDock:RadSplitContainer> 
                <telerikDock:RadSplitContainer x:Name="radSplitContainer" Orientation="Vertical">  
 
                <telerikDock:RadPaneGroup > 
                    <telerikDock:RadPane Header="Pane Left 1" Content="Pane Left 1" /> 
                </telerikDock:RadPaneGroup> 
                <telerikDock:RadPaneGroup> 
                    <telerikDock:RadPane Header="Pane Left 2" Content="Pane Left 2"  /> 
                </telerikDock:RadPaneGroup> 
                <telerikDock:RadPaneGroup> 
                    <telerikDock:RadPane Header="Pane Left 3" Content="Pane Left 3" /> 
                </telerikDock:RadPaneGroup> 
            </telerikDock:RadSplitContainer> 
            <telerikDock:RadSplitContainer   MinHeight="200" MinWidth="200"  telerikDock:ProportionalStackPanel.RelativeSize="100,100"  x:Name="test" Orientation="Horizontal">  
                <telerikDock:RadPaneGroup> 
                    <telerikDock:RadPane Header="Pane right 1" Content="Pane right 1" /> 
                    <telerikDock:RadPane Header="Pane right 2" Content="Pane right 2" /> 
                </telerikDock:RadPaneGroup> 
                  
            </telerikDock:RadSplitContainer> 
        </telerikDock:RadSplitContainer> 
                 
            </telerikDock:RadDocking> 
        </Grid> 
adcriss
Top achievements
Rank 1
 answered on 04 Jan 2010
13 answers
293 views

I've attempted a few times to launch the demo WPF xbap, and look at the sample DataGrid, except that it throws an exception when clicking on the "GridView" item on the left hand menu.


Version information confirming the site are all in the exception detail below:

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

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at MS.Internal.PresentationFramework.SecurityHelper.DemandUIWindowPermission()
   at System.Windows.Application.Shutdown(Int32 exitCode)
   at Telerik.Windows.Examples.App.App_DispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e)
   at System.Windows.Threading.Dispatcher.CatchException(Exception e)
   at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e)
   at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.UIPermission
The first permission that failed was:
<IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Window="AllWindows"/>

The demand was for:
<IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Window="AllWindows"/>

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission class="System.Security.Permissions.FileDialogPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Access="Open"/>
<IPermission class="System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Allowed="ApplicationIsolationByUser"
UserQuota="512000"/>
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Execution"/>
<IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Window="SafeTopLevelWindows"
Clipboard="OwnClipboard"/>
<IPermission class="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri="(http|https)://demos\.telerik\.com/.*"/>
</ConnectAccess>
</IPermission>
<IPermission class="System.Drawing.Printing.PrintingPermission, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="SafePrinting"/>
<IPermission class="System.Security.Permissions.MediaPermission, WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
version="1"
Audio="SafeAudio"
Video="SafeVideo"
Image="SafeImage"/>
<IPermission class="System.Security.Permissions.WebBrowserPermission, WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
version="1"
Level="Safe"/>
</PermissionSet>

The assembly or AppDomain that failed was:
Telerik.Windows.Examples, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null
The method that caused the failure was:
Void App_DispatcherUnhandledException(System.Object, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs)
The Zone of the assembly that failed was:
MyComputer
The Url of the assembly that failed was:
file:///C:/Users/TestUser/AppData/Local/Apps/2.0/BRRJBZBD.XXV/G1WZXZ72.949/tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b/Telerik.Windows.Examples.EXE

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

PresentationHost.exe v3.0.6920.4000 built by: QFE - C:\Windows\SysWOW64\PresentationHost.exe
ntdll.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\ntdll.dll
kernel32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\kernel32.dll
ADVAPI32.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\ADVAPI32.dll
RPCRT4.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\RPCRT4.dll
Secur32.dll v6.0.6002.18051 (vistasp2_gdr.090615-0258) - C:\Windows\syswow64\Secur32.dll
MSVCR80.dll v8.00.50727.4016 - C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_none_d0893820442e7fe4\MSVCR80.dll
msvcrt.dll v7.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\msvcrt.dll
USER32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\USER32.dll
GDI32.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\GDI32.dll
ole32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\ole32.dll
mscoree.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\SysWOW64\mscoree.dll
SHLWAPI.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\SHLWAPI.dll
urlmon.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\syswow64\urlmon.dll
OLEAUT32.dll v6.0.6002.18005 - C:\Windows\syswow64\OLEAUT32.dll
iertutil.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\syswow64\iertutil.dll
SHELL32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\SHELL32.dll
WININET.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\syswow64\WININET.dll
Normaliz.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\Normaliz.dll
IMM32.DLL v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\system32\IMM32.DLL
MSCTF.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\MSCTF.dll
LPK.DLL v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\LPK.DLL
USP10.dll v1.0626.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\USP10.dll
comctl32.dll v6.10 (longhorn_rtm.080118-1840) - C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18005_none_5cb72f96088b0de0\comctl32.dll
uxtheme.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\uxtheme.dll
CLBCatQ.DLL v2001.12.6931.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\CLBCatQ.DLL
rsaenh.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\rsaenh.dll
NTMARTA.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\NTMARTA.DLL
WLDAP32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\WLDAP32.dll
WS2_32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\WS2_32.dll
NSI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\NSI.dll
PSAPI.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\PSAPI.DLL
SAMLIB.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\SAMLIB.dll
VERSION.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\VERSION.dll
RASAPI32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\RASAPI32.dll
rasman.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\rasman.dll
NETAPI32.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\NETAPI32.dll
TAPI32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\TAPI32.dll
rtutils.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\rtutils.dll
WINMM.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\WINMM.dll
OLEACC.dll v7.0.6002.18155 (vistasp2_gdr_win7ip_uia(wmbla).091008-1406) - C:\Windows\SysWOW64\OLEACC.dll
USERENV.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\USERENV.dll
CRYPT32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\CRYPT32.dll
MSASN1.dll v6.0.6002.18106 (vistasp2_gdr.090903-2340) - C:\Windows\SysWOW64\MSASN1.dll
credssp.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\credssp.dll
schannel.dll v6.0.6002.18051 (vistasp2_gdr.090615-0258) - C:\Windows\SysWOW64\schannel.dll
sensapi.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\sensapi.dll
AEPLSP.DLL v5.1 - C:\Windows\SysWOW64\AEPLSP.DLL
mswsock.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\mswsock.dll
AEPNSP.DLL v5.1 - C:\Windows\SysWOW64\AEPNSP.DLL
wshtcpip.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\wshtcpip.dll
NLAapi.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\NLAapi.dll
IPHLPAPI.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\IPHLPAPI.DLL
dhcpcsvc.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\dhcpcsvc.DLL
DNSAPI.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\DNSAPI.dll
WINNSI.DLL v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\WINNSI.DLL
dhcpcsvc6.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\dhcpcsvc6.DLL
rasadhlp.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\rasadhlp.dll
jsproxy.dll v8.00.6001.18828 (longhorn_ie8_gdr.090826-1700) - C:\Windows\system32\jsproxy.dll
jscript.dll v5.8.6001.18702 - C:\Windows\SysWOW64\jscript.dll
napinsp.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\napinsp.dll
pnrpnsp.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\pnrpnsp.dll
winrnr.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\System32\winrnr.dll
wship6.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\wship6.dll
security.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\security.dll
msv1_0.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\msv1_0.DLL
cryptdll.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\cryptdll.dll
dfshim.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\SysWOW64\dfshim.dll
mscorwks.dll v2.0.50727.4200 (NetFxQFE.050727-4200) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
PresentationHostDLL.dll v3.0.6920.4000 built by: QFE - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\PresentationHostDLL.dll
actxprxy.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\actxprxy.dll
SXS.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\SXS.DLL
PresentationHostProxy.dll v3.0.6920.4000 built by: QFE - C:\Windows\SysWOW64\PresentationHostProxy.dll
mscorlib.ni.dll v2.0.50727.4200 (NetFxQFE.050727-4200) - C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\894183c0c47bd4772fbfad4c1a7e3b71\mscorlib.ni.dll
System.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System\13cce38e8de5fd54853390e4e98abd0e\System.ni.dll
WindowsBase.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\WindowsBase\c681da7e1c7b648cb456f2d90e7c50fe\WindowsBase.ni.dll
PresentationCore.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationCore\bfbe98e8737c97d8c938275ceca2b1d8\PresentationCore.ni.dll
PresentationFramework.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\394fd96b27f367e6ffb13bc8c35fdcb2\PresentationFramework.ni.dll
wpfgfx_v0300.dll v3.0.6920.4000 built by: QFE - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\wpfgfx_v0300.dll
PresentationUI.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationUI\52d83973b6c5886042800865d5321ef9\PresentationUI.ni.dll
System.Deployment.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Deployment\4edeee9bfffbaea5bc43ebdac1db3580\System.Deployment.ni.dll
shfolder.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\shfolder.dll
mshtml.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\mshtml.dll
msls31.dll v3.10.349.0 - C:\Windows\SysWOW64\msls31.dll
System.Configuration.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Configuration\78aac991cacbc9665c628f5466cec9c1\System.Configuration.ni.dll
System.Xml.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml\99e7927ccb9099e607035349814d4cf6\System.Xml.ni.dll
MLANG.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\MLANG.dll
pdm.dll v9.0.30729.1 built by: SP - c:\Program Files (x86)\Common Files\Microsoft Shared\VS7Debug\pdm.dll
msdbg2.dll v9.0.30729.1 built by: SP - c:\Program Files (x86)\Common Files\Microsoft Shared\VS7Debug\msdbg2.dll
msimtf.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msimtf.dll
Microsoft.JScript.ni.dll v8.0.50727.4016 - C:\Windows\assembly\NativeImages_v2.0.50727_32\Microsoft.JScript\a385166106bab1601126773d27135895\Microsoft.JScript.ni.dll
IEFRAME.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\IEFRAME.dll
ImgUtil.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\ImgUtil.dll
pngfilt.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\pngfilt.dll
Microsoft.Vsa.ni.dll v8.0.50727.4016 - C:\Windows\assembly\NativeImages_v2.0.50727_32\Microsoft.Vsa\e69555c56ddd01d1e809c1cf9e5cbf93\Microsoft.Vsa.ni.dll
msimg32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msimg32.dll
mscorjit.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
System.Security.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Security\3bf0444969d6c9bf5e3106c9aa59c1d0\System.Security.ni.dll
cryptnet.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\cryptnet.dll
NTDSAPI.DLL v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\NTDSAPI.DLL
Kerberos.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\Kerberos.DLL
bcrypt.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\bcrypt.dll
System.Drawing.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Drawing\57e722244d3b48cb92b340bc92d7a191\System.Drawing.ni.dll
Telerik.Windows.QuickStart.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.QuickStart.dll
System.Core.ni.dll v3.5.30729.1 built by: SP - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Core\1b0d3c0a99c5a1331f07cea904c1c468\System.Core.ni.dll
PresentationFramework.Aero.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\0fa8eb806fadfff925850522a53c3c18\PresentationFramework.Aero.ni.dll
DWMAPI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\DWMAPI.dll
d3d9.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\d3d9.dll
d3d8thk.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\d3d8thk.dll
nvd3dum.dll v8.16.11.9062 - C:\Windows\SysWOW64\nvd3dum.dll
Telerik.Windows.Controls.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.dll
Telerik.Windows.Controls.Input.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.Input.dll
WindowsCodecs.dll v7.0.6002.18107 (vistasp2_gdr_win7ip_dgt(wmbla).090924-1550) - C:\Windows\SysWOW64\WindowsCodecs.dll
Telerik.Windows.Controls.Navigation.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.Navigation.dll
UIAutomationTypes.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\UIAutomationTypes\4609787a9b076765ecb68581a25df450\UIAutomationTypes.ni.dll
System.Xml.Linq.ni.dll v3.5.30729.1 built by: SP - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml.Linq\13c287df8c169b8c70154c98afe1dc8a\System.Xml.Linq.ni.dll
Telerik.Windows.Data.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Data.dll
PresentationNative_v0300.dll v3.0.6920.4000 built by: QFE - C:\Windows\SysWOW64\PresentationNative_v0300.dll
UIAutomationProvider.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\UIAutomationProvider\71446066f8f87652fa7303395df566cc\UIAutomationProvider.ni.dll
powrprof.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\powrprof.dll
SETUPAPI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\SETUPAPI.dll
nvapi.dll v8.16.11.9062 - C:\Windows\SysWOW64\nvapi.dll
WINTRUST.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\WINTRUST.dll
imagehlp.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\imagehlp.dll
msctfui.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msctfui.dll
Telerik.Windows.Controls.GridView.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.GridView.dll
System.Data.Linq.ni.dll v3.5.30729.1 - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Data.Linq\02a00968e6c47ed3faf0a0934e2b1a1a\System.Data.Linq.ni.dll
System.Data.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Data\74114632794c536c35d28a5c60f694ab\System.Data.ni.dll
System.Data.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll
Telerik.Windows.Controls.Charting.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.Charting.dll
wdmaud.drv v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\wdmaud.drv
ksuser.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\ksuser.dll
MMDevAPI.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\MMDevAPI.DLL
AVRT.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\AVRT.dll
AUDIOSES.DLL v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\AUDIOSES.DLL
audioeng.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\audioeng.dll
msacm32.drv v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\msacm32.drv
MSACM32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\MSACM32.dll
midimap.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\midimap.dll
diasymreader.dll v8.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll

       

Kaloyan
Telerik team
 answered on 04 Jan 2010
1 answer
170 views
Hello.

How can I add Alt accelerator on RadMenu?

In Case:
System.Windows.Controls.Menu are IsMainMenu property set true and header text "_File" then work OK.
but, RadMenu are IsMainMenu property are not exist, and '_' character ignored.

Thanks,
GreenB
Kaloyan
Telerik team
 answered on 04 Jan 2010
5 answers
242 views

Is there a way to  assign a keyboard shortcut to the rad expander so that when pressed, the rad expander will gain focus?

I am referring to both logical and keyboard focus.

For example, if I have 5 rad expanders on my form, and I am at the bottom of the form, I want to press alt+a on the keyboard to jump to the top of the form and bring focus to the address rad expander rather than having to tab several times to get back to the address rad expander.
 
I have the rad expanders in a child wpf user control which is within a window.
I have tried this syntax and it does not work:
FocusManager.SetFocusedElement(stpApplicantInformation, rxpAddressInformation)
 
In my xaml I have this:
Note: I have left out much of the xaml code but the stack panel contains 5 rad expanders and a submit button at the bottom.
<UserControl x:Class="AddressInformation"
...
<StackPanel Grid.Row="1"
                        Margin="0,0,0,0"
                        Name="stpApplicantInformation"
...
VerticalAlignment="Top" Focusable="True" 
                                     KeyboardNavigation.TabNavigation="Cycle" FocusManager.IsFocusScope="True"  Visibility="Visible">
...
<StackPanel.CommandBindings>
                    <CommandBinding Command="Help"
       CanExecute="JumpToAddress">
                    </CommandBinding>
                </StackPanel.CommandBindings>
                <StackPanel.InputBindings>
                    <KeyBinding Command="Help" Key="a" Modifiers="Alt"/>
                </StackPanel.InputBindings>
...
<!-- this rad expander I want to pressd alt+a and move keyboard and logical focus to it -->
<telerik:RadExpander Header="_Address Information"
                                     Name="rxpAddressInformation"
                                     Width="1000"
                                     Margin="0, 0, 0, 0"
                                     AllowDrop="False"
                                     Height="auto"
                                      TabIndex="1" Focusable="True" Visibility="Visible" >
                    <UserControl:Address x:Name="AddressInfo" Width="Auto" Height="Auto"></UserControl:Address>
                </telerik:RadExpander>
...
...
<Button X:Name="btnSubmit" ... />              
</StackPanel>
</UserControl>
What am I doing wrong here?
The JumpToAddress method is fired and is working but using FocusManager.SetFocusedElement(stpApplicantInformation, rxpAddressInformation) does not seem
to move keyboard focus to the address rad expander.
Help!
 
If I am on the submit button, and press alt+a I want to jump to the address rad expander.
Bill
    

Ivan
Telerik team
 answered on 04 Jan 2010
10 answers
197 views
Hello, i created some user control and it has telerik grid inside. Problem is with scrollbars - they dont appear automaticaly. even when grid has many columns. See my attached image.
My user control:
<UserControl x:Class="XSoftArt.WPFengine.BaseClasses.ListTemplate" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    > 
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
         
        <Menu Name="menu1" Height="54" VerticalAlignment="Top" Background="AliceBlue"
             
            <MenuItem Name="MenuItemReports" Background="AliceBlue" Click="MenuItemReports_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/reports.png" /> 
                        <ContentPresenter Content="Reports" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
            <MenuItem Name="MenuItemExport" Background="AliceBlue" Click="MenuItemExport_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/export32x32xp.png" /> 
                        <ContentPresenter Content="Export" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
            <MenuItem Name="MenuItemNewRecord" Background="AliceBlue" Click="MenuItemNewRecord_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/new32.png" /> 
                        <ContentPresenter Content="New record" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
            <MenuItem Name="MenuItemEditRecord" Background="AliceBlue" Click="MenuItemEditRecord_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/edit32.png" /> 
                        <ContentPresenter Content="Edit record" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
            <MenuItem Name="MenuItemDeleteRecord" Background="AliceBlue" Click="MenuItemDeleteRecord_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/delete32.png" /> 
                        <ContentPresenter Content="Delete record" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
            <MenuItem Name="MenuItemSettings" Background="AliceBlue" Click="MenuItemSettings_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/settings32.png" /> 
                        <ContentPresenter Content="Settings" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
            <MenuItem Name="MenuItemRecordHistory" Background="AliceBlue" Click="MenuItemRecordHistory_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/histrory32x32xp.png" /> 
                        <ContentPresenter Content="Record history" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
            <MenuItem Name="MenuItemClose" Background="AliceBlue" Click="MenuItemClose_Click"
                <MenuItem.Header> 
                    <StackPanel> 
                        <Image Width="32" Height="32" Source="/XSoftArt.WPFengine;component/Images/uzdaryti programa.png" /> 
                        <ContentPresenter Content="Close window" /> 
                    </StackPanel> 
                </MenuItem.Header> 
            </MenuItem> 
 
        </Menu> 
        <Grid Margin="0,54,0,0" Name="grid1" Height="43" VerticalAlignment="Top" Background="AliceBlue"></Grid> 
        <Grid Margin="0,96,0,0" Name="grid2" Height="36" VerticalAlignment="Top" Background="AliceBlue"
            <Label HorizontalAlignment="Left" Margin="5,7,0,-5" Name="label1" Width="85.223">Record count:</Label> 
            <Label HorizontalAlignment="Left" Margin="85,7,0,4" Name="labelRecordCount" Width="57">0</Label> 
            <dxe:CheckEdit HorizontalAlignment="Left" Margin="124,7,0,7" Name="checkEdit1" Width="72" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" Checked="checkEdit1_Checked" Unchecked="checkEdit1_Unchecked">Select all</dxe:CheckEdit> 
            <Button Click="buttonDeleteSelected_Click" Background="AliceBlue" BorderThickness="2" HorizontalAlignment="Left" Margin="202,7,0,4" Name="buttonDeleteSelected" Width="89.183" FontSize="9">Delete selected</Button> 
            <Label HorizontalAlignment="Right" Margin="0,4,6,4" Name="labelSelectTime" Width="122" FlowDirection="RightToLeft">0</Label> 
            <Button HorizontalAlignment="Left" Margin="296.81,7,0,6" Background="AliceBlue" BorderThickness="2" Click="buttonSaveColumnLayout_Click" Name="buttonSaveColumnLayout" Width="125.743">Save column layout</Button> 
        </Grid> 
 
        <StackPanel Margin="0,58,149,0" Name="stackPanel1" Width="32" Height="32" HorizontalAlignment="Right" VerticalAlignment="Top"
            <Button Name="Button_ReloadData" Click="Button_ReloadData_Click" Background="AliceBlue" > 
                <Image Source="/XSoftArt.WPFengine;component/Images/reload32.png"></Image> 
            </Button> 
        </StackPanel> 
         
        <telerik:GridViewDataControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="dataGridView1" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Margin="1.425,134,0,0" /> 
         
    </Grid> 
</UserControl> 
 
My tabControl, of which content is this user control:
<telerik:RadTabControl Margin="0,91,0,-2.896" x:Name="tabControlR" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> 
Method, which fills tabItem content:
            RadTabItem tabItem = new RadTabItem(); 
            ListTemplate lst = new ListTemplate(); 
            
            lst.tabWindow = tabItem
            tabItem.Content = lst
            tabItem.Header = "Paieskos langas II"
            tabItem.Name = "tabPaieskosTestas"
            tabControlR.Items.Add(tabItem); 
How to make the grid to get scrollbars automatically in all dimensions, depending on the data and tab item measurements..? 
Kalin Milanov
Telerik team
 answered on 04 Jan 2010
1 answer
63 views
Hello,
I facing a issue with telerik Rad gridview version '2009.3.1103.35'.
After typing in cell of the gridview am pressing the tab key which will points to next cell but the
data is not getting visible in the first cell.
But if we type the data into a cell and click outside of the gridview, at that time it shows the data
correctly.
Could anyone help me in solving the tab key press problem.

Regards
Anju
Nedyalko Nikolov
Telerik team
 answered on 04 Jan 2010
1 answer
261 views
Hi,

I am in need of a custom aggregate function which is required to sum certain values based on some conditions. Can anyone give sample code for writing the custom aggregate function in WPF RadGrid?
Vlad
Telerik team
 answered on 04 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?