This is a migrated thread and some comments may be shown as answers.

Radgrid inside scrolling div resets scroll position

7 Answers 182 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 18 Feb 2012, 07:25 PM
I have a radgrid inside a div set to overflow auto. If you scroll down and select a row the div's scroll position gets reset to the top. Tried using built-in scroll functionality but this didn't work (layout breaks and only background of template cells scroll without scrolling other elements). Tried JavaScript to reset scrollTop property of div on active row changed but this also didn't work. Help?

7 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 22 Feb 2012, 10:51 AM
Hi Sean,

The described behaviour is expected no matter what control you place in the div element. After postback all scroll positions are reset to top and this is browser behaviour.
Possible approach in your case is to ajaxify the mentioned div. By default RadAjaxPanel maintains the focus of ajaxified control when the response ends

All the best,
Maria Ilieva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Sean
Top achievements
Rank 1
answered on 22 Feb 2012, 12:16 PM
In this case, there is no postback.  All I'm doing is selecting a row, which is happening client side.  Seems to me the div shouldn't reset itself.  Is the grid somehow doing something that would reload its container?
0
Maria Ilieva
Telerik team
answered on 23 Feb 2012, 02:08 PM
Hello,


I was able to test it locally and replicate the described issue on my side. The problem appears only in IE9 browser and no matter if ajax is used on the page.
After further researching on our site we concluded that the problem is in the filtering item of the DateTime column. For some reason it receives a focus after postback and this causes the issue.
The presented problem is a bug and we have logged it into our tracking system. Our dev team will further investigate the issue and will do the best to provide a fix as soon as possible.
Thank you for reporting this issue.
For now I could suggest you hide the picker from the filtering item by settings PickerType="None" for the DateTimeColumn



All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sean
Top achievements
Rank 1
answered on 24 Feb 2012, 04:59 PM
Thanks for looking into this.  I'm not sure we're talking about the same problem, though.  I'm not using any filtering in my grid and there are not Date/Time fields in the data I'm testing with.  I set up a separate testing project to debug the problem, but I'm having a hard time reproducing it as well.  
0
Maria Ilieva
Telerik team
answered on 27 Feb 2012, 03:28 PM
Hi Sean,

If this is not your case it will really be best to set up a isolate sample application which demonstrates the described issue. Thus we will be able to test it locally and advise you further.

ll the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
M
Top achievements
Rank 1
answered on 11 Dec 2012, 06:58 AM
Hello ,

Is this solved ? I have the same problem .

Here is my code . 
<div runat="server" id="divOuter">
<div id='<%# "div1" + Container.ItemIndex+1 %>' style="float: right;"
 onmouseover="document.getElementById(this.id.replace'div1','div2')).style.display='';"
 onmouseout="document.getElementById(this.id.replace('div1','div2')).style.display=
 'none';">
   +
 <div id='<%# "div2" + Container.ItemIndex+1 %>' style="float: right;
 position: absolute;  display: none;">
 <b>Additional Info< /b>
 <%# Eval("Details") %>
 </div>
 </div>
 </div>
0
Maria Ilieva
Telerik team
answered on 14 Dec 2012, 08:10 AM
Hi,

Please test the latest official release of the controls where the issue does not appear.

All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Sean
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Sean
Top achievements
Rank 1
M
Top achievements
Rank 1
Share this question
or