• .NET Mobile

    Client-Side Hierarchical DataBinding to OData with RadGrid for ASP.NET AJAX

    If you haven't heard, Odata is a Web protocol that exposes your data to the Web, allowing consumers to make queries through a set of URI parameters. RadGrid, Telerik's ASP.NET AJAX Grid control features a rich client-side API that enables you to easily bind to OData services and have all the paging, sorting and filtering done without ever posting the page to the server. That is all fine if your data is flat. Binding to hierarchical data, however, is another story. RadGrid officially supports hierarchical databinding on the server only. But let's go unofficial for a while. In this blog post we'll demonstrate an approach for detail table databinding...
  • .NET

    Breadcrumb hierarchy navigation for RadGridView

    May 31, 2010 Share
    For my first blog post I’m going to present a little pet project inspired by requests from some of our customers. And so, without further ado: The Breadcrumb is a simple control that analyzes the type of the collection found in the RadGridView’s ItemsSource property and automatically resolves data hierarchies. Usage is pretty straight-forward. Place the control anywhere you like and then connect it to the RadGridView, all in XAML. Example: <bread:Breadcrumb Grid.Row="0" Margin="5" SourceGridView="{Binding ElementName=radGrid}"/> The logic behind the type analysis algorithm is simple: represent every collection as a generic IEnumerable<> and get the type of the generic argument. So if you have an array of...