GridView on MultiView / Views with MenuItems to change Views - having problems
-
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
-
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
-
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
Member 4700225 wrote:
- 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:
- 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)
-
Steve Stchur has UserControl/javascript solution for maintaining the scroll position: http://aspnet.4guysfromrolla.com/articles/111704-1.2.aspx[^]
Thanks Abisodun...
-
Member 4700225 wrote:
- 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:
- 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)
Thanks Mike.