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

Row Details Get Parent Item ID

8 Answers 77 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Craig Broadhead
Top achievements
Rank 1
Craig Broadhead asked on 21 Jun 2012, 01:44 PM
Hi,

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

Sort by
0
Craig Broadhead
Top achievements
Rank 1
answered on 21 Jun 2012, 02:08 PM
OK I think I have found out how to do that, I have cast the current item to the object type that I want but now I have the problem that the grid view I have in the row details template cannot be seen from the cs file, does anyone know why that would happen. I have given it a name but it does not show up!?
0
Maya
Telerik team
answered on 21 Jun 2012, 02:44 PM
Hello Craig,

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. 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Craig Broadhead
Top achievements
Rank 1
answered on 21 Jun 2012, 02:48 PM
so what do I have to do to access it?
0
Maya
Telerik team
answered on 21 Jun 2012, 02:52 PM
Hi Craig,

I would recommend you to run through our online documentation for a reference. 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Craig Broadhead
Top achievements
Rank 1
answered on 21 Jun 2012, 02:56 PM
I have been using your online documentation, its awful! - Dont worry i'll go back to using the kendo controls - much better documentation.
0
Vlad
Telerik team
answered on 22 Jun 2012, 05:13 AM
Hi,

 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 >>

0
Craig Broadhead
Top achievements
Rank 1
answered on 22 Jun 2012, 07:25 AM
I haven't found something wrong I just find it really unclear (particularly the area on rowdetails). I have been over it several times and I cannot find the answer to my question (which is why I posted on the forum). With your Kendo product you have outstanding documentation - clear - easy to follow - easy to pick up but I find that your silverlight documentation is a polar opposite. It's a shame because some of the controls in your silverlight suite that don't exist in your kendo suite look awesome but if I am taking this much longer getting something that was simple in kendo working in this then its not really worth it!
0
Vlad
Telerik team
answered on 22 Jun 2012, 08:02 AM
Hi,

 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

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Craig Broadhead
Top achievements
Rank 1
Answers by
Craig Broadhead
Top achievements
Rank 1
Maya
Telerik team
Vlad
Telerik team
Share this question
or