|
|
|
UIDataGrid versus UITableView
|
|
|
An Overview of the Data Grid
Data Grids present the user with data in a tabular format and are represented by the UIDataGrid class of the TouchControls framework. The information is presented in cells that formatted by rows and columns. The content of each cell is implemented in the form of a DataGridCell object. In turn, the cell object belongs to a specific DataGridColumn object that is a collection of cells. There are 9 types of DataGridColumn classes in the TouchControls framework: Button Column; DatePicker Column; Image Column; Label Column; Picker Column; Slider Column; Switch Column; TextField Column; TextView Column. Each datagrid cell displays a corresponding Xcode component: UILabel, UIImageView, etc. Every cell individually reacts on specified datagrid events: Tap, selecting new item, changing cell's content, and so on.
|
You can extend the UIDataGrid control in a number of ways to build custom behaviors into your iOS apps. For example, you can programmatically specify your own set of displayed columns, and you can create your own types of cells. You can easily customize the appearance of the UIDataGrid control by choosing among several properties.
|
|
|
The Data Grid Delegate
Each Data Grid in your app has to have a delegate associated with it. The delegate implements the UIDataGridDelegate protocol and provides additional control over the appearance and functionality of the datagrid including detecting when a user touches a specific cell, selecting items in picker-type cells and also implementation of cell deletion and editing functions.
|
The Data Grid Data source
Each Data Grid in your app has to have a Data source associated with it to connect the grid to a store for quick and efficient data retrieval and updating. The dataSource property is NSMutableArray object. The dataSource property gets or sets the data source that the grid is displaying data for. Several types of data stores (JSON, plist, XML, and a mutable array object) can be used as a data source. However all of them must be converted to NSMutableArray Xcode data type.
|
The Data Grid purposes
On desktop software products people may display large searchable data grids, with a large number of columns that can be reordered, sorted, and filtered. This is a fairly common method on Windows and OS X (desktop operating systems). But on the iPad when we need to quickly brows large amounts of data, sort, and filter, we cannot seem to find a solution that meets the same criteria.
The UIDataGrid view component is trying to transfer the desktop experience to the mobile device. It helps you to better represent data in your app and figure out how you may use it for best user experience.
Also by using Rustemsoft UIDataGrid, instead of showing the whole grid of data Xcode developer may provide users a simple way of choosing the information which is important for them. It is possible by selecting a way to choose which columns are visible or not, or let them easy manage and switch different DataGridColumn types, or let people reorder columns with re-orderable pickers, etc.
It is also possible to modify the datagrid object settings to provide with different representations of the data which could be useful for its analysis.
|
|
|