BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Shreekant,
Sorry for the delay.
Kindly refer the below code snippet to meet your requirement.
Code Snippet: [C#]
void OlapClient1_PreRender(object sender, EventArgs e)
{
TreeNodeCollection tree = this.OlapClient1.CubeDimensionBrowser.Nodes[0].ChildNodes;
for (int i = tree.Count - 1; i >= 0; i--)
{
if (tree[i].Text != "Customer" || tree[i].Text != "Employee")
tree.RemoveAt(i);
}
}
Here in the above example, the “!=” symbol will skip the Dimensions under the name “Customer” & “Employee” and hides the rest.
Please let us know if you have any concerns on this.
Regards,
Alagarsamy D
Thanks for the update.
Please let us know if you have any query.
Regards,
Ramesh G.
DimensionElement dimensionElementColumn = new DimensionElement(); // Specifying the name of the dimension element dimensionElementColumn.Name = "dimPlacementDate"; // Specifying the hierarchy and level name dimensionElementColumn.AddLevel("Placement Date", "Year");
Ramesh G.
S.No |
Query |
Response |
1. |
Now I want to restrict the user from selecting that blank field. Now I want to disable that blank field anyhow forever. So is there any property for the Element Editor Window Element fields so we can disable them? |
|
We have prepared a sample where we can hide the desired member inside Member Editor. Please find the sample in the following link. Sample Link: http://www.syncfusion.com/downloads/support/directtrac/145744/ze/Olapclient_snapdate_(2)-781093777 NOTE: We are using Microsoft TreeView control and it doesn’t have option to disable any child node. Hence we have hidden "(blank)" inside the Member Editor. | ||
2. |
Which is the event that got fired when we click the Element Editor Window and its check boxes? It will be really helpful if you provide some event and some piece of code to handle the check boxes of Element Editor Window. |
We have two events w.r.t Member Editor which arises when we open the Member Editor and when we click "OK" button in the Member Editor. While clicking "OK" button, its respective event will be raised where you can view the checked state of the node via the argument " EditorOkBtnClicked". Please utilize the above sample where the events related to the Element Editor are added for your convenience. |
We had created a new incident under the incident id(146091). Please follow-up with that incident for further assistance.
Direct Trac Log-In Link: https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Regards,
Ramesh G.