I am developing a ListGrid component and I want the data for the ListGrid to be loaded up as the page gets loaded. It works fine with setting “datasource=abc” and “autoFetchData=true” settings. But I am using Struts at this point, so I need to find out how to autoFetchData when using Struts. Just by giving dataURL doesn’t work I suppose.. help please. Thank you.
Hi Meoohps,
You should be able to use the same approach in a struts integrated deployment: set the dataSource and autoFetchData properties on your grid.
On the client, your dataSource definition will have to be modified to specify serverType:“generic” and have the appropriate dataURL.
On the server you’ll need config to map the specified URL to your action, and you’ll need code to respond to the request.
This is covered in the documentation here. Let us know if you hit specific issues with this approach
Thanks