Hi,
Thank you for considering Aspose.
1. To attach command buttons with client-side script:
First, register the client script function onGridInitClient to the OnGridInitClientFunction of GridWeb. The html code like this: OnGridInitClientFunction="onGridInitClient".
Second, insert the client script function code into aspx.
<script language=javascript>
function onGridInitClient()
{
var cmdButton = document.getElementById("GridWeb1_CCMD");
cmdButton.attachEvent("onclick", onCmdButtonClick);
}
function onCmdButtonClick()
{
window.alert(event.srcElement);
event.cancelBubble = true; // if you want to cancel current event, add this line.
}
</script>
2. To hook Ajax request URL, override ProcessRequest method in your page class. You can get Request object from context object.
public override void ProcessRequest(HttpContext context)
{
base.ProcessRequest(context);
}
Thank You & Best Regards,
Nausherwan Aslam
Support Developer,
Aspose Sialkot Team
Contact Us