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

[Solved] Grid not loading when there is 2 grids in a tabstrip

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 15 Dec 2010, 01:31 PM
Hi,

I am trying to have two grids in a tabstrip. Both grids are ajax bound, in seperate partial views.

When I have the tabstrip selected index set to 1 (so the second tab is opened by default) both grids in both tabs load correctly.

However if I have the tabstip selected index set to 0, only the grid in the first tab is loaded, the grid in the second tab displays the message "No records to display."
When this situation occurs, clicking on the refresh button in the second grid links to a new page with the url:

http://localhost/mytestapp/home/GridTwo?_=1295476894342

Has anyone come accross this error before and is there a way of fixing it, as I would prefer to be able to have the first tab open by default.

Thanks.

1 Answer, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 15 Dec 2010, 06:00 PM
Hi,

I figured the problem out myself, I had the 2 grids in the two partial views named "Grid" which has been causing this issue.

I changed the names to "GridOne" and "GridTwo" and it has fixed the problem. 
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or