Hi,
I am new to infragistics. I am using wegrid to display my data on the page. I have a requirement to fire an event on clicking anywhere on a row. I need to display the row data on a different panel on the page. I can work with a client side event (javascript as I have all the data on the page itself) or a server side even. Please help ....
Hi
How can we get the index a selected row of a xamDataGrid?
Nidhin.
Hi:Our new version (9.1) which will be out next month (March) includes theevent handlers that will make this type of usage much easier. Until then you ca, allow row selection via a checkbox which can be included anywhere in the grid row. There are several examples of this over at http://componentsforjsf.com.
In particular, I think you will find these two examples helpful: http://www.componentsforjsf.com/WebGridExamples/faces/examplePages/RowSelectionWithPersistence.jsphttp://www.componentsforjsf.com/WebAJAXExamples/faces/examplePages/ajaxWithSRM.jsp
Both these examples are from our "Online Demo" section.Thanks,Jim
Hello Srini,
The code you have provided is for ASP.NET's Infragagistics WebGrid. However, here the query is for Infragagistics JSF GridView.
Thank you.
Well I have the row index i clicked on. I also used the same approach as you. Now what i want is, either to trigger a server side method where i have the grid view bound to get that row data or if I can use client side scripting to iterate over the grid to get the data of that row.
One more thing the methods which you have used like igtbl_getRowById which js file do they belong to ?
I dont have a handle to those methods.
You can do it client side .
If your row is editable you can use
{
alert("selected row index " +igtbl_getRowById(cellName).getIndex());
}
if your row is non editable u can use the following client side event
set ur client side events accordingly for ex:-
<ClientSideEvents CellClickHandler="CellClick"/>