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

How to resolve an Array in a table column

5 Answers 936 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 05 Nov 2018, 10:20 AM

Hello,

i have problems to resolve ExpensesData[] (Indexer,Array or what ever) in my table column.

Please see the attached file.

In the column "Fahrtzeit" I become the message --> ReportLibraryTest.DriverReportService.ExpensesData[]

What can I do to get to the data.

Is there an easy way to resolve contents of lists or arrays into table columns?

 

Thats the implementation of ExpensesData[] in the Webservice:

  [System.Runtime.Serialization.DataMemberAttribute()]
        public ReportLibraryTest.DriverReportService.ExpensesData[] Expenses {
            get {
                return this.ExpensesField;
            }
            set {
                if ((object.ReferenceEquals(this.ExpensesField, value) != true)) {
                    this.ExpensesField = value;
                    this.RaisePropertyChanged("Expenses");
                }
            }
        }

 

thanks in advance.

 

5 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 08 Nov 2018, 08:23 AM
Hello Simon,

The Expenses field from the DataSource is a collection, hence cannot be displayed in a TextBox. It should be bound to a data item (e.g. List).

You can replace the TextBox in the Table column "Fahrtzeit" with a List and use Bindings to set it DataSource to Fields.Expenses.
In the report designer it will be necessary to type manually the field names of the data stored in the Expenses collection inside the List TextBox. It there are no named fields (i.e. if the collection contains simple type, e.g. int) you should use Fields.Item to get the current value from the collection.
Check the attached screenshot for clarity.

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Simon
Top achievements
Rank 1
answered on 08 Nov 2018, 12:34 PM

Thank you for your explanation.

I have seen your screenshot an i dont know how to add row group and column group to the list.

Sorry, I am not so familiar with Telerik Reporting.

Can I take a table instead of the list?

Then I would have a table in table.

 

0
Todor
Telerik team
answered on 13 Nov 2018, 08:15 AM
Hi Simon,

To add groups to the List you may select the list and use Group Explorer - for example click on the  ellipses beside DetailGroup and select Add Group from the context menu.
You may use also Table or other data item instead of List.

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
faris
Top achievements
Rank 1
answered on 07 May 2019, 07:25 AM

i got problem for grouping and listing the detail.

this is my database

RepType | name

Team A   | Saet

Team A   | Mickey

Team B   | John

In report. Group By Reptype.

its will show

Team A               Team B

Saet                   John

Mickey

 

Please help me

 

0
Todor
Telerik team
answered on 09 May 2019, 11:21 AM
Hello faris,

I have attached a sample report demonstrating how to use Report Group (grouping by RepType) and list the names for the corresponding group. I am not completely sure what the exact scenario is, so let us know if you have additional questions.

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Simon
Top achievements
Rank 1
Answers by
Todor
Telerik team
Simon
Top achievements
Rank 1
faris
Top achievements
Rank 1
Share this question
or