Using GridViewRow template and simple trigger you can define, style and show details for every data row in your RadGridView very easily: 

    <Style TargetType="{x:Type telerik:GridViewRow}">
        <
Setter Property="Template">
            <
Setter.Value>
                <
ControlTemplate TargetType="{x:Type telerik:GridViewRow}">
                    
<!--Your template goes here -->
      
         <ControlTemplate.Triggers
                   <
MultiTrigger
                      <
MultiTrigger.Conditions
                         <
Condition Property="IsSelected" Value="True" /> 
                         <
Condition Property="IsCurrent" Value="True" /> 
                      </
MultiTrigger.Conditions
                      <
SetterProperty="Visibility" TargetName="GroupBox" Value="Visible" />
                      <
SetterProperty="Background" TargetName="GroupBox" Value="AliceBlue"/> 
                      <
SetterProperty="BorderBrush" TargetName="GroupBox" Value="Navy"/> 
                   </
MultiTrigger
                </
ControlTemplate.Triggers
              </
ControlTemplate>

Untitled

... and  you can populate the grid in a single line of code from any ADO.NET DataService:

RadGridView1.ItemsSource = new DataServiceContext(new Uri("Your service url")).CreateQuery<Customer>("Customers");

Enjoy!

[Download]


About the Author

Vladimir Enchev

is Director of Engineering, Native Mobile UI & Frameworks

Comments

Comments are disabled in preview mode.