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

Rad Grid

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yuvraj
Top achievements
Rank 1
Yuvraj asked on 11 Aug 2016, 04:46 PM

I am using radgrid, i have used asp link button in GridTemplateColumn .

On click of link button i want to get value of label which is different GridTemplateColumn using javascript.

How to fetch value of label by client side.

Please help. Regards

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 16 Aug 2016, 11:47 AM
Hi,

You can use the findControl() method to get reference to client object of RadControl or ASP.NET AJAX control inside the grid row.

function getControl() {
        var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();
        var radlbl1 = masterTable.get_dataItems()[0].findControl('Label1');// Here 0 represents the index of crow in editmode
    }


Regards,
Maria Ilieva
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Yuvraj
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or