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

DATA in GRID as link to other window

1 Answer 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pranouthi
Top achievements
Rank 1
Pranouthi asked on 31 Mar 2015, 06:45 PM
How can i show data for one of the column as link(href) in the grid.

<kendo:grid name="grid" selectable="multiple">
        <kendo:grid-pageable pageSizes="true" buttonCount="5" />
        <kendo:grid-sortable mode="multiple" allowUnsort="true" />
        <kendo:grid-columns>
            <kendo:grid-column title="num" field="rowNum" width="130px" />
            <kendo:grid-column title="Test Id" field="testId" width="130px" />            
        </kendo:grid-columns>
        <kendo:dataSource data="${List}" pageSize="15">
            <kendo:dataSource-schema>
                <kendo:dataSource-schema-model>
                    <kendo:dataSource-schema-model-fields>
                        <kendo:dataSource-schema-model-field name="rowNum" type="string" />
                        <kendo:dataSource-schema-model-field name="testId" type="string" />                                            
                    </kendo:dataSource-schema-model-fields>
                </kendo:dataSource-schema-model>
            </kendo:dataSource-schema>
        </kendo:dataSource>
    </kendo:grid>
    
    here i want testId to be displayed as link and when i click on the link i want to open a  new window for showing more details.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 02 Apr 2015, 03:38 PM
Hello,

You can use the "template" option of the column where Kendo UI template syntax can be used:

<kendo:grid-column title="Test Id" field="testId" width="140" template="<a href='yourWebService/#=testId#' target='_blank'>Link</a>" />

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