Get control Id from ItemTemplate on client side

3 posts, 1 answers
  1. Testing
    Testing avatar
    31 posts
    Member since:
    Nov 2013

    Posted 01 Feb 2014 Link to this post

    Hi,
    On client side  button click event, I want to get control id that are place in Item template of List-view
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Feb 2014 in reply to Testing Link to this post

    Hi,

    Please try the following JavaScript to access the ItemTemplate Control from Clientside.

    JavaScript:
    function OnClientClicked(sender, args) {
        var listview = $find('<%= RadListView1.ClientID %>');
        // pass id of the itemtemplate control
        var textbox = $telerik.findControl(listview.get_element().parentNode, "RadTextBox1");
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Testing
    Testing avatar
    31 posts
    Member since:
    Nov 2013

    Posted 04 Feb 2014 Link to this post

    thank you its working..
Back to Top