This is a migrated thread and some comments may be shown as answers.

GridView refresh and fixed height

1 Answer 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Iosu Buenetxea
Top achievements
Rank 1
Iosu Buenetxea asked on 24 Mar 2010, 04:34 PM
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:

myDomainDataSource.SubmitChanges()
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)

Thanks!

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 25 Mar 2010, 11:06 AM
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.

Greetings,
Ross
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.
Tags
GridView
Asked by
Iosu Buenetxea
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or