Re: ASP.Net scrollable datagrid, but with static/unmoving column headers

  • From: "Jacques Bosch" <jfbosch@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 29 Jul 2010 09:10:15 +0200

Yes, you can do it with raw javascript, but jQuery will just make it so much 
easier.
If javascript is a bicycle, then jQuery is a power bike - an analogy Jacob 
might appreciate. <smile>
I don't *EVER* touch the HTML DOM  with raw javascript any more. I have better 
things to do with my time since jQuery came along.
www.jquery.com


  ----- Original Message ----- 
  From: black ares 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Thursday, July 29, 2010 7:38 AM
  Subject: Re: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


  is not necessary jquery.
  With only javascript it is enough to do this.

    ----- Original Message ----- 
    From: Jacob Kruger 
    To: programmingblind@xxxxxxxxxxxxx 
    Sent: Wednesday, July 28, 2010 11:37 PM
    Subject: Re: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


    JQuery?

    I'm somewhat out of practice with this type of web development - 
obviously...<smile>

    Stay well

    Jacob Kruger
    Blind Biker
    Skype: BlindZA
    '...fate had broken his body, but not his spirit...'

      ----- Original Message ----- 
      From: Jacques Bosch 
      To: programmingblind@xxxxxxxxxxxxx ; Program-l 
      Cc: ProgrammingBlind@xxxxxxxxxxxxx 
      Sent: Wednesday, July 28, 2010 10:02 PM
      Subject: Re: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


      Well, somebody mentioned a MX data grid which I have never used.
      But what you could do is to put the datagrid in a div with overflow set 
to auto.
      Then, with jQuery, it should be quite trivial to clone the header row and 
insert it in another div right above the data grid's div and hide the original 
header row.
      With a little fiddling that should give you the static headers you are 
aiming for.

      Jacques
        ----- Original Message ----- 
        From: Jacob Kruger 
        To: Program-l 
        Cc: ProgrammingBlind@xxxxxxxxxxxxx 
        Sent: Wednesday, July 28, 2010 4:52 PM
        Subject: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


        Don't think there are too many guys involved in/looking into ASP.Net on 
VI programming lists, but specifically, at the moment, trying to figure out how 
to implement static/unmoving column headers for an ASP.Net datagrid, with the 
specific issue being that since there are quite a few datarows being rendered 
in a datagrid, they want the column headers to stay static/floating above the 
then scrollable columns of data, and was just wondering if anyone had ideas off 
hand.

        My own would be to in fact implement a static HTML table above the 
datagrid, with the column headers in it, and then implement the datagrid in 
something like either an inline frame, or a normal frame to allow the browser 
to scroll up and down inside it, while still seeing the column headers above, 
but the primary issue so far is I don't seem to be able to query/find a 
rendition of the column widths etc. from the datagrid control, but have 
otherwise been thinking about in fact chucking out the datagrid control as 
such, and just something closer to older, classic ASP to in fact just render 
the HTML output version of something like this, and would then just base the 
column widths on something like a certain number of pixels/points per letter of 
the column name, and would then use something closer to the classic ASP/PHP 
outputting of the data table inside another frame or something.

        Thoughts/examples/suggestions?

        Stay well

        Jacob Kruger
        Blind Biker
        Skype: BlindZA
        '...fate had broken his body, but not his spirit...'



        __________ Information from ESET NOD32 Antivirus, version of virus 
signature database 5318 (20100727) __________

        The message was checked by ESET NOD32 Antivirus.

        http://www.eset.com



    __________ Information from ESET NOD32 Antivirus, version of virus 
signature database 5321 (20100728) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com

Other related posts: