Telerik Forums
UI for WPF Forum
1 answer
203 views

Hi,

I'm buidling a window that displays a list of countries by continent. It consists of two elements:

  • Combo box: displays a list of continents
  • Grid view: displays a list of countries belonging to the selected continent

These are the requirements:

  • Filter grid with combo box:
  1. Filter rows based on combo box selection
  • Keyboard support on grid:
  1. Keep focus
  2. Select first row by default
  3. Navigate through rows with key up/down and page up/down
  4. Open pop-up on Enter
  • Mouse support on grid:
  1. Open pop-up on click
  • Refresh grid:
  1. Periodically using a timer
  2. After pop-up closed

I used the following technologies:

  • C#
  • WPF
  • MVVM
  • Telerik UI for WPF
  • Caliburn.Micro

The problem I'm experiencing:

PreviewKeyDown on row not working after refresh grid.

  • HOW: The ViewModel sets a new value for the bound ItemsSource property, and resets the bound SelectedItem property if possible.
  • WHEN: Each time the grid receives new data:
  1. initially
  2. pop-up closed (after click or enter on row)
  3. after periodic refresh
  • RESULT:
  1. PreviewKeyDown on GridRow is not handled
  2. underlining of first cell disappears (I'm using the Material theme)
  3. selection style however is visible
  • WORKAROUND:
  1. use keyboard arrows to change selected row (strange: arrows don't work, enter doesn't).

I've attached two screenshots: one regular, and the other one is showing the problem.

 

You can download my Visual Studio project following this WeTransfer link.

Please let me know if you need any further information.

Vladimir Stoyanov
Telerik team
 answered on 07 Feb 2018
2 answers
516 views

The snippet below is from an application for a machine shop which has a rather utilitarian menu.... I've been asked to add hot keys to some of the items; one of the menu items (as seen in the code below) I need to add the F6 key as a hotkey (note the idendical Command for clicking vs hotkey)...   clicking on it works as desired, but the hotkey has seemingly no effect whatsoever.

 

What am I missing, or otherwise doing wrong? Thanks in advance for your help.

 

        <telerik:RadMenuItem Name="ToolsMenu" Header="Tools">
            <telerik:RadMenuItem Name="ToolsUseFinishLocationMenuItem" Header="Use Finish Location For Bin" Command="{Binding ToolsUseFinishLocationForBinCommand}" InputGestureText="F6">
                <telerik:RadMenuItem.InputBindings>
                    <KeyBinding Key="F6" Command="{Binding ToolsUseFinishLocationForBinCommand}" />
                </telerik:RadMenuItem.InputBindings>
            </telerik:RadMenuItem>
        </telerik:RadMenuItem>

Tayyaba
Top achievements
Rank 1
 answered on 07 Feb 2018
4 answers
199 views

Hello,

I tried to launch the WPF Demos, but receive this error:

 

INFO ZUR PLATTFORMVERSION
Windows : 10.0.16299.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.7.2556.0 built by: NET471REL1
clr.dll : 4.7.2600.0 built by: NET471REL1LAST
dfdll.dll : 4.7.2556.0 built by: NET471REL1
dfshim.dll : 10.0.16299.15 (WinBuild.160101.0800)

QUELLEN
Bereitstellungs-URL : file:///C:/Users/bernhard/Dropbox/Projekte/base64-wpf/packages/Telerik%20UI%20for%20WPF/DEMO/WPF%20Demos.application

IDENTITÄTEN
Bereitstellungsidentität : WPF Demos.application, Version=2018.1.116.40, Culture=neutral, PublicKeyToken=e853e47715c765ec, processorArchitecture=x86

ZUSAMMENFASSUNG FÜR ANWENDUNG
* Installierbare Anwendung.

FEHLERZUSAMMENFASSUNG
Es folgt eine Zusammenfassung der Fehler. Details zu diesen Fehlern werden später im Protokoll aufgelistet.
* Die Aktivierung von C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\WPF Demos.application führte zu einer Ausnahme. Folgende Fehlermeldungen wurden entdeckt:
+ 'file:///C:/Users/bernhard/Dropbox/Projekte/base64-wpf/packages/Telerik UI for WPF/DEMO/Application Files/WPF Demos_2018_1_116_40/WPF Demos.exe.manifest' konnte nicht gedownloadet werden.
+ Ein Teil des Pfades "C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\Application Files\WPF Demos_2018_1_116_40\WPF Demos.exe.manifest" konnte nicht gefunden werden.
+ Ein Teil des Pfades "C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\Application Files\WPF Demos_2018_1_116_40\WPF Demos.exe.manifest" konnte nicht gefunden werden.
+ Ein Teil des Pfades "C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\Application Files\WPF Demos_2018_1_116_40\WPF Demos.exe.manifest" konnte nicht gefunden werden.

FEHLERZUSAMMENFASSUNG FÜR DIE SPEICHERTRANSAKTION DER KOMPONENTE
Es wurde kein Transaktionsfehler festgestellt.

WARNUNGEN
Während dieses Vorgangs gab es keine Warnungen.

FORTSCHRITTSSTATUS DES VORGANGS
* [29.01.2018 07:31:20] : Die Aktivierung von C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\WPF Demos.application wurde gestartet.
* [29.01.2018 07:31:20] : Das Verarbeiten des Bereitstellungsmanifestes wurde erfolgreich abgeschlossen.
* [29.01.2018 07:31:20] : Die Installation der Anwendung wurde gestartet.

FEHLERDETAILS
Folgende Fehler wurden bei diesem Vorgang entdeckt.
* [29.01.2018 07:31:20] System.Deployment.Application.DeploymentDownloadException (unbekannter Untertyp)
- 'file:///C:/Users/bernhard/Dropbox/Projekte/base64-wpf/packages/Telerik UI for WPF/DEMO/Application Files/WPF Demos_2018_1_116_40/WPF Demos.exe.manifest' konnte nicht gedownloadet werden.
- Quelle: System.Deployment
- Stapelüberwachung:
bei System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
bei System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
bei System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
bei System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
bei System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
bei System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
bei System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
bei System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
bei System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
bei System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Interne Ausnahme ---
System.Net.WebException
- Ein Teil des Pfades "C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\Application Files\WPF Demos_2018_1_116_40\WPF Demos.exe.manifest" konnte nicht gefunden werden.
- Quelle: System
- Stapelüberwachung:
bei System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
bei System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Interne Ausnahme ---
System.Net.WebException
- Ein Teil des Pfades "C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\Application Files\WPF Demos_2018_1_116_40\WPF Demos.exe.manifest" konnte nicht gefunden werden.
- Quelle: System
- Stapelüberwachung:
bei System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
bei System.Net.FileWebRequest.GetResponseCallback(Object state)
--- Interne Ausnahme ---
System.IO.DirectoryNotFoundException
- Ein Teil des Pfades "C:\Users\bernhard\Dropbox\Projekte\base64-wpf\packages\Telerik UI for WPF\DEMO\Application Files\WPF Demos_2018_1_116_40\WPF Demos.exe.manifest" konnte nicht gefunden werden.
- Quelle: mscorlib
- Stapelüberwachung:
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
bei System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
bei System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

DETAILS ZUR SPEICHERTRANSAKTION DER KOMPONENTE
Es sind keine Transaktionsinformationen verfügbar.

MC
Top achievements
Rank 1
Iron
 answered on 07 Feb 2018
1 answer
141 views

If my tree node text is empty I want to display special text to the user but I when the node is edited I want the text to be blank.  How can I achieve this?  Currently when hitting F2 I still have the "(Not Set)" text displayed.  

 

        <telerik:RadTreeView telerik:TextSearch.TextPath="DisplayName" 

 

public override string DisplayName
    {
    get
        {
        if ( string.IsNullOrEmpty ())
            {
            return "(Not Set)";
            }
 
        return this.m_displayName;               
        }
    set
        {
        this.m_displayName = value;
        }
    }
Karl B
Top achievements
Rank 1
 answered on 06 Feb 2018
1 answer
81 views

Hi

is it possible to add a row like the red marked ones between the normal rows?

The picture is from a Java-Webapplication. I like to have the same in my WPF-Application

And how can i do this with the Gridview?

 

Thx in advance

Maurice
Top achievements
Rank 1
 answered on 06 Feb 2018
1 answer
74 views

Hi,

Currently i am binding the column of RadGridView with an interface type; which causes the filtering on the column for the RadGridView to not show. 

Could you please provide a solution, where i can view the filter for a column that is bound with an Interface type.

Regards,

Swapnil

Dilyan Traykov
Telerik team
 answered on 05 Feb 2018
9 answers
914 views

Hello Telerik,

 

I have a RadGridView and I set to it an EventBinding like this :

<telerik:EventToCommandBehavior.EventBindings>
    <telerik:EventBinding Command="{Binding CommandDeleteFolderRSP}" EventName="KeyUp"
                   CommandParameter="Delete" />
</telerik:EventToCommandBehavior.EventBindings>

=> I want to bind a command if the user wants to delete the selected row.

 

The problem is that all of the keys are fired the command, not only the 'Delete' key.

What is my error ?

 

Thank you.

Stefan
Telerik team
 answered on 05 Feb 2018
1 answer
168 views

Hello Telerik,

 

I'm using a RadDiagram containing shapes. These shapes has TextBlock to display some text.

I search to get the position of a TextBlock inside this RadDiagram.

 

I did it (tb is a TextBlock and Me.MirBuilderDiagram is a RadDiagram) :

tb.TransformToAncestor(Me.MirBuilderDiagram).Transform(New Point(0, 0))

 

The problem is that values are false : the top-left corner of the RadDiagram is set to 20;20, and for a TextBock next to this corner, I get the wrong value. I tried to get the position with the parent of the RadDiagram (a Grid), but I have the same result.

 

I attached 2 screenshots with :

- raddiagram : showing you the visual RadDiagram

- debug : showing you the debug with an attached watcher.

 

How I can get the good values ?

Thank you.

 

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 05 Feb 2018
10 answers
633 views
We want to leverage Cell Templates instead of using the "edit mode" of the GridView however when tabbing between TextBoxes in the CellTemplate the Cell takes focus NOT the next cell's TextBox (that lives inside the CellTemplate). How do we fix this? We are using Q1 2009.
Anton
Top achievements
Rank 1
 answered on 05 Feb 2018
18 answers
3.0K+ views
I have a gridview item with a red background and a white text.
When i move the mouse above the gridview i get a yellow highlight, that causes the text to be unreadable.

Is there a easy way to set the row background/foreground color for the highlight, and selection?

For example:
Highlight: background = yellow, foreground=black
Selection: background = orange, foreground=black

With regards,
Rob


Pavel
Top achievements
Rank 1
 answered on 03 Feb 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?