Custom link


Good afternoon, I have the following grid, in the first column I want to place a link to each number of "radicado", the link would be the following: /edit/Radicado




1 Reply

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team May 30, 2018 05:08 PM UTC

Hi Norberto,

 

Thanks for contacting Syncfusion Support.

 

We have checked your query and we have already discussed this requirement “How to place HyperLink column in Grid columns” in our Syncfusion knowledge Base document. For your convenience please refer to the following Link:-

 

https://www.syncfusion.com/kb/3768/how-to-place-hyperlink-in-grid-column

 

Query :- the link would be the following: /edit/Radicado

 

Please refer to the code example:-

 

@(Html.EJ().Grid<OrderTable>("Grid")

       .Datasource((IEnumerable<OrderTable>)ViewBag.data)

        .AllowPaging()

        .Columns(col =>

                {

                    col.HeaderText("Manage Records").Template("<a rel='nofollow' href='//www.syncfusion.com/?Radicado={{:Radicado}}'>/Edit/{{:Radicado}}</a>").Add();

                                             col.Field("Radicado").HeaderText("Radicado").IsPrimaryKey(true).Add();

                    col.Field("CustomerID").HeaderText("Customer ID").Add();

                   

 

                })

       .ClientSideEvents(evt => evt.Create("onGridCreate"))

    )

                                                                        

Please refer to the Demo Link about columnTemplate:-

https://help.syncfusion.com/aspnetmvc/grid/columns#column-template

http://mvc.syncfusion.com/demos/web/grid/columntemplate

 

Please get back to us if you need any further assistance.

 

Regards,

 

Farveen sulthana T

 


Loader.
Up arrow icon