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. GridView on MultiView / Views with MenuItems to change Views - having problems

GridView on MultiView / Views with MenuItems to change Views - having problems

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptquestionannouncement
5 Posts 3 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.
  • M Offline
    M Offline
    Member 4700225
    wrote on last edited by
    #1

    Hi, I am using MultiView / View controls which change by MenuItem clicks. Each view has a GridView on it with Edit and Insert features. The problem is: 1) when the edit button is clicked, the GridView disappears and you need to click on the MenuItem again to see it (it happens evrytime you click edit, update, cancel or insert buttons on the GridView) 2) When you click a MenuItem, the page is posted back and displays from the top again, but I want it to stay at the height where it left so that the users dont have to scroll down again to see the GridView. I can probably use javascript, but I was wondering if there is any asp .net way to fix it? All ideas are welcome. Thanx for your help. Ekjon

    A M 2 Replies Last reply
    0
    • M Member 4700225

      Hi, I am using MultiView / View controls which change by MenuItem clicks. Each view has a GridView on it with Edit and Insert features. The problem is: 1) when the edit button is clicked, the GridView disappears and you need to click on the MenuItem again to see it (it happens evrytime you click edit, update, cancel or insert buttons on the GridView) 2) When you click a MenuItem, the page is posted back and displays from the top again, but I want it to stay at the height where it left so that the users dont have to scroll down again to see the GridView. I can probably use javascript, but I was wondering if there is any asp .net way to fix it? All ideas are welcome. Thanx for your help. Ekjon

      A Offline
      A Offline
      Abisodun
      wrote on last edited by
      #2

      Steve Stchur has UserControl/javascript solution for maintaining the scroll position: http://aspnet.4guysfromrolla.com/articles/111704-1.2.aspx[^]

      M 1 Reply Last reply
      0
      • M Member 4700225

        Hi, I am using MultiView / View controls which change by MenuItem clicks. Each view has a GridView on it with Edit and Insert features. The problem is: 1) when the edit button is clicked, the GridView disappears and you need to click on the MenuItem again to see it (it happens evrytime you click edit, update, cancel or insert buttons on the GridView) 2) When you click a MenuItem, the page is posted back and displays from the top again, but I want it to stay at the height where it left so that the users dont have to scroll down again to see the GridView. I can probably use javascript, but I was wondering if there is any asp .net way to fix it? All ideas are welcome. Thanx for your help. Ekjon

        M Offline
        M Offline
        Michael Sync
        wrote on last edited by
        #3

        Member 4700225 wrote:

        1. when the edit button is clicked, the GridView disappears and you need to click on the MenuItem again to see it (it happens evrytime you click edit, update, cancel or insert buttons on the GridView)

        I think you missed to bind the datagrid in postback..

        Member 4700225 wrote:

        1. When you click a MenuItem, the page is posted back and displays from the top again, but I want it to stay at the height where it left so that the users dont have to scroll down again to see the GridView. I can probably use javascript, but I was wondering if there is any asp .net way to fix it?

        Maintain Scroll Position of DIV using JavaScript - ASP.NET 2.0[^]

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        M 1 Reply Last reply
        0
        • A Abisodun

          Steve Stchur has UserControl/javascript solution for maintaining the scroll position: http://aspnet.4guysfromrolla.com/articles/111704-1.2.aspx[^]

          M Offline
          M Offline
          Member 4700225
          wrote on last edited by
          #4

          Thanks Abisodun...

          1 Reply Last reply
          0
          • M Michael Sync

            Member 4700225 wrote:

            1. when the edit button is clicked, the GridView disappears and you need to click on the MenuItem again to see it (it happens evrytime you click edit, update, cancel or insert buttons on the GridView)

            I think you missed to bind the datagrid in postback..

            Member 4700225 wrote:

            1. When you click a MenuItem, the page is posted back and displays from the top again, but I want it to stay at the height where it left so that the users dont have to scroll down again to see the GridView. I can probably use javascript, but I was wondering if there is any asp .net way to fix it?

            Maintain Scroll Position of DIV using JavaScript - ASP.NET 2.0[^]

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

            M Offline
            M Offline
            Member 4700225
            wrote on last edited by
            #5

            Thanks Mike.

            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