我正在使用下面的代碼來獲取datakey值,當行雙擊,現在我想在這裏使用這個key值,我怎麼能得到這個值(或)如何將此值傳遞給服務器端?如何獲得datakey值,當行雙擊radgrid
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function RadGrid1_RowDblClick(sender, args) {
var keyValue = dataItem.getDataKeyValue('WageID');
// want to get this keyvalue in server side
}
</script>
</telerik:RadScriptBlock>
<telerik:RadGrid ID="RadGrid1" runat="server"
OnNeedDataSource="RadGrid1_NeedDataSource">
<MasterTableView ClientDataKeyNames="ID">
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowDblClick="RadGrid1_RowDblClick" />
</ClientSettings>
</telerik:RadGrid>