Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
Solution: gridView: adding additional rows after page is displayed
posted

Hi

 Write the code in jsp to build the GridView using regular tags. You don't have to build the GridVIew programetically,unless if you have some other requirements, just to add rows later on.

in bean do following:

import com.infragistics.faces.grid.component.html.HtmlGridView;

define a variable say:

HtmlGridView myGridView;

and write accessing methods i.e. get.... and set... methods.

 in jsp bind your gridvew to this variable.

In the action/actionListner method which gets called as result of user click on some component that requires new row(s) to be added to the after you finishing adding new row(s) send dataBind() message to gridview in my example it will be getMyGridView.dataBind();

test the page, if you don't have any other errors this will work like magic.