Ticket S31575
Visible to All Users

Add a new property which will define a valid ParentField value for root nodes

created 16 years ago

Given the table t_tree: id, parent_id, name, archived
Depending on a checkBox "show archived too" the SelectCommand is set to
  "select * from t_tree"
or
  "select * from t_tree where not archived"
After setting a Parent-Record/Node to "archived=true" the childs (unchanged/still archived=false) will displayed in the root-level of the TreeView (because the parent "is missing").
What is a possible solution for my problem?
Thanks, Stefan

Comments (1)
DevExpress Support Team 16 years ago

    Hi,
    A new property has been added:
    public object ASPxTreeList.RootValue { get; set; }
    The property is hidden from the property-grid and is not stored in the ViewState.
    You should assign its value in code, before data binding.
    Thanks,
    Alex, R&D

    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.