get_visibleItems text/value

3 posts, 1 answers
  1. Martin Roussel
    Martin Roussel avatar
    246 posts
    Member since:
    Jan 2010

    Posted 13 Dec 2012 Link to this post

    HI, I would like to know how to retrieve text and value from an get_visibleItems object. I tried the following without success:

    if (sender.get_visibleItems().length == 1) {
                     alert(sender.get_visibleItems(0).get_text());
                     alert(sender.get_visibleItems(0).get_value());
                     alert(sender.get_visibleItems(0).toString());
     }

    Sorry to create a topic for this but it seems I cant find the answer anywhere.

    TIA
  2. Answer
    Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 13 Dec 2012 Link to this post

    Hello Martin,

    The way you are accessing the property is incorrect. It should like so:

    sender.get_visibleItems()[0].get_text();

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martin Roussel
    Martin Roussel avatar
    246 posts
    Member since:
    Jan 2010

    Posted 13 Dec 2012 Link to this post

    thank you

    Martin
Back to Top