Hi, I am using the WHDG. We have a requirement to set a given row-index as "selected" via code when the page is loaded. I have been able to get handle to the row's datakeyID and/or index before . How do I set the row as "selected/highlighted" when the grid is re-loaded?I was looking at the article...
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=2798UltraWebGrid1.DisplayLayout.Rows[0].Selected = true;UltraWebGrid1.DisplayLayout.SelectedRows.Clear;
But I could not find a similar method or property for the WHDG rows selection. Can someone please advise?
Hi, I tried to select a given row using CSOM using the following code.
grid.get_gridView().get_behaviors().get_selection().get_selectedRows().add(grid.get_gridView().get_rows().get_row(rowIndex));
This code sets the style of the row as "selected" upon rendering. But I also want to invoke click action of the row. How do I achieve this?I tried the following code...but it did not work.grid.get_gridView().get_rows().get_row(rowIndex).click();Can someone please advise?Thanks,
Hi,
WebHierarchicalDataGrid.Behaviors.Selection.SelectedRows.add(gridrecord)
Ed