Hi
I have a webgrid that shows some rows and when you clik a row it
opens a new windows and displays some stuff.
When i group the grid with a column i want when you click the grouping row to open
a window with some parameters from the grouping row but i can't find a way to do this.
Thanks in advance
Hi,
I assume you are using javaScript for this purpose. Then, the clientside events of the WebGrid can be handled. For example, here is a code snippet of AfterRowActivateHandler:
function ultraWebGrid1_AfterRowActivateHandler(gridName, rowId)
{
var row = igtbl_getRowById(rowId);
if(row.GroupByRow) //is true if the grouping is done
var VisibleChildRowCount = row.VisChildRowsCount;
window.open(
"">http://es.infragistics.com","test","status=1", "toolbar=1");
// window.open(['www.infragistics.com' + row.VisChildRowsCount]);
}
Here I'm accessing the Visible Child Rows count for the grouped row.
I hope this helps.
Thanks
Hi Sarita,
No i don't use javascript.
When (first) table is initialized onInitializeRow event i change a cell.targetUrl to contain a link which opens a new window.
When i drag a collum for grouping the layout of the table changes and shows
1 row with the group column e.g Panos(2) and below the other collumn or the rows
e.g
test,test,test
test1,test 2,test3
I want in the grouping row where it displays Panos (2)
to add the same link i have in the first table.