Need To Get Value From HiddenField in Rotator ClientSide

2 posts, 0 answers
  1. Chris Griffin
    Chris  Griffin avatar
    18 posts
    Member since:
    May 2009

    Posted 16 Feb 2011 Link to this post

    I need to get the value out of a hiddenfield of the item template on a client side click?  Any ideas?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 17 Feb 2011 Link to this post

    Hello,


    I tried following code to access HiddenField placed in "ItemTemplate" of RadRotator.

    Client code:
    function OnClientItemClicked(oRotator, args) {
         var elementH = args.get_item().get_element().getElementsByTagName("input");
         if (elementH[0].type = "hidden") {
             alert(elementH[0].value);
         }
       .  .  .
    }



    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top