Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • hi
                                       I want to bind the checkbox at each node in TreeListControl with another class property named Visible.here i am in codebehind setting value to true or false to visible property of that class & i want to bind that property with this checkbox. I had Tried to bind with IsChecked property with class's visible property.but not properly worked. Can you please telll me the way...

                                • Hi Vipul,

                                  It is difficult to clearly diagnose this problem without being able to reproduce it locally.
                                  Could you please provide us with a sample illustrating your issue?
                                  We will examine it, and do our best to help you.

                                  Thanks,
                                  Andrew

                                • (no info) 03.03.2015

                                  public class DataItem
                                      {
                                            public bool Visible { set; get; }
                                       }

                                   public class DataItems : List<DataItem>
                                      {
                                        // here value of Visible is set manually on basis of calculations true or false
                                       }

                                  I want to bind this Visible property to the IsChecked property of CheckEdit
                                  something like <dxe:CheckEdit Margin="4,0,0,0" Name="chkbox" IsChecked="{Binding Path=Visible,Mode=TwoWay}" /> in xaml

                                  i tried a lot to find correct path n bind it. but could not bind it..
                                  so can you please help me to to that?

                                • (no info) 03.03.2015

                                  I had created Checkbox at each node by refering this link for treeListControl with checkbox at each node

                                  http://www.devexpress.com/Support/Center/p/Q332989.aspx

                                1 Solution

                                Creation Date Rating Importance Sort by
                                0

                                Hi Vipul,

                                Thank you for your feedback. I have attached a sample illustrating how to bind a checkbox in the TreeList control.
                                Please feel free to contact us if you need any additional assistance. We will be happy to help you.

                                Thanks,
                                Andrew

                                • (no info) 03.03.2015

                                  thanks for helping

                                  I had done it yesterday using
                                   <dxe:CheckEdit Margin="4,0,0,0" IsChecked="{Binding Path=Data.Visible}" />

                                  thank you for help...

                                • Hi Vipul,

                                  I am glad to hear that the problem has been resolved. Thank you for letting us know of your progress.
                                  Please feel free to contact us in case of any difficulty. We will be happy to assist you.

                                  Thanks,
                                  Andrew

                                • Matthew Crudgington 07.12.2016
                                  The only issue with this is that the NodeCheckStateChangedEvent doesn't fire as it's not the checkbox associated with the control.

                                  If there a way to get the node clicked using the DataTemplate approach Andrew?  Basically, recreate the event that provides TreelistNodeEventArgs.

                                  I'm using v14.1, has the ability to bind the Checked state to a view model property been added since this post?
                                • Hi Matthew,

                                  In version 14.1, you can use the ShowCheckboxes and CheckBoxFieldName properties to bind node check boxes to data. Take a look at the Checking Nodes article to learn more.

                                  Thanks,
                                  Alex

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2015 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners