This question is locked. New answers and comments are not allowed.
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
Thank you
4 Answers, 1 is accepted
0
Accepted
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
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
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
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
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.