User Profile & Activity

Eric Member
Page
of 19
Posted: September 8, 2009 10:09 AM

or even simpler:

function SetGridTitle(gridID,title)
{
	var grid=ISGetObject(gridID);
	grid.RootTable.Columns.GetNamedItem('Column_Name').GetElement().innerText=title;
	return true;
}
Posted: September 8, 2009 10:03 AM

I found the solution myself. The JavaScript function needed is missing somehow in the documentation, but is visible in the runtime / debugging environment. The new code now looks like this:

function SetGridTitle(gridID,title)
{
	var grid=ISGetObject(gridID);
	var ColNo=grid.RootTable.Columns.GetNamedItem('Column_Name').Position;
	grid.RootTable.Columns[ColNo].GetElement().innerText=title;
	return true;
}
All times are GMT -5. The time now is 11:28 AM.
Previous Next