hi,
iam using infragistics 2008
i used gridview to display the data
iam using image in link tag and iam calling one method
in that method i want to get the rowdata based on the user selection.
in normal jsf dataTable we have getDataTable().getRowData()
but in gridView can i have that Option..?
can we get the data of that row and typeCast to businessObject..?
pls reply,
thanks in advance
Hi mavillasarath, At this point we don't have such functionality to retrieve data using function similar to getRowData(). This feature will be soon available in our next product release or Hotfix.
Do you have this functionality available now?
I need similar functionality to be implemented. I need to get row data or row index of a particular row in the grid view.
Hi:
As Swetha points out, you can use a check box for row selection: with that you will be able to grab the selected row or rows and cast a BO from them.
Alternatively, if you use version 9.1 you can capture the row click on the client-side via our CSOM, and pass it to the server via our AJAX "smart submit" feature.In most cases, the easiest way to do what you want - or at least, what I think you want - is to capture the row click via CSOM and them put something (usually the primary key of the row) into a hidden field. Then send that field to the server via Smart Submit and have the server do any business level processing you need.
If your new to the product, this might seem odd, but its actually quite easy and required very little coding.
Best,Jim
No as per our requirements it is not possible to use checkbox. Do you have an example of how to use it the other way?
My jsp page looks like the following
When I click on command link youPaid I should be able to pass claimNumber(unique key) or the row id like the rownumber to my managed bean depending on which I have to display another grid. I do not want to implement check box. Should I use ig smartsubmit?
<!
>
<%@
"text/html; charset=ISO-8859-1"
%>
"http://es.infragistics.com/faces/netadvantage"
"http://jakarta.apache.org/struts/tags-tiles"
<
"outputText"
"medicalGridView"
"text3"
"gridViewRenderer13"
"2"
="#{medicalClaims.youPaid}"
h:commandLink
"Prescription Claims"
"drugGridView"
"text4"
="#{DATA_ROW.prescriptionClaims}"
"youPaidDrug"
"gridView"
"dentalGridView"
"text5"
"gridViewRenderer15"
"youPaidDental"
"fsaClaimsGridViewRenderer"
"false"
</
Yes, you should use SmartSubmit as described above. If you're really unsure how to proceed you might consider having an Infragistics consultant help you. You can contact them at sales@infragistics.com