Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[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
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Collapse]Vertical Grid
    Overview - VerticalGrid
    Main Features
   [Collapse]Concepts
    [Collapse]Binding to Data
      Binding to Data via Entity Framework (Code First)
      Binding to Data via Entity Framework or LINQ to SQL (Database First)
      Binding to Large Data (Database Server Mode)
     [Collapse]Custom Data Binding
       Custom Data Binding - Overview
       Action Types and Passed Parameters
       Methods to Update the VerticalGrid State in Actions
       ProcessCustomBinding - Available Binding Delegates
       Implementation of Typed Method Delegates
       Custom Binding Limitations
    [Expand]Data Representation Basics
    [Expand]Data Editing and Validation
    [Expand]Focus and Navigation
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
  [Expand]SpellChecker
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ProcessCustomBinding - Available Binding Delegates

To delegate the implementation of a grid view model population to Model-layer functions, call the view model's VerticalGridModel.ProcessCustomBinding method in a Controller. This method has several overloads with different sets of parameters. The result of the method call is that the intrinsic VerticalGrid view model object (VerticalGridModel) will be populated with the requested data. The view model object can then be passed to the VerticalGrid's Partial View as a Model and bound to the VerticalGrid with the extension's VerticalGridExtension.BindToCustomData method.

Expanded Method Overloads

From the following list of available overloads, you can select a specific overload depending on specific data processing features (such as sorting, filtering, paging) used within the VerticalGrid.

Overload List - C#
public void ProcessCustomBinding( 
   VerticalGridCustomBindingGetDataColumnCountHandler getDataColumnCountMethod,  
   VerticalGridCustomBindingGetDataHandler getDataMethod 
);
public void ProcessCustomBinding( 
   VerticalGridCustomBindingGetDataColumnCountHandler getDataColumnCountMethod,  
   VerticalGridCustomBindingGetDataHandler getDataMethod,  
   VerticalGridCustomBindingGetUniqueHeaderFilterValuesHandler getUniqueHeaderFilterValuesMethod
);
public void ProcessCustomBinding( 
   VerticalGridCustomBindingGetDataColumnCountHandler getDataColumnCountMethod,  
   VerticalGridCustomBindingGetDataHandler getDataMethod,  
   VerticalGridCustomBindingGetSummaryValuesHandler getSummaryValuesMethod
);
public void ProcessCustomBinding( 
   VerticalGridCustomBindingGetDataColumnCountHandler getDataColumnCountMethod,  
   VerticalGridCustomBindingGetDataHandler getDataMethod,  
   VerticalGridCustomBindingGetSummaryValuesHandler getSummaryValuesMethod,  
   VerticalGridCustomBindingGetUniqueHeaderFilterValuesHandler getUniqueHeaderFilterValuesMethod
);

Expanded Method Parameters

The following list describes all available method parameters. Each parameter points to a typed method delegate.

Parameter Name Is Required? Delegated Method Type Description
getDataColumnCountMethod Required VerticalGridCustomBindingGetDataColumnCountHandler Always provide an implementation for the delegated method to return the total number of data columns.
getDataMethod Required VerticalGridCustomBindingGetDataHandler Always provide an implementation for the delegated method to return the data requested by the VerticalGrid.
getSummaryValuesMethod Optional VerticalGridCustomBindingGetSummaryValuesHandler If you use summaries within the VerticalGrid, provide an implementation for the delegated method to calculate and return values of the required summaries.
getUniqueHeaderFilterValuesMethod Optional VerticalGridCustomBindingGetUniqueHeaderFilterValuesHandler If you use filtering and display header filter buttons within the VerticalGrid, provide an implementation for the delegated method to return unique values to be displayed in the header filter popup list invoked for a VerticalGrid row.

Expanded Method Usage

The VerticalGridModel.ProcessCustomBinding method's simple usage scenario is given below - only required method delegates are specified.

Controller Code:

The following code sample shows a more versatile way to use the VerticalGridModel.ProcessCustomBinding method.

Controller Code:

Expanded See Also

How would you rate this topic?​​​​​​​