How can I auto commit editing of item in a list that is the view of a naviagation item?
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 Howard,
Thanks for contacting us.
>>How can I auto commit editing of item in a list that is the view of a naviagation item?
To accomplish this, set the AutoCommitListView property of the WinDetailViewController class to True. See the AutoCommitListView Property help topic for more details.
You can set this option via a custom ViewController.
Let me know in case of any further difficulty.
Thanks,
Dennis
I am confused. This a the list view of a navigational item not a nested listview of a detail view.
Hello Howard,
Thanks for the update and sorry for the possible confusion. I understand your task, and suggested the best solution to accomplish this in XAF. Have you already tried this solution? Did it work for you?
Below is some example code that functions correctly for me:
Imports System Imports DevExpress.ExpressApp Imports DevExpress.ExpressApp.Win.SystemModule Namespace MainDemo.Module.Win Public Class ViewController1 Inherits ViewController Protected Overrides Sub OnActivated() MyBase.OnActivated() Dim controller As WinDetailViewController = Frame.GetController(Of WinDetailViewController)() If controller IsNot Nothing Then controller.AutoCommitListView = True End If End Sub End Class End Namespace
Let me know in case of any further difficulty.
Thanks,
Dennis
This works great, thanks.