I Copied mailbox (linked below) and it is work good. but when i changed XmlDataSource to my SqlDataSource (i fixed all data bound corectly) all GetDataKeyValue retunrn null.
<script type="text/javascript">
function ShowMessage(sender, args)
{
var id = args.getDataKeyValue("ID");//<==??????????????????????
var wnd = window.radopen("Details.aspx?AuthorID=" + id, null);
/ /Get the clicked row
var index = args.get_itemIndexHierarchical();
var item = args.get_tableView().get_dataItems()[index];
var rowElement = item.get_element();
//Get coordinates of the row and reposition the window relative to it
var bounds = $telerik.getBounds(rowElement);
wnd.moveTo(bounds.x + 120 + index * 10, bounds.y - 180);
}
</script>
Link: http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx