O
Ole V.-M.
Greetings,
i have a UserControl, that contains a DataList. That DataList contains
as items other DataLists.
example:
DataList A Row 1
Nested DataList 1
Row 1
Row 2
Row 3
DataList A Row 2
Nested DataList 2
Row 1
Row 2
Row 3
DataList A is populated with a list of Categories, and the "Sub-
DataLists" are assigned a DataTable that contains a list of products
for the category, the "Parent-DataList" is assigned to.
The subdatalists are created dynamically by assigning a DataTable to
the DataSource-Property of DataList A:
DataSource='<%# GetDataSource(Container.DataItem("CategoryID"))%>'
The problem with this scenario is, that the amount of data is very
large and the product lists contain pictures, so that the whole page
needs too much time to load.
What i want to do now, is to bind the "sub-datalists" only when the
user scrolls to the sub-datalists location. PageFlow is no option,
since all products have to be visible.
How can i accomplish this? I realize i have to implement some kind of
javascript functionality or Ajax enable this control. But how do i
assign the datasources to the subdatalists and bind them from
clientside when the subdatalist is scrolled to.
Any suggestions appreciated.
Thanks in advance
Ole
i have a UserControl, that contains a DataList. That DataList contains
as items other DataLists.
example:
DataList A Row 1
Nested DataList 1
Row 1
Row 2
Row 3
DataList A Row 2
Nested DataList 2
Row 1
Row 2
Row 3
DataList A is populated with a list of Categories, and the "Sub-
DataLists" are assigned a DataTable that contains a list of products
for the category, the "Parent-DataList" is assigned to.
The subdatalists are created dynamically by assigning a DataTable to
the DataSource-Property of DataList A:
DataSource='<%# GetDataSource(Container.DataItem("CategoryID"))%>'
The problem with this scenario is, that the amount of data is very
large and the product lists contain pictures, so that the whole page
needs too much time to load.
What i want to do now, is to bind the "sub-datalists" only when the
user scrolls to the sub-datalists location. PageFlow is no option,
since all products have to be visible.
How can i accomplish this? I realize i have to implement some kind of
javascript functionality or Ajax enable this control. But how do i
assign the datasources to the subdatalists and bind them from
clientside when the subdatalist is scrolled to.
Any suggestions appreciated.
Thanks in advance
Ole