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
560
Scrolling through data when xamWebgrid is readOnly
posted

Hai,

When using the xamWebGrid I ran into a frustrating problem. I have about 150 rows in the grid, so naturally the vertical scrollbar will appear. In some situations I want to set the grid to readOnly. If I do that, the scrollbar will also be set to readOnly, so it is not possible to scroll down and see the rest of my data. The same result happens when I separately set all the columns to readOnly. Is there any chance I can scroll through my data when the grid is set to readOnly?

Thanks in advance,

Rixt

Parents
  • 40030
    Offline posted

    Hi, 

    So, are you setting the xamWebGrid's IsEnabled property? If so, then yes the scrollbar will become disabled. 

    However, if you're just trying to make it so the grid isn't editable, then you should just be setting:

    xamWebGrid.EditingSettings.AllowEditing = EditingType.None;

    As for the readonly properties on Columns, they also just determine editing, and should have no effect on the scrollbar. If you're seeing something else, do you think you'd be able to attach a simple sample demonstrating this issue?

    Thanks,

    -SteveZ

     

Reply Children