Solved

jQuery way to freeze first two columns of a GridView control.

Posted on 2013-01-01
10
3,888 Views
Last Modified: 2013-01-14
Is there a jQuery way to freeze the first two columns of a GridView control or an HTML table?

I tried with CSS but the solutions are not compatible with all versions of IE. I therefore want a javascript way to do this.
0
Comment
Question by:rpkhare
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 22

Expert Comment

by:Mrunal
ID: 38735679
0
 
LVL 11

Expert Comment

by:mcnute
ID: 38736076
In the second link mroonal provided there is a link on the left sidebar menu called "Frozen Cols.GroupHeader(new)" which provides all info you nee.
0
 
LVL 8

Author Comment

by:rpkhare
ID: 38737192
These are pure jQuery Grids. Is there any trick to work with GridView control itself?
0
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 38737789
0
 
LVL 8

Author Comment

by:rpkhare
ID: 38741134
I don't want to use jqGrid. I am using ASP.NET GridView control and want to add frozen columns to it.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 19

Expert Comment

by:Manoj Patil
ID: 38743087
0
 
LVL 8

Author Comment

by:rpkhare
ID: 38759823
I already tried the first two solutions. The problem is it doesn't works well in IE 9.0. I want a solution that is compatible with all versions of IE.

I am checking the links suggested in the third link you provided. But it seems the links are similar to the first two.
0
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 38767187
The link I have provided earlier in my post contains asp.net GridView. (not jquery grid)

http://gridviewscroll.aspcity.idv.tw/Demo.aspx

Have you tried that...
0
 
LVL 8

Author Comment

by:rpkhare
ID: 38767892
Thanks it worked. I made a mistake while copying code.
0
 
LVL 8

Author Comment

by:rpkhare
ID: 38775163
@mroonal:

I tried on a production code. It works fine when IE 9.0 is running in compatibility mode but when changed to IE 9, it is not rendering properly.

Any work around.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now