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
  [Collapse]Card View
    Overview - CardView
    Main Features - Card View
   [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 CardView State in Actions
       ProcessCustomBinding - Available Binding Delegates
       Implementation of Typed Method Delegates
       Custom Binding Limitations
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Expand]Data Editing and Validation
  [Expand]Vertical Grid
  [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 CardViewModel.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 CardView view model object (CardViewModel) will be populated with the requested data. The view model object can then be passed to the CardView's Partial View as a Model and bound to the CardView with the extension's CardViewExtension.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 CardView.

Overload List - C#
public void ProcessCustomBinding( 
   CardViewCustomBindingGetDataCardCountHandler getDataCardCountMethod,  
   CardViewCustomBindingGetDataHandler getDataMethod 
);
public void ProcessCustomBinding( 
   CardViewCustomBindingGetDataCardCountHandler getDataCardCountMethod,  
   CardViewCustomBindingGetDataHandler getDataMethod,  
   CardViewCustomBindingGetUniqueHeaderFilterValuesHandler getUniqueHeaderFilterValuesMethod 
);
public void ProcessCustomBinding( 
   CardViewCustomBindingGetDataCardCountHandler getDataCardCountMethod,  
   CardViewCustomBindingGetDataHandler getDataMethod,  
   CardViewCustomBindingGetSummaryValuesHandler getSummaryValuesMethod 
);
public void ProcessCustomBinding( 
   CardViewCustomBindingGetDataCardCountHandler getDataCardCountMethod,  
   CardViewCustomBindingGetDataHandler getDataMethod,  
   CardViewCustomBindingGetSummaryValuesHandler getSummaryValuesMethod,  
   CardViewCustomBindingGetUniqueHeaderFilterValuesHandler 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
getDataCardCountMethod Required CardViewCustomBindingGetDataCardCountHandler Always provide an implementation for the delegated method to return the total number of data cards.
getDataMethod Required CardViewCustomBindingGetDataHandler Always provide an implementation for the delegated method to return the data requested by the CardView.
getSummaryValuesMethod Optional CardViewCustomBindingGetSummaryValuesHandler If you use summaries within the CardView, provide an implementation for the delegated method to calculate and return values of the required summaries.
getUniqueHeaderFilterValuesMethod Optional CardViewCustomBindingGetUniqueHeaderFilterValuesHandler If you use filtering and display header filter buttons within the CardView, provide an implementation for the delegated method to return unique values to be displayed in the header filter popup list invoked for a CardView column.

Expanded Method Usage

The CardViewModel.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 CardViewModel.ProcessCustomBinding method.

Controller Code:

Expanded See Also

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