Forum  Commercial Foru...  Commercial Foru...  LIstView Scrollbar Bug
Previous Previous
 
Next Next
New Post 2/7/2012 10:29 PM
Resolved
  derekmhart@yahoo.com
717 posts
1st Level Poster


LIstView Scrollbar Bug 
Modified By derekmhart@yahoo.com  on 2/8/2012 2:30:14 AM)

Well, this one is a drag. I have multiple panels, and when I update the panel text that the listview resides in, and the user clicks a listview item far down the list, the list resets and scrolls to the top. But the item is still selected.

http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/56/threadid/49654/scope/posts/Default.aspx

Too complex to reproduce but I can lead you to the website with credentials and try it out. Please let me know if somebody will look at this and where to send the credentials.

Or is it a known bug and fixed?

It is a fairly large process to upgrade VWG versions right now. Any workarounds?

 
New Post 2/8/2012 12:25 PM
  palli
11824 posts
1st Level Poster




Re: LIstView Scrollbar Bug 

Hi Derek,

I revisited that thread you referenced and retested the scenario and was able to reproduce in IE only. Please view the tracker entry I created and see if this would resemble your scenario too. If not, you will need to come up with a scenario that does in order for us to proceed, as I am not at all certain what you mean by "update the panel text". Possibly your scenario is similar to the one I just created, where "update the panel text" you mean adding a non-docked control.

Regarding the process to upgrade your Visual WebGui version, then it depends on what version you are using. There is no specific process to follow, except reading the breaking changes notes and see if any of the problems affects you. If I recall correctly, you are using RC1. If so, you should pay special attention to the changes in ListView.Tag property usage (see the breaking changes article), which no longer is populated with the underlying databound item on bound ListView, but the index of that item within the collection the ListView is bound to. For those using ListView, this should be examined thoroughly.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/8/2012 8:13 PM
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: LIstView Scrollbar Bug 

I sent you an email with credentials to see the process.

 
New Post 2/9/2012 10:32 AM
  palli
11824 posts
1st Level Poster




Re: LIstView Scrollbar Bug 

Hi Derek,

I tested the app and the problem seems very similar to the one I attached to the tracker entry. It reproduces in IE, but not in Chrome, but in IE, it is reproduced every time, so that's different from my report.

It's not easy for me to test this without knowing the exact layout of the controls and what controls you use in each case. I did however try to reproduce on the application from the tracker entry by switching one of the Panels out for a HeaderedPanel, but it didn't reproduce.

You may try the following as a workaround, after you have set the header text:

 

if (this.listView1.SelectedIndex >= 0 && this.listView1.SelectedIndex < this.listView1.Items.Count)
    this.listView1.EnsureVisible(listView1.SelectedIndex);

Hope this helps,

Palli


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/11/2012 2:42 PM
Accepted Answer 
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: LIstView Scrollbar Bug 

OK, the code you suggested does work, but looks really bad to the user, as it still scrolls and then comes back, and puts the row into a different location.

The issue occurs when I set the text of the panel. The listview is in the panel. The panel was a Headered panel. So I change this back to a regular panel. Then I placed a Headered panel above that and docked it. Then I set the text to that. Solved it. Probably should add this to things to be fixed.

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  LIstView Scrollbar Bug
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS