My linq expression:
returns an iterator like this:
System.Linq.Enumerable.WhereSelectArrayIterator<P0300_DAL.Data.AnyObject,<>f__AnonymousType0<string,string,string,string,string,string,string>>
If I bind this as datasource to a radgrid everything works fine. But when I bind it to an radtreelist, the columns were generated but the content is empty.
Do I have to do more than:
?
Here is my treelist declaration:
Root root = Root.GetInstance();
var betriebe =
from w
in
root.Query(Betrieb.Entity).ToArray()
select
new
{
Betriebegruppe =
"0"
,
Betrieb = w.Get(Betrieb.Werk),
Name = w.Get(Betrieb.Name),
Strasse = w.Get(Betrieb.Strasse),
PLZ = w.Get(Betrieb.Postleitzahl),
Ort = w.Get(Betrieb.Ort),
EKORG = w.Get(Betrieb.Einkaufsorganisation)
};
returns an iterator like this:
System.Linq.Enumerable.WhereSelectArrayIterator<P0300_DAL.Data.AnyObject,<>f__AnonymousType0<string,string,string,string,string,string,string>>
If I bind this as datasource to a radgrid everything works fine. But when I bind it to an radtreelist, the columns were generated but the content is empty.
Do I have to do more than:
treelist.DataSource = betriebe;
Here is my treelist declaration:
<
telerik:RadTreeList
runat
=
"server"
ID
=
"rtl"
AllowSorting
=
"True"
AllowMultiItemSelection
=
"True"
CausesValidation
=
"false"
ParentDataKeyNames
=
"Betriebegruppe"
DataKeyNames
=
"Betrieb"
AllowPaging
=
"True"
PageSize
=
"20"
Width
=
"100%"
>
<
Columns
>
<
telerik:TreeListCheckBoxColumn
></
telerik:TreeListCheckBoxColumn
>
</
Columns
>
<
ClientSettings
>
<
Selecting
AllowItemSelection
=
"true"
UseSelectColumnOnly
=
"true"
/>
</
ClientSettings
>
</
telerik:RadTreeList
>