Declined
Last Updated: 21 Jun 2018 14:52 by ADMIN
Rebecca
Created on: 21 Nov 2017 15:29
Category: UI for WPF
Type: Bug Report
1
GridView: switching selectionmode
Hi,

I have implemented a WPF application that displays various pages.

I have the following code that is executed on one of my pages after a user logs in. This same code is executed when the user returns to the page:

If myUser.IsInRole("Master") Or myUser.IsInRole("Administrator") Then
            myRadGridView.SelectionMode = SelectionMode.Multiple
Else
           myRadGridView.SelectionMode = SelectionMode.Single
End If

After logging in the myRadGridView grid behaves as if it is SelectionMode.Single even though my user is in the role "Master" and the code branch above is executed to set the myRadGridView grid into SelectionMode.Multiple.

That being said, if I leave the page and come back to it, the same code is executed and the myRadGridView grid finally behaves as it should be in SelectionMode.Multiple.

How do I fix get this to work?

Thank you.
2 comments
ADMIN
Dilyan Traykov
Posted on: 06 Mar 2018 16:16
I will mark this item as Declined, but should you come across any further issues, feel free to open a new support ticket and we will gladly assist you.
ADMIN
Dilyan Traykov
Posted on: 20 Feb 2018 14:37
Hello Rebecca,

I tested this out at my end, however, I'm unable to reproduce the issue you've described. I'm attaching the sample project I've used in the process for your reference. Please have a look at it and let me know if I've missed something of importance. If possible, please modify the project so that it reproduces the issue and send it back to me so that I can further investigate.

As I suspect that this is a timing issue, could you please try executing the code you've provided through the Dispatcher, possibly with a Render DispatcherPriority and let me know how it goes?

I look forward to your reply.
Attached Files: