2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You can display the name of the hierarchy, instead of the dimension name in SplitButton inside the AxisElementBuilder of OLAPClient using the following code example. JS <script type="text/javascript"> $(function () { $("#OlapClient1").ejOlapClient({ url: "../wcf/OlapClientService.svc", title: "OLAP Browser", renderSuccess: "onRenderControlSuceess" }); }); function onRenderControlSuceess(args) { for (var i = 0; i <= $(".splitBtn").length; i++) { if ($(args.element).find(".splitBtn:eq(" + i + ")").children().attr("title") != "Measures") { Title = $(args.element).find(".splitBtn:eq(" + i + ")").children().attr("title"); Text = Title.split("-")[1]; $(args.element).find(".splitBtn:eq(" + i + ")").children().text(Text); } } } </script> MVC @Html.EJ().Olap().OlapClient("OlapClient1").Url("../wcf/OlapClientService.svc").Title("OLAP Browser").ClientSideEvents(oEve => { oEve.RenderSuccess("onRenderControlSuceess"); }) <script> function onRenderControlSuceess(args) { for (var i = 0; i <= $(".splitBtn").length; i++) { if ($(args.element).find(".splitBtn:eq(" + i + ")").children().attr("title") != "Measures") { Title = $(args.element).find(".splitBtn:eq(" + i + ")").children().attr("title"); Text = Title.split("-")[1]; $(args.element).find(".splitBtn:eq(" + i + ")").children().text(Text); } } } </script> ASP.NET <ej:OlapClient ID = "OlapClient1" runat = "server" Url= "../wcf/OlapClientService.svc" Title= "OLAP Browser"> <ClientSideEvents RenderSuccess = "onRenderControlSuceess" /> </ej:OlapClient> <script> function onRenderControlSuceess(args) { for (var i = 0; i <= $(".splitBtn").length; i++) { if ($(args.element).find(".splitBtn:eq(" + i + ")").children().attr("title") != "Measures") { Title = $(args.element).find(".splitBtn:eq(" + i + ")").children().attr("title"); Text = Title.split("-")[1]; $(args.element).find(".splitBtn:eq(" + i + ")").children().text(Text); } } } </script>
|
2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.