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

Sticky table header

7 Answers 385 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dariusz
Top achievements
Rank 1
Dariusz asked on 14 Nov 2011, 03:15 PM
Hello again...
I'm trying to make my Grid's header sticky so when I scroll it down i Can see the header all the time on top of my website WITHOUT using ClientSide AllowScrolling and Static header/footer. It's not the same.... 

I'm trying to get something like on that website:
http://jsfiddle.net/jmosbech/stFcx/

any ideas?

7 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Nov 2011, 06:41 AM
Hello,

You can try the following CSS.

CSS:
<style type="text/css">
.RadGrid .rgHeader a
 {
   position:absolute ! important;
 }
</style>

Thanks,
Princy.
0
Dariusz
Top achievements
Rank 1
answered on 15 Nov 2011, 01:27 PM
Hi,

it didn't work as I scrolled down.
0
Mira
Telerik team
answered on 16 Nov 2011, 02:33 PM
Hello Dariusz,

Please try using the Scroll with Static Headers functionality of the RadGrid.

I hope it helps.

All the best,
Mira
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
Dariusz
Top achievements
Rank 1
answered on 16 Nov 2011, 02:47 PM
Hello Mira,


I understand that using that functionality would be usefull if I'd have a large amount of rows to show. 
But I show 10 rows on my table, each row has a photo so its height is pretty large. So I'm not scrolling a vertical bar of the grid. I would use it if the amount of my rows wouldn't fit inside my RadGrid's height. 


But I want to show full height of my table. Now when I scroll to position 6, 7 etc I don't remember what does those number in my table mean and I have to scroll back to the top of my grid and check header.


That's why using static headers won't help me. It must scroll with page.
0
Mira
Telerik team
answered on 21 Nov 2011, 01:05 PM
Hello Dariusz,

Could you please examining the Scrolling demo once again with Use static headers and footers checked and let me know whether this is the desired look and if it is not, what are differences?

I am looking forward to your reply.

Kind regards,
Mira
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
Dariusz
Top achievements
Rank 1
answered on 21 Nov 2011, 01:59 PM
Hello Mira,

Please take a look at attached images:

scr1 - this is how your table looks like when being on 1st row
scr2 - when on bottom row (by using scroll bar inside table)
scr3 - when using scroll bar of my browser (please notice that I don't see the header anymore)
sc5 - how I'd like it to look like when using my browser's scroll bar

I hope it explains all,

Regards
Darek
0
Mira
Telerik team
answered on 24 Nov 2011, 12:58 PM
Hello Dariusz,

The described functionality is part of your custom logic and it is out of our scope to implement it.
However, it should be achieved by integrating the jQuery from http://jsfiddle.net/jmosbech/stFcx/ with the RadGrid which is rendered as table as well.

I hope this helps.

Greetings,
Mira
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
Dariusz
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dariusz
Top achievements
Rank 1
Mira
Telerik team
Share this question
or