<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ContextMenu.aspx.cs" Inherits="DataGrid_ContextMenu" %>
<%@ Register TagPrefix="APNSoft" Namespace="APNSoft.WebControls" Assembly="APNSoftControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function OnContextMenu(GridID, RowID, CellValue, ContextMenu){
if(RowID=='BERGS'){
//Get Additional Context Menu
var ContextMenuAdd = document.getElementById('MenuForBERGS');
ContextMenu.innerHTML=ContextMenuAdd.innerHTML;
}
};
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<APNSoft:APNSoftDataGrid id="myDataGrid" runat="server"
SkinFolder = "~/DataGrid/Skins/APNSoft/"
width = "550"
height = "250"
ClientSideOnContextMenuRow = "OnContextMenu('$ComponentID$', '$RowID$', '$CellValue$', $ContextMenu$);"
ContextMenuHeader-Template = "~/DataGrid/Templates/ContextMenuHeaders.xml"
ContextMenuRow-Template = "~/DataGrid/Templates/ContextMenuRows.xml"
/>
</div>
</form>
</body>
</html>
|