FlexPie
Remote Data Bind
This view shows how to bind FlexPie to a remote data.
Features
Description
This view shows how to bind FlexPie to a remote data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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(); } } } |
1 2 3 4 5 6 7 | < 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) } |