After I installed the 8.1 for asp.net(infragistics) ,I found ultrawebgrid's client-side function "getActiveRow()" doesn't work,and I use the function correctly in 7.2.Can u help me?Please!
Hello,
How are you calling this fucntion? And when is it being called?
Duc Nguyen: ths for ur attention:)
I use ultrawebgrid in a Contentpage (with masterpage) and use javascript to Delete record from database(MS sqlserver). In the grid ,I add a column which doesn't bind with data ,and i define the Its type --Button. The clientScript-"clickcellbuttonHandler":
function DeleteRecord() { if (confirm("Delete current row?")==true) { var oGrid = igtbl_getGridById("UltraWebGrid1"); if (oGrid.getActiveRow()!=null) { var oRow = oGrid.getActiveRow(); oRow.deleteRow(); document.getElementById("aspnetForm").submit(); } } }
The message tell me :object not defined. and now the function was changed to :
function UltraWebGrid1_ClickCellButtonHandler(gridName, cellId){ var oCell = igtbl_getCellById(cellId); var oRow = oCell.getRow(); if (oCell.Column.Key=="Edit") { document.location = "Mgr_InformationEdit.aspx?id="+oRow.getCellFromKey("ID").getValue(); } else if (confirm("Delete current row?")==true) { oRow.deleteRow(); document.getElementById("aspnetForm").submit(); }}.
for the test ,I add an html button in a blankpage just with ultrawebgrid,and onclick:
function button1-click(){
var oGrid = igtbl_getGridById("UltraWebGrid1"); if (oGrid.getActiveRow()!=null)
alert("good");
}
The same message appear again.
can u help me?
ths a lot!