Datakeyvalue from client side

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

    Posted 23 Apr 2013 Link to this post

    I am hiding a column in treelist by setting its display as false.Is that possible to get the column value in itemclick event from client side?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Apr 2013 Link to this post

    Hi,

    One suggestion is to set ClientDataKeyNames and retrieve the value using following javascript.
    JS:
    function OnItemClick(sender, args) {
          alert( args.get_item().get_dataKeyValue("ID"));
       }

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