Solved

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

Posted on 2013-01-01
10
4,080 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
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
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
 
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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)

740 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