Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1115
Migrate from 2011.1 to 2012.1 client side code
posted

We change Infragistics.WebUI.UltraWebGrid.UltraWebGrid to Infragistics.Web.UI.GridControls.WebDataGrid. Now, we have problems with replacing.

How we can migrate this code?

var row = igtbl_addNew(gridName, 0);
var grid = igtbl_getGridById(gridName);
grid.clearSelectionAll();

SelectRow2(grid, grid.Rows.length-1);

igtbl_EnterEditMode(gridName);

function SelectRow2(grid, rowNum) {
alert("SelectRow2");
if ((grid.Rows.length > rowNum) && (rowNum >= 0))
{
grid.Rows.getRow(0).getCell(0).activate();
var row = grid.Rows.getRow(rowNum);
// Set the cell as the active cell
grid.setActiveRow(row);
row.setSelected(true);
}
}