Hi,
To fulfill the requirement, I need to use client side scripting such as:
<script type="text/javascript">
function
activeCellChanged(sender, args) {
alert("row activated:" + activeCell.getRowIndex());
ig.smartSubmit('caseDetailForm:tranGridView',null,null, 'caseDetailForm:tranDetailPanel', null);
}
</script>
<ig:gridView>
<ig:gridClientEvents activeCellChanged="activeCellChanged">
...
</ig:gridView>
my question is:
1) Are there more events for ig:gridClientEvents that I can catch? I know there are enteredEditMode. Where is the complete documentation for it?
2) How can I retrieve grid value? For example, I need to get the value of first row and secnd column?
thanks.
Sure:Insead of the sample browser, it'll be easier if you go to componentsforjsf.com, click on the "Online Demo" link
In the panel that comes up, mouse over the "CSOM" tab and then select one of the examples under "Grid"
Best,Jim
Hi Jim,
I looked the samples in release 9.1. I still cannot find the sample to retrieve cell value from the grid object. Can you provide more info?
thanks,
Yan
Hi:
This functionality is included in release 9.1 which came out Monday. Watch componentsforjsf.com early next week for samples and explanations of how to do the things you're looking for.
Also, the 9.1 sample browser has a sample in it which demonstrates all the grid objects etc.
Thanks,Jim
I see how to get grid object by using:
cell.getGrid(),
There is one more question about get the value of specific row and column. For example, I want to get the value at row 2 and coloumn 1. grid object should have the method to provide it. right?
Thanks.
Hello,
1) You can get the detail about the other client side event by following link:
http://help.infragistics.com/Help/NetAdvantage/JSF/2008.2/HTML/WebGrid_Cell_Editing_Properties.html
Also refer the following online sample application to get know uses of it:
http://java.samples.infragistics.com/NetAdvantage/JSF/2008.2/featurebrowser/webgrid/cellEditing/clientEvents.faces
2) If you are looking for the get the cell value using the available client side events of the grid, Just refer the following:
In JSP TAG:
<
ig:gridClientEvents enteredEditMode="EnteredEditMode" />
Now to display the cell value for this event, you can use following event handler in script:
script type="text/javascript">
EnteredEditMode(sender, args) { EventHandler(sender, args, "EnteredEditMode" ); }
EventHandler(sender, args, eventType) {
if
(!sender) return; var cell = args.getCell(); alert(cell.get_value());
</
script>
Hope it helps you.
Thank you.