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

list.datasource when null problem

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sebacipo
Top achievements
Rank 1
sebacipo asked on 09 Aug 2010, 06:40 PM
Hello:
first of all, i want to tell you that i´m new in telerik, and i ´ve searched this problem in the forum but i can´t solve it.
i'm working with a List in the report.
i'm using linq to set the list.datasource  (in the detail_ItemDataBinding event) and it works well, but, when the datasource.count() == 0, all the textbox inside the list give this error

An error has occured while processing TextBox 'textBox22':
The expression contains object 'fechaHora' that is not defined in the current context.

Telerik.Reporting.Processing.Table _listTriage = (Telerik.Reporting.Processing.Table)detailSection.ChildElements.Find("TriageList", true)[0];                   
                   var dsTriag= from d in dc.Guardia.Where(w => w.registroGuardia == id) select d;

it only appears when linq return 0 rows.

In the list i´ve 10 textbox with the property value = = Fields.[fechaHora]

Thanks for your help and sorry for my english.

Sebastián

1 Answer, 1 is accepted

Sort by
0
Accepted
Chavdar
Telerik team
answered on 12 Aug 2010, 01:07 PM
Hi sebacipo,

We have checked the case but when the result set has no data (Count = 0) just no rows appear and there is no exception. Could you please open a support ticket and send us the report definition so that we can investigate the actual definition of the Table item and the circumstances under which the problem is reproducible? Thank you in advance.

Best wishes,
Chavdar
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
sebacipo
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or