I am using NetAdvantage 9.1 ASP.NET CLR2x. I have an UltraWebgrid inside of a WebAsyncRefreshPanel. I want an async refresh when the users changes pages. I want a full post back when a user clicks a row. I have set the ClientSideEvent RefreshRequest to a java script event handler.
function WebAsyncRefreshPanel1_RefreshRequest(oPanel,oEvent,id)
{
if (id=="UltraWebGrid1" && oEvent.type=="Click") oEvent.fullPostBack=true; }
oEvent.type is always undefined. How do I detect the Click event and ignore the page event?
Seems like the CellClickHandler event of the grid might be a better place to do this.
That did the trick. Thanks.
function UltraWebGridCellClickHandler(gridName,CellID,button)
//set a hidden label text to "True" to record the fact that a cell has been clicked var elblCellClicked = igtbl_getElementById("lblCellClicked"); elblCellClicked.text="True"; } function WebAsyncRefreshPanel5_RefreshRequest(oPanel,oEvent,id) { if (id=="UltraWebGrid1") { var elblCellClicked = igtbl_getElementById("lblCellClicked"); //alert('fullPostback ' + oPanel + ' ' + id + ' ' + oEvent.type + ' lblCellClicked=' + elblCellClicked.text); if (elblCellClicked.text=="True") oEvent.fullPostBack=true; //Full post back else oEvent.fullPostBack=false; //Async post back elblCellClicked.text="False"; } else { //alert('Asyc ' + oPanel + ' ' + id + ' ' + oEvent.type); //wrong grid } }