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 | 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(); } } } |
1 2 3 4 5 | @ (Html.C1().FlexPie().Bind( "Country" , "Count" , Url.Action( "RemoteBind_Read" ))) @section Description{ @Html .Raw(Resources.FlexPie.RemoteBind_Text0) } |