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

Displaying Object Attributes in a Modal View

3 Answers 39 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 28 Apr 2013, 06:08 AM
Hello,
I am attempting to have a listview that when a list item is licked, a modal window pops up with more of the objects details inside. 
Currently, I have a onclick function that successfully accesses the correct object. My question however is, how do I access the object then inside the modal view?

Here is a JSFiddle with a snippet of my code

I have found this question previously, however it has provided me with little guidance on what the solution actually was. 

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 29 Apr 2013, 08:03 AM
Hello Michael,

You can pass the opening target (so that it is accessible in the modalview open event) as a parameter to the open method

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 29 Apr 2013, 12:18 PM
Hey, 
Thanks for the reply,
Are you please able to provide an example of how you would do this and reference the object attributes in this case? as the documentation is kind of confusing sorry. 
0
Petyo
Telerik team
answered on 01 May 2013, 07:07 AM
Hi Michael,

If I understood your requirements correctly, the following example should give you the necessary directions.

Greetings,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ModalView
Asked by
Michael
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Michael
Top achievements
Rank 1
Share this question
or