FlexPie
Remote Data Bind
Features
Sample
Description
This view shows how to bind FlexPie to a remote data.
Source
RemoteBindController.cs
using System.Web.Mvc; using C1.Web.Mvc; using C1.Web.Mvc.Serialization; using MvcExplorer.Models; 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
@(Html.C1().FlexPie().Bind("Country", "Count", Url.Action("RemoteBind_Read"))) @section Description{ @Html.Raw(Resources.FlexPie.RemoteBind_Text0) }
Documentation