[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Collapse]DevExpress.Web.ASPxTreeList.Scripts
   [Collapse]ASPxClientTreeList Class
     ASPxClientTreeList Members
     ASPxClientTreeList Constructor
    [Expand]ASPxClientTreeList Properties
    [Collapse]ASPxClientTreeList Events
      BatchEditChangesCanceling Event
      BatchEditChangesSaving Event
      BatchEditConfirmShowing Event
      BatchEditEndEditing Event
      BatchEditNodeDeleting Event
      BatchEditNodeInserting Event
      BatchEditNodeRecovering Event
      BatchEditNodeValidating Event
      BatchEditStartEditing Event
      BatchEditTemplateCellFocused Event
      BeginCallback Event
      CallbackError Event
      ColumnResized Event
      ColumnResizing Event
      ContextMenu Event
      CustomButtonClick Event
      CustomDataCallback Event
      CustomizationWindowCloseUp Event
      EndCallback Event
      EndDragNode Event
      FocusedCellChanging Event
      FocusedNodeChanged Event
      NodeClick Event
      NodeCollapsing Event
      NodeDblClick Event
      NodeExpanding Event
      NodeFocusing Event
      SelectionChanged Event
      StartDragNode Event
      ToolbarItemClick Event
    [Expand]ASPxClientTreeList Methods
   [Expand]ASPxClientTreeListBatchEditApi Class
   [Expand]ASPxClientTreeListBatchEditChangesCancelingEventArgs Class
    ASPxClientTreeListBatchEditChangesCancelingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditChangesSavingEventArgs Class
    ASPxClientTreeListBatchEditChangesSavingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditConfirmShowingEventArgs Class
    ASPxClientTreeListBatchEditConfirmShowingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditEndEditingEventArgs Class
    ASPxClientTreeListBatchEditEndEditingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditNodeDeletingEventArgs Class
    ASPxClientTreeListBatchEditNodeDeletingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditNodeInsertingEventArgs Class
    ASPxClientTreeListBatchEditNodeInsertingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditNodeRecoveringEventArgs Class
    ASPxClientTreeListBatchEditNodeRecoveringEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditNodeValidatingEventArgs Class
    ASPxClientTreeListBatchEditNodeValidatingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditStartEditingEventArgs Class
    ASPxClientTreeListBatchEditStartEditingEventHandler Delegate
   [Expand]ASPxClientTreeListBatchEditTemplateCellFocusedEventArgs Class
    ASPxClientTreeListBatchEditTemplateCellFocusedEventHandler Delegate
   [Expand]ASPxClientTreeListCellInfo Class
   [Expand]ASPxClientTreeListColumn Class
   [Expand]ASPxClientTreeListColumnResizedEventArgs Class
    ASPxClientTreeListColumnResizedEventHandler Delegate
   [Expand]ASPxClientTreeListColumnResizingEventArgs Class
    ASPxClientTreeListColumnResizingEventHandler Delegate
   [Expand]ASPxClientTreeListContextMenuEventArgs Class
    ASPxClientTreeListContextMenuEventHandler Delegate
   [Expand]ASPxClientTreeListCustomButtonEventArgs Class
    ASPxClientTreeListCustomButtonEventHandler Delegate
   [Expand]ASPxClientTreeListCustomDataCallbackEventArgs Class
    ASPxClientTreeListCustomDataCallbackEventHandler Delegate
   [Expand]ASPxClientTreeListEndDragNodeEventArgs Class
    ASPxClientTreeListEndDragNodeEventHandler Delegate
   [Expand]ASPxClientTreeListExportFormat Class
   [Expand]ASPxClientTreeListFocusedCellChangingEventArgs Class
    ASPxClientTreeListFocusedCellChangingEventHandler Delegate
   [Expand]ASPxClientTreeListNodeEventArgs Class
    ASPxClientTreeListNodeEventHandler Delegate
   [Expand]ASPxClientTreeListStartDragNodeEventArgs Class
    ASPxClientTreeListStartDragNodeEventHandler Delegate
   [Expand]ASPxClientTreeListToolbarItemClickEventArgs Class
    ASPxClientTreeListToolbarItemClickEventHandler Delegate
    ASPxClientTreeListValuesCallback Delegate
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

ASPxClientTreeList.FocusedNodeChanged Event

Fires in response to changing node focus.

Namespace:DevExpress.Web.ASPxTreeList.Scripts
Assembly:JavaScript

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type ASPxClientProcessingModeEventArgs containing data related to this event.

The following ASPxClientProcessingModeEventArgs properties provide information specific to this event.
Property Description
processOnServer Gets or sets a value that specifies whether the event should be finally processed on the server side.

Expanded Remarks

The FocusedNodeChanged event is raised when an end-user moves focus from one node to another. The focused node's key value is returned by the GetFocusedNodeKey method.

The event parameter's processOnServer property enables you to specify where the current user action should be processed - either on the client side or on the server side. If this property is set to false in a client event's handler, the event is completely handled on the client side without a postback to the server. Setting the processOnServer property to true indicates that the final processing of the event should be performed on the server side. During such a round trip the ASPxTreeList.FocusedNodeChanged server-side event is fired, which if handled, allows any desired server-side action to be performed.

Note

If the TreeListSettingsBehavior.ProcessFocusedNodeChangedOnServer property is set to true, setting the event parameter's processOnServer property has no effect. In this instance, the ASPxTreeList.FocusedNodeChanged server-side event is always fired after the FocusedNodeChanged client event.

The focused node feature is enabled if the TreeListSettingsBehavior.AllowFocusedNode property is set to true.

Expanded Example

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T228416.

This example demonstrates how to use the ASPxClientTreeList.GetFocusedNodeKey  method to expand and collapse tree nodes based on the state of a node (collapsed or expanded). You can get the node state by calling the ASPxClientTreeList.GetNodeState method in the client-side ASPxTreeList.FocusedNodeChanged event.


Demo limitation: if you close the topmost parent node and do not have other nodes except that one, you will have to expand this node by clicking the Expand Button.

Expanded See Also

Is this topic helpful?​​​​​​​