有时如明细表,需要点一下定位到明细表具体的ITEM上,可以用

document.getElementById("txtMeetingNo").scrollIntoView(); 来实现:) 比scrollTop这些好用,不过没有在FF等浏览器上测试过。

类似focus的定位 if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) //ITEM项
            }

但是用这种方法,回发后刷新页面时定位重置,只能在JSCRIPT里进行处理,所以我只能这样做:

前台:

}

后台代码:

类似focus的定位protected String ScrollScript
                

实现OK

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-03-01
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-05-30
  • 2021-12-03
  • 2021-09-09
  • 2021-11-07
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
相关资源
相似解决方案