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

getting info when expanding

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jonathan
Top achievements
Rank 1
jonathan asked on 01 Apr 2011, 11:08 PM
hi all i'm new to silverlight and am trying to use the datagridview control to set up a mail inbox.

This involves a web service call to get back some xml to fill the datagridview I have this working fine.  However I want to fill the usercontrol when the grid view is expanded to show the email content and attachments, like the demo. This involves another  webservice  call to get back some more xml with the email details (attachment, body) which would be shown on the usercontrol in textboxes when the gridview expands. does any body know what event i need to use to capture the expand event and to then do the webservice call and fill my user control?
 
cheers cooney 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 04 Apr 2011, 04:08 PM
Hi jonathan,

You should use the event LoadingRowDetails of the RadGridView like here.

Regarding calling your web service and filling your user control, I have prepared a sample project showing the logic of your desired scenario.
I have created a separate class for details. In the UI(MainPage.xaml) I have shown a RadGridView with a custom UserControl in its RowDetailsTemplate. In the code behind in clubsGrid_LoadingRowDetails I am getting the details data. I am setting it to the grid Details and this way it is automatically updated in the RowDetailsTemplate.
In case that the reply from the web service is slow, you could use a busy indicator that will inform the user that the data capturing is in progress.

Greetings,
Didie
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
jonathan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or