This is a migrated thread and some comments may be shown as answers.

Datakeyvalue from client side

1 Answer 35 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 23 Apr 2013, 12:56 PM
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?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Apr 2013, 01:06 PM
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
Tags
TreeList
Asked by
Tina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or