GridView refresh and fixed height

2 posts, 0 answers
  1. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 24 Mar 2010 Link to this post

    Hi there,

    1) I have a problem with GridView data refresh. My code is like the GridView/DomainDataSource example.  I have a GridView with CanUserInsertRows=True. When i insert a new record click on the Submit button:

    changes are saved but the GridView does not refresh from database. How could i do this?

    2) I also have a problem with GridView height. I'm using the GridView with DataPager. I have 10 items per page but last page it usually hasn't 10 items and GridView resizes. I don't want to resize in this case. How could i avoid that? (I mean without using Height property like the GridView/DomainDataSource example)

  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 25 Mar 2010 Link to this post

    Hello JUAN CRESPO,

    1. Can you try calling the DomainDataSource.Load method after the changes are submitted. This should pull data back to the client.

    2. You can try setting Height to "*". Alternatively, you can try placing the grid in a container with a fixed height, i.e. so that 10 records are always visible, and the set the VerticalAlignment of the grid to Stretch.

    I hope this helps.

    Please, let us know if there are problems.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top