Hi Ulisses,
You can use something like this in your Widget initScript:
$(this.container).data(“dxPivotGrid”).getDataSource().expandHeaderItem(“row”, [“Pasta”]);
Check out this demo from DevExpress:
https://js.devexpress.com/Demos/WidgetsGallery/Demo/PivotGrid/Overview/jQuery/Light/
BTW, if you want to use all of the JS DevExtreme controls in C# / VB.NET, we provide the complete control set as a premium extension! Send a message to sales AT wisej.com if you’re interested. We also offer the Telerik Kendo, Syncfusion Essential JS 1, and Infragistic’s Ignite UI control sets.
Let me know if you have any questions!
Best regards,
Levie
Hi Ulisses,
I’m glad to hear you figured it out! You can also wrap up the DevExtreme (DX) widget in the context of the Wisej widget.
For example:
this.widget = $(this.container).data(“dxPivotGrid”); Note: "this" is the client-side Wisej widget.
It makes later access of the DX widget easier.
From the Server (C#):
widget1.Call("this.widget.doSomething", arg1, arg2);
From the Client (Console in Chrome):
widget("id_XX").widget.doSomething(arg1, arg2); Note: You can find the ID of the Wisej widget using the DOM explorer in chrome.
If you want to get the result of JS execution on the server, check out this post:
HTH,
Levie
It worked! I got it with:
Widget1.Eval(“$(this.container).data(“”dxPivotGrid””).getDataSource().expandHeaderItem(“”row””, [“”Pizza””]);”)
or
Widget1.Eval(“$(this.container).data(“”dxPivotGrid””).getDataSource().expandAll(“”Categoria””);”)
Thank you so much, Levie!
Please login first to submit.