Seelcted item from client side

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 21 Nov 2011 Link to this post

    I have a combobox with some items(like Name field).In which client event can I access the selected item text from client side?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Nov 2011 Link to this post

    Hello Tina,

    You can subscribe to the OnClientSelectedIndexChanging event and can access the text.
    Javascript:
    function OnClientSelectedIndexChanging(sender, args)
     {
          alert(args.get_item().get_text());
     }

    Thanks,
    Princy.
Back to Top