Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. scroll using css

scroll using css

Scheduled Pinned Locked Moved ASP.NET
helphtmlcssdatabasewpf
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vinod_dan
    wrote on last edited by
    #1

    hi, i have a scrollable datagrid(using div tag).i have made the header row fixed using cssClass which i added in the tag in <head> section of the page's html.i added another cssClass in a second <style> tag just below the first one to make the first two columns (which are template columns and cssClass added using itemStyle-cssClass property in the header)fixed while scrolling horizontally. but the problem is when i run it, the internet explorer hangs.it just freezes and i have to close it using ctrl+alt+del.i am having this problem only after i added the second style tag.i am givin the code for the second style below <style type="text/css">.FreezingCol { Z-INDEX: 1; LEFT: expression(document.getElementById("freezingDiv").scrollLeft); POSITION: relative } the other style to make the header fixed is .DataGridFixedHeader { POSITION: relative; TOP: expression(this.offsetParent.scrollTop); BACKGROUND-COLOR: white } is there anything wrong with the style?can i achieve the functionality (i.e. having a fixed header and making the first two columns fixed while scrolling horizontally) with the two styles note: i tried adding the cssclass in a separate style sheet but it threw an error saying "expression(this.offsetParent.scrollTop is not a valid value of TOP property thanks in advance vinodh -- modified at 23:57 Sunday 19th February, 2006

    I 1 Reply Last reply
    0
    • V vinod_dan

      hi, i have a scrollable datagrid(using div tag).i have made the header row fixed using cssClass which i added in the tag in <head> section of the page's html.i added another cssClass in a second <style> tag just below the first one to make the first two columns (which are template columns and cssClass added using itemStyle-cssClass property in the header)fixed while scrolling horizontally. but the problem is when i run it, the internet explorer hangs.it just freezes and i have to close it using ctrl+alt+del.i am having this problem only after i added the second style tag.i am givin the code for the second style below <style type="text/css">.FreezingCol { Z-INDEX: 1; LEFT: expression(document.getElementById("freezingDiv").scrollLeft); POSITION: relative } the other style to make the header fixed is .DataGridFixedHeader { POSITION: relative; TOP: expression(this.offsetParent.scrollTop); BACKGROUND-COLOR: white } is there anything wrong with the style?can i achieve the functionality (i.e. having a fixed header and making the first two columns fixed while scrolling horizontally) with the two styles note: i tried adding the cssclass in a separate style sheet but it threw an error saying "expression(this.offsetParent.scrollTop is not a valid value of TOP property thanks in advance vinodh -- modified at 23:57 Sunday 19th February, 2006

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      its not equating to a value 1 line of code equals many bugs. So don't write any!!

      V 1 Reply Last reply
      0
      • I Ista

        its not equating to a value 1 line of code equals many bugs. So don't write any!!

        V Offline
        V Offline
        vinod_dan
        wrote on last edited by
        #3

        hi, im not a pro in asp.net...pretty new to it...can you be more explanative? i dint get u... thanks vinodh

        I 1 Reply Last reply
        0
        • V vinod_dan

          hi, im not a pro in asp.net...pretty new to it...can you be more explanative? i dint get u... thanks vinodh

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          I'd give you a link but this comes from my desktop MSDN so heres the text sTop Variant that specifies or receives one of the following values: auto Default. Default position according to the regular HTML layout of the page. length Floating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For more information about the supported length units, see CSS Length Units Reference. percentage Integer, followed by a percent sign (%). This value is a percentage of the height of the parent object. 1 line of code equals many bugs. So don't write any!!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups