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

duplicate last names are not displayed in report parameter dropdown

0 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 08 May 2020, 12:22 PM

Hello,

I have an asp.net webproject including telerik reporting.

In a report there are several report parameters, two with datetime and one with string and multivalue.

In the report parameter with string and multivalue should be load the lastnames of the driver (car driver)

The company has 36 drivers and two of them have the same last name, here "Rick", namely Dennis and Micha Rick.

All driver are shown in the dropdown, except "Dennis Rick".

I don't know why.

Here is the class with its method for the datasource for this report parameter:

namespace ReportLibrary1
{
   public  class MyEmployees
    {
        //Report Parameter Driver LastName
        public object[] GetEmployees()
 
        {
            ResourcesDomainService rdservice = new ResourcesDomainService();
            object[] employees = new object[rdservice.Employees.Count];
 
            employees = rdservice.Employees.Where(x => x.DriverId.Length > 0).OrderBy(x => x.LastName).ToArray();
 
            return employees;
        }
    }
}

 

When I make a breakpoint in the row and go with my mouse pointer over empoyees I can see that all drivers are returned including Dennis Rick.

But in the report "Dennis Rick" is missing in the drodown list.

Have somebody an idea why it is so?

 

Regards

Simon

 

 

 

 

 

 

 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Simon
Top achievements
Rank 1
Share this question
or