From ebd4a3579cf656fc38a26119f781fbe781f0c9ec Mon Sep 17 00:00:00 2001 From: scottdurow Date: Thu, 24 Sep 2015 15:02:30 +0100 Subject: [PATCH] Fixes #71 --- SparkleXrmSource/SparkleXrmUI/GridEditor/CrmPagerControl.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SparkleXrmSource/SparkleXrmUI/GridEditor/CrmPagerControl.cs b/SparkleXrmSource/SparkleXrmUI/GridEditor/CrmPagerControl.cs index 43149ce8..4d366e07 100644 --- a/SparkleXrmSource/SparkleXrmUI/GridEditor/CrmPagerControl.cs +++ b/SparkleXrmSource/SparkleXrmUI/GridEditor/CrmPagerControl.cs @@ -175,7 +175,9 @@ public void updatePager(PagingInfo pagingInfo) status.Text(string.Format("{0} - {1} of {2} ({3} selected)", pagingInfo.FromRecord, pagingInfo.ToRecord, pagingInfo.TotalRows, _dataView.GetSelectedRows().Length.ToString())); pageInfo.Text(string.Format("Page {0}", pagingInfo.PageNum + 1)); - + + // #71 Move scroll bar to the top + Script.Literal("{0}.scrollRowToTop(0)", _grid); }