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

  • From: Kerneels Roos <kerneels@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Thu, 29 Jul 2010 08:52:12 +0200

Hi Jacob,

Seems like there are a lot of ways to achieve this. Since the first time
I've looked into the HTML 4.1 spec back in 2001 I can remember that the W3C
specification makes provision for <THEAD> and <TBODY> or something like
that, and that there is either a property to cause the header to stay at the
top, or it happens automatically.

It's crazy if that table behaviour has not yet been implemented, 10 years
down the line! You'll probably find it works perfect in those reference
browser implementations of the W3C.

Anyways, when you've found a good solution, please let us know what it is.

Cheers

On Thu, Jul 29, 2010 at 7:38 AM, black ares
<matematicianu2003@xxxxxxxxxxx>wrote:

>  is not necessary jquery.
> With only javascript it is enough to do this.
>
>
> ----- Original Message -----
> *From:* Jacob Kruger <jacobk@xxxxxxxxxxxxxx>
> *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 <jfbosch@xxxxxxxxx>
> *To:* programmingblind@xxxxxxxxxxxxx ; Program-l <program-l@xxxxxxxxxxxxx>
> *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 <jacobk@xxxxxxxxxxxxxx>
> *To:* Program-l <program-l@xxxxxxxxxxxxx>
> *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
>
>


-- 
Kerneels Roos
Cell/SMS: +27 (0)82 309 1998
Skype: cornelis.roos

The early bird may get the worm, but the second mouse gets the cheese!

Other related posts: