This is a migrated thread and some comments may be shown as answers.

how to Add amultiple drilldown action programatically

3 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Napa
Top achievements
Rank 1
Napa asked on 27 Jun 2013, 07:55 PM
  1. 1

3 Answers, 1 is accepted

Sort by
0
Unknown
Top achievements
Rank 1
answered on 02 Jul 2013, 04:22 PM
You can create what you need using the designer furst and aftre that to check the code in InitializeComponent. Then you can easily add the code snippet needed to your own code, outside the report.
0
Napa
Top achievements
Rank 1
answered on 02 Jul 2013, 06:58 PM
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";

I
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
0
Stef
Telerik team
answered on 05 Jul 2013, 04:22 PM
Hello Napa,

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.

Tags
General Discussions
Asked by
Napa
Top achievements
Rank 1
Answers by
Unknown
Top achievements
Rank 1
Napa
Top achievements
Rank 1
Stef
Telerik team
Share this question
or