I am new to the silverlight part of telerik but have been using Kendo for a while. Im trying silverlight to see if it can do some things for us in a better way.
In Kendo on a grid when I clicked to get row details I was able to pick up the id of the parent or clicked item by doing e.data.nItemID in the function that was called for expand. I assume there is a way to do this for the silverlight grid but I cant find it in the docs or figure it out, could someone please point me in the direction of what i should be doing?
8 Answers, 1 is accepted
Event though you have named the grid in the row details, you will not be able to get it directly through it as it is defined in DataTemplate. On the other hand, RowDetails need to be expanded so that you can get the elements inside. Otherwise (if they are collapsed), they will not be created.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I would recommend you to run through our online documentation for a reference.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Will you post any particular feedback related to our documentation? Have you found something wrong?
Greetings,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
The question you are asking for row details is actually the common scenario in both Silverlight and WPF and usually is handled with MVVM using bindings. The FrameworkElement DataContext property is actually your data item and you can simply bind whatever property you want . For example:
...
<TextBlock Text={Binding ID} />
...
You can use commands again using bindings and refer specific properties, etc. Please check our online demos for more info.
You can check also these articles for more info about MVVM, Bindings, etc.:
http://msdn.microsoft.com/en-us/library/cc189022(v=vs.95).aspx
http://msdn.microsoft.com/en-us/library/gg430869(v=PandP.40).aspx
Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>