Hi does anyone have a simple example that shows how to connect a ListGrid to a database directly WITHOUT going through the xml?
Sorry if this was asked but i searched everywhere and couldnt find an example. All the grids demo codes just have setDataSource(someDataSource), then when you look at the actual *DS.java file, all it does is pointing to a xml file. I was able to create my own pipes for the dropdowns..but for listgrid i need the serverside row fetching / lazy rendering etc..that's built into the grid.
How do you create a datasource that run a select sql then hook the result to the listgrid? For example in the *ds.java file how to replace setDataURL("ds/test_data/supplyItem.data.xml"); with a select sql that gets the data instead of reading it from some static xml.
I am using the free version of smartgwt.
thank you
Sorry if this was asked but i searched everywhere and couldnt find an example. All the grids demo codes just have setDataSource(someDataSource), then when you look at the actual *DS.java file, all it does is pointing to a xml file. I was able to create my own pipes for the dropdowns..but for listgrid i need the serverside row fetching / lazy rendering etc..that's built into the grid.
How do you create a datasource that run a select sql then hook the result to the listgrid? For example in the *ds.java file how to replace setDataURL("ds/test_data/supplyItem.data.xml"); with a select sql that gets the data instead of reading it from some static xml.
I am using the free version of smartgwt.
thank you
Comment