Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Klickable URL in entity tables #8740


User avatar
0
PekitP created

Hi,

Can you please help me out. I need one field / cloumn to show a klickable url in UI table, how do I manage to do this? NET Core, Jquery

Best /Peter


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi Peter,

    You can define a render function for your columnDefinition like below;

    render: function () {
    	return '<a href="#">Link</a>';
    },
    

    You can also check https://datatables.net/reference/option/columns.render

  • User Avatar
    0
    PekitP created

    Hi, great!

    To change entity table link column:

    1. Go to www root, view-resorces, areas, app, views, bundles, index file
    2. Serach for columndef
    3. Below change targets: X data: "field" to add render below
    {
                        targets: 3,
                        data: "name",
                        render: function (data)
                        {
                            return '<a href="' + data + '">Länk</a>';
                        },
                    },