So in the code behind, I assign my grid's datasource from a datatable. The datatable has all the records I need, but I want to implement virtual scrolling. I tried just turning on virtual scrolling for the grid but then I get a javascript error
Microsoft JScript runtime error: Unable to get value of the property 'scrollTop': object is null or undefined on line
/* memorize last scroll location */ this._lastTop = this._vsb().scrollTop;
So I'm completely unsure how to make this work. My code to bind is
dtData = objAsset.ReturnAssetList(ddWorkCenter.SelectedValue) gridAsset.DataSource = dtData gridAsset.DataBind()
How can I make this work? Help is appreciated.
That was it, thank you!
Hi Irri,
Make sure you have a height set on the grid. Your error indicates this._vsb() was null, which means there is no vertical scrollbar to use for virtual scrolling.
regards,David Young