BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
S.No |
Query |
Response |
1. |
Can I use this way to bind the OlapClient control? |
No, the OlapClient control doesn’t support relational source. Meanwhile the PivotGrid control has the sample facilities like in OlapClient. |
2. |
And How to pass parameters to the relational service? |
We have prepared a sample where you can pass the parameters from client side(Scripts) to server side(WCF Service) through “customObject”. Please find the sample and code example in the following links. Sample Link: http://www.syncfusion.com/downloads/support/forum/121667/ze/WebApplication44165547287 Code: [Javascript] <script type="text/javascript"> $(function () { $("#PivotGrid1").ejPivotGrid({ url: "../wcf/RelationalService.svc", title: "OLAP Browser",beforeServiceInvoke: "beforeserviceinvoke", afterServiceInvoke: "afterserviceinvoke" }); });
//This event fires before the service called. function beforeserviceinvoke(args) { if(args.action=="initialize") // You can choose the method in WCF Service to send the parameter. this.model.customObject = "Your Parameter here"; }
//This event fires after the service called. function afterserviceinvoke(args) { this.model.customObject = "Your Parameter here"; } public Dictionary<string, object> InitializeGrid(string action,string customObject) { //The parameter receives in customObject dynamic customData = serializer.Deserialize<dynamic>(customObject.ToString()); ///// |
S.No |
Query |
Response |
1. |
PivotSchemaDesigner section shows all fields of the DataView, and I don't want show all of them |
We have prepared a sample where you can hide any fields in PivotTable Field List. Please find the sample and code example in the below links. Sample Link: http://www.syncfusion.com/downloads/support/forum/121667/ze/WebApplication44-499798983 Code: [Javascript] function rendersuccess(args) { for (var i = 0; i < $("#schemaFieldTree ul li a").length; i++) {
if( $("#schemaFieldTree ul li a")[i].text == "Your field name here") { $("#schemaFieldTree ul li")[i].remove(); }
} |
2. |
I want to configure the header text of the fields, the numeric format.... How to configure the fields? |
The field names in PivotTable Field List must be same as that of in the database. The fields in PivotTable Field List will be used for UI operations like check, uncheck and dragging. On doing so, we need to fetch new values from database, which would be possible if the name in PivotTable Field List and DB matches. This is the our current behavior. |
Hi Jorge,
As mentioned in our previous response, the field names in PivotTable Field List must be same as that of in the database. It is possible to modify the field headers but for further operations like check, uncheck, dragging... it isn’t fetching the correct values from database since the names are taken from PivotTable Field List to match the fields in database.
Regards,
Ramesh G.