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

data key value on client side on item click

1 Answer 86 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 19 Oct 2012, 08:36 AM
hii,
how  can i get the datakey value on client side on item click?
 thanks..

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Oct 2012, 08:47 AM
Hi Hash,

Try setting ClientDataKeyNames Property of RadTreelist and get the value using following Javascript.

ASPX:
ClientDataKeyNames="ID"

JS:
<script type="text/javascript">
    function OnItemClick(sender,args) {
        var val = args.get_item().get_dataKeyValue("ID");
        alert(val);
    }
</script>

Hope this helps.

Regards,
Shinu.
Tags
TreeList
Asked by
beeta one
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or