I need to be able to programmaticaly select a specific cell in the WebDataGrid - both server side and client side....
can this be done?
should I be able to find this is the documentation?
cheers
Jonathan
Well, you can see the class that that get_selectedCells() returns. Then go to the definition of that class in the documentation. Or do what I do. Just throw a debugger; statement in the code and make Visual Studio or a debugging browser tell you what methods and properties there are.
-Dave
How did you find that in your documentation? When I search for "get_selectedCells()," I get a reference list that does NOT tell me what that function returns or how I can iterate through the collection.
I guess I'm asking you to teach a man to fish.
yes that is perfect - thank you!
Hello Jonathan,
Here is the documentation link:
http://help.infragistics.com/NetAdvantage/ASPNET/2010.3?page=WebDataGrid_Cell_Selection.html
Please let us know if you need further assistance.
Hi Jonathon,
This should be available in the documentation.
on the server.
this.WebDataGrid1.Behaviors.Selection.Cells.Add(this.WebDataGrid1.Rows[0].Items[0]);
on the client
var grid= $find("wdg1");
grid.get_behaviors().get_selection().get_selectedCells().add(grid.get_rows().get_row(0).get_cell(0));
Hopefully this works for you. Note that when you add to selection, previous selection is kept. you have to remove or clear first.
regards,David Young