Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1495
Setting up Virtual Scrolling
posted

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.