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
755
commands and AJAX funcionality
posted

Hello,

I would like to ask you if the following scenario can be solved with AJAX functionality:

I have web grid (table) and each row contains delete action. When user clicks on delete icon then table row should be deleted, ideally without page refresh but only with web grid refresh (AJAX).

 

My current solution is over action listener. It works fine but the whole page must be refreshed.

            <h:commandButton image="images/icon_remove.gif" value="#{DATA_ROW.id}"
                actionListener="#{assetController.removeAssetGroupListener}" />

 It would be nice to have a NetAdvantage commands with AJAX support.

Thank you,

ANECT

Parents
No Data
Reply
  • 1579
    posted

    Hi, ANECT!

    It seems like you have to add grid.dataBind(); into your action listener, where grid is a com.infragistics.faces.grid.component.GridView property in the backing bean and your WebGrid is binded to it. When the dataBind() method is executed it will reconnect the grid to it's data source and the grid will refresh without the need of the whole page to be refreshed.

    Regards!

Children