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

[Solved] Grid, Ajax and Detail... getting lost...

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 24 Feb 2010, 03:34 PM
Hello,
I'm trying to implement an ajax solution, but having done SL for 2 years it's hard for me.... maybe I've lost something...
my question is : To correctly have a detail view binded to a datasource I need the data in this form :

  [DataContract] 
    public class Utente 
    { 
        [DataMember] 
        public string Codice { get; set; } 
        [DataMember] 
        public string Descrizione { get; set; } 
        [DataMember] 
        public string PWD { set; get;} 
        [DataMember] 
        public string Filiale {get;set;} 
        [DataMember] 
        public List<Gruppo> GruppiAppartenenza { get; set; } 
 
    } 

Or Having them Plain (No List<Group>) but [DataMember] int idgruppo.... [DataMember] string descrizione?

How ho I remove from showing the similar row in the second case?

If I've

Paolo | 1 | Home
Paolo | 0 | Office

How do I show only one "Paolo" and the detail with Home Office?

Thanks in advance
Paolo

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 01 Mar 2010, 07:54 AM
Hello Paolo,

To see more information on how to properly construct the hierarchical structure, you can refer to the following example:

http://www.telerik.com/help/aspnet-ajax/grdhierarchicaldatabindingusingdetailtabledatabind.html

Additionally, if you would like to hide some of the elements in the hierarchy, please refer to the following example:

http://www.telerik.com/help/aspnet-ajax/grdhideexpandcollapseimageswhennorecords.html

I hope this information gets you started properly.

Kind regards,
Yavor
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
Grid
Asked by
Michele
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or