Rad Grid

2 posts, 0 answers
  1. Yuvraj
    Yuvraj avatar
    3 posts
    Member since:
    Apr 2016

    Posted 11 Aug Link to this post

    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

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 16 Aug Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top