3 Answers, 1 is accepted
We are using 3 group level toggels.we need to expand all 3 groups in run time.I marked toggle mark intially expanded but its only expanded first level not all the group level.find attached code and run time sample report
// cBA_CATEGORY_CODEDataTextBox
//
toggleVisibilityAction3.Targets.AddRange(new Telerik.Reporting.IToggleVisibilityTarget[] {
this.cBA_CODEGroup});
this.cBA_CATEGORY_CODEDataTextBox.Action = toggleVisibilityAction3;
this.cBA_CATEGORY_CODEDataTextBox.CanGrow = true;
this.cBA_CATEGORY_CODEDataTextBox.KeepTogether = false;
this.cBA_CATEGORY_CODEDataTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.02083333395421505, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch));
this.cBA_CATEGORY_CODEDataTextBox.Name = "cBA_CATEGORY_CODEDataTextBox";
this.cBA_CATEGORY_CODEDataTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.4302082061767578, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.10000000149011612, Telerik.Reporting.Drawing.UnitType.Inch));
this.cBA_CATEGORY_CODEDataTextBox.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(6, Telerik.Reporting.Drawing.UnitType.Point);
this.cBA_CATEGORY_CODEDataTextBox.StyleName = "Data";
this.cBA_CATEGORY_CODEDataTextBox.Value = "=Fields.CBA_CATEGORY_CODE + \" - \" + Fields.CBA_CATEGORY_NAME";
// cBA_CODE DataTextBox
toggleVisibilityAction2.Targets.AddRange(new Telerik.Reporting.IToggleVisibilityTarget[] {
this.ProjectGroup});
this.cBA_CODEDataTextBox.Action = toggleVisibilityAction2;
this.cBA_CODEDataTextBox.CanGrow = true;
this.cBA_CODEDataTextBox.KeepTogether = false;
this.cBA_CODEDataTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.1430555582046509, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch));
this.cBA_CODEDataTextBox.Name = "cBA_CODEDataTextBox";
this.cBA_CODEDataTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(3.8020832538604736, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.10000000149011612, Telerik.Reporting.Drawing.UnitType.Inch));
this.cBA_CODEDataTextBox.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(6, Telerik.Reporting.Drawing.UnitType.Point);
this.cBA_CODEDataTextBox.StyleName = "Data";
this.cBA_CODEDataTextBox.Value = "=Fields.CBA_CODE + \" - \" + Fields.CBA_NAME";
//
// projectTextbox
//
toggleVisibilityAction1.Targets.AddRange(new Telerik.Reporting.IToggleVisibilityTarget[] {
this.detail});
this.projectTextbox.Action = toggleVisibilityAction1;
this.projectTextbox.CanGrow = true;
this.projectTextbox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.698610782623291, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch));
this.projectTextbox.Name = "projectTextbox";
this.projectTextbox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.8701391220092773, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.10000000149011612, Telerik.Reporting.Drawing.UnitType.Inch));
this.projectTextbox.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(6, Telerik.Reporting.Drawing.UnitType.Point);
this.projectTextbox.StyleName = "Data";
this.projectTextbox.Value = "= Fields.PROJECT_NO + \" - \" + Fields.PROJ_DESC";
IWe are using 3 group level toggels.we need to expand all 3 groups in run time.I marked toggle mark intially expanded but its only expanded first level not all the group level.find attached code and run time sample report
If you have not changed the action targets visibility, the report should render with expanded groups (check the attached sample report definition). You can iterate the report Items and set their Visible property as required.
If you need further help, we need the whole report definition and details about the scenario. Feel free to open a support ticket and send us the details.
Regards,
Stef
Telerik
Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.