Getting Started with the Android DataGridView

clock June 26, 2014 03:04 by author Administrator

PLEASE NOTE: If you are using version 2.0 of the library, you will need an updated Settings Layout. Follow instructions here :


When you purchase, or request a trial of the library you get a zip file that contains an Android project, setup, configured and ready to run. This project is a fully self-contained demo console that demonstrates all the features of the Android DataGridView. To get started with this project, all you have to do, is to import it into eclipse, and run the MainActvity in the project.

To use Android DataGridView in a new project, please use the following steps

        a. In your libs folder, copy the flexiciousandroidlib_out.jar

        b. Create a new folder named "raw" under "res" folder and paste the "flex_default_styles.json" from FlexiciousAndroidConsole/res/raw to newly created raw folder 

        c. In your res folder, copy files that starts with "flxs_" from FlexiciousAndroidConsole\res\drawable-hdpi\drawable-hdpi

      Take the files which starts with "flxs_" from FlexiciousAndroidConsole\res\layout and paste into your layout folder under res 

3)      In the layout of your activity, drop a FlexDataGrid component. Lets give it ID flexDataGrid

4)      In the code for your activity, add the following piece of code:


        * Takes a grid, and an XML configuration, loads the XML configuration into the Grid.

        * @param grid

        * @param resource


       public void buildGrid(FlexDataGrid grid, Integer resource) {

             grid.delegate = this;

             BufferedReader reader = new BufferedReader(new InputStreamReader(this


             StringBuilder builder = new StringBuilder();

             String aux = "";

             try {

                    while ((aux = reader.readLine()) != null) {



             } catch (IOException e) {

                    throw new RuntimeException(e);//For demo purposes only. For production Apps, throw a checked Exception.



             String text = builder.toString();



5)      In your onCreate method of your activity, once you set the content view, configure the grid:

   protected void onCreate(Bundle savedInstanceState) {



FlexDataGrid flexDataGrid = (FlexDataGrid) findViewById(;

this.buildGrid(this.flexDataGrid, R.raw.your_xml_configuration_for_flexdatagrid);




6)      Certain key things to point out here are

a.       The layout for the Activity (your_layout_with_flexdatagrid) should contain a flexdatagrid object with an id (your_grid_id):

b.      You should have a configuration defined for your grid in your raw folder accessible via a resource name (your_xml_configuration_for_flexdatagrid). This configuration should contain markup similar to the contents of the configuration files in the sample project. The configuration itself is an advanced topic which will be covered in the User Manual, but you can use any config file from the demo project as a reference.

c.        You should have a list of POJOs (of any type, as long as they inherit from Object) to render within the grid. The objects can have simple public properties, or getters/setters that would return the data to render in the columns.


You can download a sample project that does this here: (884.09 kb)

Introduction to the AndroidJetPack Android DataGridView

clock June 26, 2014 02:50 by author Administrator

AndroidJetPack Android DataGridView (henceforth referred to as the grid) is a powerful DataGrid designed for the Android platform. It is built to render highly complex, Hierarchical/Nested as well as Flat Data in Line of Business RIA applications, with a massive set of features Right out of the Box. Inline Filters, Summary Footers, Fully Customizable Server/Client Paging, DataGrid Print, Excel Export, Word Export, and User Settings Persistence, Smooth Scroll, Nested hierarchical Tree/Child grids, Left & Right Locked columns, built in Lazy Load support, and a whole lot more. A full list of features can be found here:


Why Android DataGridView?


  • A Feature set unmatched by any: The Android DataGridView was specifically designed to handle very complex use cases that involve hierarchical data as well as complex interactions you can perform with such data sets. Some of the examples of such interactions include lazy loading child records that each hierarchical level, recursive selection, selection cascading and bubbling, virtual scroll, built-in support for drill up and drill down, built in support for in-line detail panels, in addition to integrating with regular DataGrid features like in-line filtering, paging, multiple columns sort, grouped as well as left and right locked columns, row span and column span, a number of selection modes like cell, row , multiple cell, multiple row, as well as customizable programmatic cell backgrounds contents borders and colors. The complete list of features is way too long to cover in this single blog post so please look at the features and the demos to get an idea of what's possible. 
  • Highly Optimized: We have gone to great lengths to optimize every single piece of the rendering mechanism. We recycle renderers as you scroll in both directions horizontal as well as vertical. We draw just the visible area for all the sections of the DataGrid including headers footers filters the toolbar as well as the data area. This makes it possible for us to render very large record sets in a very short period of time. 
  • Laser Sharp Focus: As a company, we have been making a living for years by providing our customers with the most powerful Flex DataGrid component money can buy. Today we are bringing that same level of polish to Android developers. We have a team of very talented developers and designers who have thought about the DataGrid component more than what should be considered healthy. We have pondered over use cases, argued over user interaction schematics, listened to our customers, refined and improved our product on basis of what their requirements are, and relentlessly refactored, redesigned and redeveloped features until they achieve perfection. We're committed to constantly improving our product in pursuit of the highest level of quality.
We are excited to be a part of your Android application development endeavors. Request a trial today to see what we can do for you!


AndroidJetPack Team Blog

Tag cloud