- Home
- Forum
- ASP.NET MVC (Classic)
- How to limit the dimension in Cube Dimension Browser
How to limit the dimension in Cube Dimension Browser
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 find the sample in the below link based on your requirement.
Sample Link:
https://www.syncfusion.com/downloads/support/forum/120750/ze/OlapClient89997364
Please let us know if you have any concerns.
Regards,
Alagarsamy D.
The demo for the requested sample is not available directly in our online sample browser. So we have hosted a sample in a separate server. Please find the online link below.
http://staging.syncfusion.com:8123/SampleOlapClient/OlapClient.aspx
Regards,
Ramesh G.
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");
Could you please provide us a detailed screen-shot about the reported dimension. We would like to view the dimension in a fully expanded state like in the below screen-shot. This will help us to proceed further.
Regards,
Ramesh G.
Attachment: Element_Editor_Window_7b18c7cb.zip
Please find our response below.
|
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. |
Regards,
Ramesh G.
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.
- 17 Replies
- 3 Participants
-
SJ Shreekant Jadon
- Oct 8, 2015 03:26 PM UTC
- Oct 26, 2015 10:58 AM UTC