Title: scroll to a specific row , the first time to load the datagrid. using scrollview Post by: catpaw on May 26, 2015, 09:00:24 AM Hi , I'm using the scrollview extension
if I want to scroll to a row that is not in the first 50 rows, the scrollTo does not work. here my datagrid properties: Code: pagination:false, the only way that worked was putting the method when loading the datagrid. when I load the datagrid need to make a scrollTo to the row that already have a variable: Code: onLoadSuccess: function(data){ the method scrollTo put it in the onloadSucces event, the first time works fine, but when I navigate in the scroll , the datagrid is reloaded then the scroll back to row, I can not continue to browse the rows of the datagrid Where should I put the method or the way the ScrollView can load all the data and is not limited by pageSize??? thanks Title: Re: scroll to a specific row , the first time to load the datagrid. using scrollview Post by: stworthy on May 26, 2015, 06:51:46 PM Please refer to this topic http://www.jeasyui.com/forum/index.php?topic=4592.0
Title: Re: scroll to a specific row , the first time to load the datagrid. using scrollview Post by: catpaw on May 27, 2015, 06:41:41 AM hi sworthy
I had already read this post, the funny thing is that when you put a fixed number works. but when I put the variable is not working. for the variable to the index where the scroll will be made , I have this code: Code: click: function (e) { what I'm trying to do. is that when they give click a point on a chart . highlight the datagrid rows that are related to that point. and at the same time, then scroll to the first row that matches the point so, Also try to do in the onloadsucces method but only works for the first time , as again after reload the datagrid, scroll back to the given row What I can do? thanks |