Hello,
I have a GridControl and set the property ShowCheckBoxSelectorColumn=true in TableView. Now I will preselect rows if I open the view. I use the binding
ItemsSource and SelectedItems.
The dialog is showing as popup dialog if i select an item from parent dialog. The SelectedItems will be set correctly but the view doesn't marked them as selected items ?
How can I show the preselect rows in a popup dialog?
I use the MVVM pattern.
Thank you very much,
Manja
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Manja,
You scenario is not clear. Would you please provide us with a screencast that illustrates the problematic behavior?
Thanks,
Michael
Hello Michael,
I attached a picture to explain the problem.
In the grid should be shown the preselected rows. In the viewModel the datas were correcty set but the checkbox in grid isn't set.
Hello,
I have tried to replicate this behavior in a sample project, but did not succeed. Attached is a project that illustrates my attempts to reproduce your scenario and the issue you are experiencing.
Please modify this project so that it illustrates the problematic behavior and send it to us.
Thanks,
Andrey
In the attached sample it's important to set ItemsSource before SelectedItems, otherwise the selection won't work.
Hi Manja,
We do not recommend you bind the SelectedItems property before ItemsSource because the DXGid control automatically deselects items that are not presented in the source collection. This means that by default the SelectedItems collection should be cleared once it is bound without a correct ItemsSource. So, I suggest that you bind properties in the "correct" order to resolve the issue.
As for the ShowCheckBoxSelectorColumn property, I have reproduced the issue with SelectedItems in your scenario on my side in v14.2. However, in v15.2 it is not reproducible. The collection is cleared correctly.
Regards,
Alex