Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
XamWebGrid Scrolling Error
posted

I have attached a project which demonstrates a possible bug.  I am using XamWebGrid 10.1 with ColumnLayout.  In the child level I am using a Template Column with a HyperLinkButton.  If you start scrolling down you will get an error.

 

Parents
No Data
Reply
  • 40030
    Offline posted

    Hi, 

    Thanks for the sample, it was very helpful. 

    Basically whats happening is, we use a generated key to determine how a cell should be recycled. However, you've apparently managed to figure out the combination of the key and break recycling :)

    B/c you have a column with the same key and the same parent columnLayout key, the wrong control gets returned and the recycling basically shows the wrong cell. 

    I think i can adjust this to be more unique. As a workaround for now, i suppose you can use a UnboundColumn. Assuming you're not going to be using any data operations such as sorting on the column that should be an easy way around the issue, as you can use any key for an UnboundColumn. 

    -SteveZ

Children
  • 590
    posted in reply to Stephen Zaharuk

    Here is the updated project.  I switched my columns at the parent level to be Template Columns and the error went away, however if you start scrolling down the grid some of the HyperLinkButton are not appearing at the 3rd Level.  Below is a sample of how the data should appear on the screen.

    --  Country
    ---- State 1
    ------ County 1 (this should be a link)
    ------ County 2 (this should be a link)
    ------ County 3 (this should be a link)
    ---- State 2
    ------ County 1 (this should be a link)
    ------ County 2 (this should be a link)
    ------ County 3 (this should be a link)