Oct 24, 2013, 11:04 AM
[CLOSED] TreeStore with IHierarchicalDataSource
Hi,
I'm trying to bind a TreePanel's Store with a IHierarchicalDataSource with this (VB.NET) code:
This approach works just fine with an ASP.NET TreeView, but with the TreeStore I get a NullReferenceException at the .DataBind() step.
Is this supported? I haven't found much documentation. Can you provide an example?
Motivation: I follow this approach to refresh the content of a GridPanel with server-side code and I'd rather do the same with the TreePanel than reload with client-side code.
Thanks!
I'm trying to bind a TreePanel's Store with a IHierarchicalDataSource with this (VB.NET) code:
sender.Store(0).DataSource = New AttivitaHDataSource(GetDTAttivita(AddressOf adapter.Attivita.Fill))
sender.Store(0).DataBind()
AttivitaHDataSource is a hierarchical data source built from a datatable. The constructor's argument is the datatable.This approach works just fine with an ASP.NET TreeView, but with the TreeStore I get a NullReferenceException at the .DataBind() step.
Is this supported? I haven't found much documentation. Can you provide an example?
Motivation: I follow this approach to refresh the content of a GridPanel with server-side code and I'd rather do the same with the TreePanel than reload with client-side code.
Thanks!
Last edited by Daniil; Nov 01, 2013 at 5:03 AM.
Reason: [CLOSED]