Quantcast
Channel: Telerik Blogs
Viewing all articles
Browse latest Browse all 5210

Dynamic binding for your Silverlight applications

$
0
0

In the early days of Silverlight binding support for advanced dynamic scenarios was very limited (remember my DataTable?). Since then, however, the platform has evolved greatly – so did our tools!

 

Dynamic code 2009 style:
image

 

Dynamic code 2011 style:
image

 

Now to bind RadGridView to some dynamic data you just need ObservableCollection<dynamic>:
image

 

RadGridView will auto-generate columns automatically using your DynamicObject GetDynamicMemberNames() implementation and will call your TryGetMember/TrySetMember (TryGetIndex/TrySetIndex in case of indexer binding) methods when needed.

 

To illustrate this I’ve made small example project (similar to this blog post) demonstrating...


Viewing all articles
Browse latest Browse all 5210

Trending Articles