getAttribute from RadNumericTextBox

4 posts, 0 answers
  1. Derek Hunziker
    Derek Hunziker avatar
    62 posts
    Member since:
    Sep 2008

    Posted 13 Sep 2008 Link to this post

    Hey there,

    Anyone know how to get a custom attribute from a RadNumericTextBox?  I've tried:

    <telerik:RadNumericTextBox ID="RadNumericTextBox0" testAtrb="Hello world" ... 


    function ValueChanged(sender, eventArgs) 
         alert(sender.testAtrb); 
         alert(sender.get_element().testAtrb); 
         alert(sender.get_element().getAttribute("testAtrb")); 
             

    But no worky :(
  2. Derek Hunziker
    Derek Hunziker avatar
    62 posts
    Member since:
    Sep 2008

    Posted 13 Sep 2008 Link to this post

    Oopsy daisy, I got it now...

    var target = document.getElementById(sender.get_element().id + '_text'); 
    alert(target.getAttribute('testAtrb')); 

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 22 Jul 2010 Link to this post

    THANKS!!
  5. Kavitha
    Kavitha avatar
    20 posts
    Member since:
    Oct 2012

    Posted 02 Oct 2012 Link to this post

    Thanks. It worked for me too !!!
Back to Top