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

[Solved] GridView with DataPager -> Detail issue

3 Answers 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robin
Top achievements
Rank 1
Robin asked on 22 Feb 2011, 03:08 PM
Hello,

we plug a DataPager to the Items property of a GridView with RowDetailsTemplate.

When we switch for example to page 5 of 58 and open some rowdetails all is well.

After switching to page 4 and then back to page 5, the details are still opened - but the data is missing.


Are we missing somthing?

Thanks for the help and best regards
Robin

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Feb 2011, 04:02 PM
Hi Robin,

We have tried to reproduce this, but unfortunately we could not. Could you please open a separate support ticket and attach a sample project that reproduces this behavior. We will examine it immediately and see what is going on.

You will have to download a trial version from our site in order to be able to make attachments.

Thanks in advance. We are looking forward to hearing from you.

Regards,
Ross
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Robin
Top achievements
Rank 1
answered on 23 Feb 2011, 10:45 AM
Hi Ross,

thanks for the fast reply.

I thought that the LoadingRowDetails Event will be executed only once per row?

After switching pages the event will be called again.
That caused a problem with our data logic. It's fixed now.

But I'm a bit confused.

Could you explain me why the event is invoked?


Best regards
Robin
0
Rossen Hristov
Telerik team
answered on 23 Feb 2011, 11:04 AM
Hi Robin,

LoadingRowDetails is raised when the details template for a particular row is loaded for the first time.

If vertical virtualization is turned on, the GridViewRows are recycled and reused to host different data items.

That is why a single GridViewRow may host many different data items (i.e. business objects) during its lifetime. This is the reason why this event may be fired more than once.

If you turn vertical virtualization off and every row hosts only a single data item during its lifetime -- this event should be fired only once per row.

I hope this makes sense. Let me know if I can help with anything else.

Regards,
Ross
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Robin
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Robin
Top achievements
Rank 1
Share this question
or