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

[Solved] Adding Select able content to column

4 Answers 34 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jaren
Top achievements
Rank 1
Jaren asked on 27 Jan 2015, 03:14 PM
I want to add a column to my grid that is a select able string that opens to a pdf. Not sure how to implement this and I don't notice a column type that supports this feature like TextColumn or NumericalColumn.

Thank you

4 Answers, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 29 Jan 2015, 08:48 AM
Hi Jaren,

In this scenario you can check our template column which enables you to add custom content (in your case, hyperlink or button). More information regarding its usage can be found here   http://www.telerik.com/help/windows-8-xaml/datagrid-columns-templatecolumn.html

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jaren
Top achievements
Rank 1
answered on 03 Feb 2015, 08:39 PM
Thank you this helped. I just have one more question regarding using this.

Each row will have data and a button. When the user clicks the button I want it to launch into pdf of the data's original source. But I need information from the row that the button is in to find the correct pdf.

How do I find this row of data based on which row's button is clicked. 

Thank you
0
Accepted
Tsvyatko
Telerik team
answered on 05 Feb 2015, 08:49 AM
Hello Jaren,

if you are attaching to button click event you can use sender button DataContext which will represent the row data item. Let me know if this helps.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jaren
Top achievements
Rank 1
answered on 05 Feb 2015, 02:50 PM
Works great! Thank you.
Tags
Grid for XAML
Asked by
Jaren
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Jaren
Top achievements
Rank 1
Share this question
or