FlexPie
Remote Data Bind
Features
Sample
Description
This view shows how to bind FlexPie to a remote data.
Source
RemoteBindController.cs
using System; using MvcExplorer.Models; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using C1.Web.Mvc; using C1.Web.Mvc.Serialization; namespace MvcExplorer.Controllers { public partial class FlexPieController : Controller { public ActionResult RemoteBind_Read([C1JsonRequest] CollectionViewRequest<CustomerOrder> requestData) { return this.C1Json(CollectionViewHelper.Read(requestData, CustomerOrder.GetCountryGroupOrderData())); } public ActionResult RemoteBind() { return View(); } } }
RemoteBind.cshtml
<c1-flex-pie binding-name="Country" binding="Count"> <c1-items-source read-action-url="RemoteBind_Read"></c1-items-source> </c1-flex-pie> @section Description{ @Html.Raw(FlexPieRes.RemoteBind_Text0) }
Documentation