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
644
Important...data export!!!
posted

Hi, In my application i need the feature grid data export in CSV file.

NetAdvantage , has provide this feature, but using h:commandButton,

Is this  possible without using h:commandButton, instade of that i want to use ig:link

as asper the requirement i can't resfresh my page.

To generate and get the csv file , we need to setup the Resonse stream header

Content-Disposition", "attachment; filename=data.csv"

this i can do by coding itself, but is netAdvantage giving us the fexibility to do this by ajax mode? or it also use the same ?

I think it is very required to have the ajax support for this also.

Anybody plz help how can i proceed.

Parents
  • 1324
    posted

    Hello,

    I think the exporting can also be done using the ig:link in the same way as h:commandButton. You only need to place your exporting code in the actionListener of the ig:Link with ajax based refresh for the GridView using smartRefreshIds attribute of the link.

    Is it not working?

    Thank you

Reply Children