Welcome to the Xceed Community | Help
Community Search  
More Search Options

Issue with select

Sort Posts: Previous Next
  •  08-06-2012, 9:18 AM Post no. 32513

    Issue with select

    Hi

    I am having some problems with selection in the DataGrid control. The main problem is that DataRow.IsSelected is read-only, so I am not able to affect selection in the same way I could using the WPF ListView. I basically want to synchronize my viewModels IsSelected with the DataRow.IsSelected. I've been able to work around this.

    My next issue is that in my DataRows, I would like to have an expander, and the selection should follow these rules:
    - The row can be selected/deselected without affecting the expander.
    - A selected row can be expanded/collapsed by clicking the toggle button.
    - A deselected row should NOT be expanded
    - Clicking the togglebutton of the expander should select the row

    My predicament is that I am unable to click the toggle button and select the row at the same time. I have tried using attached behavior to select the row when the toggleButton is clicked, but that leads to other problems such as existing bindings to the ToggleButton are not updated properly, or that when adding the item to selection, the togglebutton reverts to not being selected (seems this has to do with the item being recreated).

    Any suggestions on how I can toggle the expander and select the row at the same time?

  •  08-16-2012, 3:49 PM Post no. 32576 in reply to 32513

    Re: Issue with select

    Hi Bsundsbo,

    Could you please send us a simple stand-alone sample project which reprocudes the problems you have described so that we can do further investigation. Please send it to support@xceed.com. Thank you.

     


    Fawzi Bablli
    Developer Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.