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

[Solved] grid shifts on row selection

4 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 14 Jan 2010, 06:13 PM
I have a page with tabs and each tab has a usercontrol.
On some of the user controls I have a grid. I noticed that on row selection , the grid header shifts to the left a little bit and then adjusts back to the original position.

If my grid is outside the user control I don't notice any visible shift.

Any help on this?

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 Jan 2010, 09:45 AM
Hello,

This is a wild guess, but try it :

Set  <telerik:RadGrid  style="outline:none"  />

Also check for HorizontalAlign settings for the RadGrid control itself or the MasterTableView and try removing them.

If the above does not help, we will need a runnable demo.

Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
newbie
Top achievements
Rank 1
answered on 18 Jan 2010, 08:59 PM
Hi Dimo,

I tried setting that but it still does not work for me.
I tried creating a small demo but i was unable to recreate the issue over there.

My actual page has a lot of tabs and other controls and lots of AJAX postbacks.
My grid is inside a usercontrol on a tabstrip on my main page.
The tab has some other controls. On the click of the row I load the details in the controls with more dtata for the selected row.

I am running firefox.

In IE the grid does a scrollbar shift so I am unable to observe the shift on row selection as the entire page shifts.

Can you think of anything else that might be causing that.
This is really bothering me.

Thanks!
0
newbie
Top achievements
Rank 1
answered on 18 Jan 2010, 10:37 PM
I figured out the problem but I am still not able to fix this.

On Firefox the problem occurs because I am using staticheaders = "true".
If i set that to false the grid alignment looks fine and i don't see a grid refresh.

I looked at some of the posts and tried implementing the solution.
 http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-column-alignment-issue-firefox.aspx

I have a headerstyle-width specified for all my columns in pixels but that was still causing the issue.
I need to have staticheaders.

I tried setting the width of the mastertable to a very high number in pixels and that seemed to solve the problem. But with that the grid stretches a little beyond the last column.

Can you guide?

Also, can you help me this the scrollbar-flash in IE?
0
Dimo
Telerik team
answered on 19 Jan 2010, 03:30 PM
Hello,

I am afraid that the provided information is not sufficient to determine the cause of the problem and provide specific advice. Please send a standalone runnable web page. Thank you.

All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
newbie
Top achievements
Rank 1
Answers by
Dimo
Telerik team
newbie
Top achievements
Rank 1
Share this question
or