Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-01-01
10
Medium Priority
?
4,360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Vim Reference Guide

Vim is a powerful text editor favored by many sysadmins and developers - here are some commands that you'll want to keep in your back pocket!

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

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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 code hide show and toggles. 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…
Suggested Courses

670 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