ASP.NET Grid Documentation - Client-Side API

Obout.Grid namespace
Obout.Grid.Grid class
<%@ Register TagPrefix="obout" Namespace="Obout.Grid" Assembly="obout_Grid_NET" %>

Client-Side Properties

Name Description
propertySelectedRecords Array. Array containing all the selected records from the Grid.

See also working example.
propertyPageSelectedRecords Array. Array containing all the selected records from the current page of the Grid.

See also working example.
propertyRows/Cells Array. A collection of objects containing all the data from the Grid's cells.

Usage: grid1.Rows[i].Cells[j].Value

See also working example.
propertyRecordInEditMode Int. The index of the record which is currently in edit mode.

Usage: alert(grid1.RecordInEditMode);
propertyGridMainContainer The client-side DIV object containing all the elements of the Grid.

Usage: grid1.GridMainContainer
propertyGridHeaderContainer The client-side DIV object containing the Header.

Usage: grid1.GridHeaderContainer
propertyGridBodyContainer The client-side DIV object containing the Body with records.

Usage: grid1.GridBodyContainer
propertyGridFooterContainer The client-side DIV object containing the Footer.

Usage: grid1.GridFooterContainer

Client-Side Methods - Populating With Data

Name Description
propertyrefresh Forces the Grid to refresh its records from the server.

See also working example.

Client-Side Methods - Record Selection

Name Description
propertyselectRecord Selects the record with the specified index.

See also working example.
propertydeselectRecord Deselects the record with the specified index.

See also working example.

Client-Side Methods - Columns

Name Description
propertyshowColumn Shows the column with the specified index/data field.

See also working example.
propertyhideColumn Hides the column with the specified index/data field.

See also working example.

Client-Side Methods - Add/Edit/Delete Records

Name Description
propertyexecuteInsert Inserts a new record into the database. This function can be called from outside the Grid, by passing the data as a parameter.

See also working example.
propertyexecuteUpdate Updates a record from the database. This function can be called from outside the Grid, by passing the data as a parameter.

See also working example.
propertyexecuteDelete Deletes a record from the database. This function can be called from outside the Grid, by passing the data as a parameter.

See also working example.
propertyedit_record Puts a record in edit mode.

See also working example.
propertyupdate_record Updates a record that is in edit mode.

See also working example.
propertycancel_edit Cancels the editing of a record..

See also working example.
propertydelete_record Deletes the specified record.

See also working example.
propertyaddRecord Creates the row for the new record.

See also working example.
propertyinsertRecord Inserts the new record into the database.

See also working example.
propertycancelNewRecord Cancels the adding of the new record.

See also working example.
propertysaveAll Saves all the changes (when the multi-record add/edit/delete feature is used)

See also working example.
propertycancelAll Cancel all the changes (when the multi-record add/edit/delete feature is used)

See also working example.
propertymodifyTemporaryRecord Modifies a temporary added/edited record (when the multi-record add/edit/delete feature is used)

See also working example.
propertyremoveTemporaryRecord Removes a temporary added record (when the multi-record add/edit/delete feature is used)

See also working example.
propertyundeleteTemporaryRecord Undeletes a temporary deleted record (when the multi-record add/edit/delete feature is used)

See also working example.

Client-Side Methods - Filtering Records

Name Description
propertyaddFilterCriteria Adds a filter criteria that will be used when the executeFilter method will be called.

Usage: grid1.addFilterCriteria(columnName, filterType, valueToFilter);
Example: grid1.addFilterCriteria('ShipCountry', OboutGridFilterCriteria.EqualTo, 'USA');

Possible values for the filterType:
OboutGridFilterCriteria.NoFilter
 OboutGridFilterCriteria.Contains
 OboutGridFilterCriteria.DoesNotContain
 OboutGridFilterCriteria.StartsWith
 OboutGridFilterCriteria.EndsWith
 OboutGridFilterCriteria.EqualTo
 OboutGridFilterCriteria.NotEqualTo
 OboutGridFilterCriteria.SmallerThan
 OboutGridFilterCriteria.GreaterThan
 OboutGridFilterCriteria.SmallerThanOrEqualTo
 OboutGridFilterCriteria.GreaterThanOrEqualTo
 OboutGridFilterCriteria.IsNull
 OboutGridFilterCriteria.IsNotNull
 OboutGridFilterCriteria.IsEmpty
 OboutGridFilterCriteria.IsNotEmpty


See also working example.
propertyexecuteFilter Applies the filter criterias added with the addFilterCriteria method.

Usage: grid1.executeFilter();

See also working example.
propertyshowFilter Opens the filter.

See also working example.
propertyfilter Applies the filter based on the selected filter criterias.

See also working example.
propertyhideFilter Hides/closes the filter.

See also working example.
propertyremoveFilter Removes the previously applied filter.

See also working example.

Client-Side Methods - Paging

Name Description
propertychangePage Changes the page of the Grid to the specified index.

See also working example.
propertygetCurrentPageIndex Returns the index of the current page.
propertygetPageSize Returns the value selected in the page size selection dropdown
(the number of records displayed on each page)
propertygetTotalNumberOfRecords Returns the total number of records.

Client-Side Methods - Exporting

Name Description
propertyexportToExcel Exports the data from the Grid to an Excel file.

Usage: grid1.exportToExcel("OboutGrid", false, true, false, false);

See also working example.
propertyexportToWord Exports the data from the Grid to a Word file.

Usage: grid1.exportToWord("OboutGrid", true, false, true, false);

See also working example.

Client-Side Methods - Records

Name Description
propertygetRecordsIds Returns a list with the ids of all the records from the Grid.

See also working example.

Client-Side Methods - Printing

Name Description
propertyprint Prints the grid.

Usage: grid1.print();

See also working example.

Client-Side Properties / Methods - Master / Detail

Name Description
propertyDetailGrids A collection with all the detail grids of a master grid.

Usage: grid1.DetailGrids[index]

See also working example.
propertyForeignKeys A collection with all the foreign keys of a detail grid.

Usage: grid1.ForeignKeys.SomeColumnName.Value

See also working example.
propertygetDetailGrid Retrieves a detail grid object, based on the value of the foreign key passed as the parameter.

Usage: grid1.getDetailGrid({ForeignKey1: Value1, ForeignKey2: Value2, ...});

See also working example.

"I would like to thank the whole obout team for a great tool. Recently I have downloaded your tool and I believe that your controls are tremendous to work with. The usefulness and appearance is excellent."

Faruk Sikder
Spectrum Engineering Consortium Ltd.

obout.com
obout.com Home
News
Grid Home 
Grid Home
Download
Site Map
Examples - 234
Appearance - 2
Live Styles
Populating with data - 11
Binding to DataSet
Binding to DataReader
Binding to DataTable
Binding to ObjectDataSource
Binding to SqlDataSource
Binding to XmlDataSource
Binding to Linq
Binding to LinqDataSource
Binding to Generic Collections
Maximum Performance
Partial Load
Add/Edit/Delete - 16
Add/Edit/Delete Records
Type Validation
Edit on Double-Click
Add/Edit Default Values
Auto-Save & Dbl-Click
Edit using Context Menu
Multi-Record
Using Custom Forms
Sliding Row Editor New
Automatic Updates
Using Flyout
Add to empty table
Edit all Cells
Declarative (no coding)
Excel-Style Editing
Using ObjectDataSource
Select Records - 12
Select Records
Keep Selected Records
Find Selected on Client-Side
Find Selected on Server-Side
Select/Deselect Record
Set the SelectedRecords
Using Checkboxes
Select All using Checkboxes New
AutoPostBackOnSelect
Using Radio-Buttons
With Checkmark
Select All Records
Columns - 18
Resizing Columns
Align / HeaderAlign
AllowEdit / AllowDelete
DataFormatString
ApplyFormatInEditMode
Index
NullDisplayText
ParseHTML
ReadOnly
Show/Hide Columns
Visible
Width
Wrap
AutoGenerateColumns
Relative Widths
Resize the Grid Width
Different Styles
Column sets
Paging- 6
Paging
Customize Paging
Change Page on Client
The Numbers of Pages
Manual Paging
Show ALL records
Sorting - 3
Sorting
Multi-Column Sorting
Sorting Week Days New
Filtering - 19
Filtering Records
Enable/Disable Filter
Show/Hide Criterias
Autosuggest Filtering
Customize Filtering Options
Programmatic Filter - Client-Side
Alphabetic Filter
Keeping Filter State
Initial State New
Filter Position New
Initial Filter New
Custom Filter Options New
Between, By Year, By Month New
Filtering Localized Dates New
ALL vs. ANY New
Validate Filters New
Filtering Millions of Records New
Master/Detail with External Filters New
External Filter ButtonsNew
Templates - 28
Templates for Add/Edit
Templates for the Filter
Format Dates
Format Currencies
Grid With Images
Add/Edit/Delete Buttons
Filter Buttons
Combine Columns
Wrap the Headers
Custom Formatting
Manual Paging
Number the records
GroupHeaderTemplateId
Multi-Record Add/Edit/Del
Different Input Fields for Add/Edit New
Different Row Fields for Add/Edit
Templates for Edit-Delete
Reports and Row Templates
Access checkboxes inside
Access radio buttons inside
With Multiselect Listbox
With Databound Controls
DropDownList with 'New'
View / Edit Details
Customize for Mobile Devices
Get values from textboxes New
Detail View New
Scrolling - 11
Vertical
Horizontal
Vertical & Horizontal
Automatic Scroll
Horizontal & Filter
Using Percentages New
Full Window Width / Height New
Automatic Resize with Splitter New
Fixed (Frozen) Columns
Fixed Height New
Fixed Height in Percentages New
Grouping - 11
Grouping the Records
Allow Grouping for Columns
Initial Grouping
Groups Information
Multi-Page Groups Information
Collapsed Groups
Expand/Collapse Groups
Hide Columns
Keep Expanded
Format the Group Headers
Customize the Group Headers
Totals / Sub-Totals - 5
Totals
Groups Sub-Totals
Aggregates
Totals of Selected Records
Summary Row New
Master / Detail - 21
Load At Once (OnLoad)
Load On Demand (OnCallback)
Load On PostBack New
Detail Grid State
Multiple Details on the Same Level
Self-Reference Display
Unlimited Number of Levels
Show Empty Details
Full Set of Features
Expand/Collapse All
Multiple Foreign Keys
Templates for Action Buttons
Client-Side Manipulation
Get Selected Records
Expand/Collapse on Select
Different Styles
Select on Expand / Collapse
Expand a single detail grid
Expand on client side
Detail Grid inside Row Template New
Separated Master/Detail Grids
Exporting - 12
Export to Excel / Word New
Export on Server Side New
Export Master/Detail Grids New
Export Groups New
Export Totals / Subtotals New
Export Templates New
Export Title / Footer New
Customize Exported files
Customize Individual Rows New
Exported files Life Time
OnClientExportStart/Finish
ExportedFilesTargetWindow
Accessibility - 2
Key Navigation
Customize the Keys
Localization - 2
Localization
Custom Localization
Client-Side Events - 2
Add / Edit / Delete
Expose the Sender
Server-Side Events - 3
RowCreated/RowDataBound
ColumnsCreated
Row Title
Printing - 2
Printing the Grid
Printing All Pages
Integration - 23
E-Mail Client
File Browser
D-n-D to Tree
D-n-D to Grid
Customers
With Easy Menu
With DatePicker
With File Upload Progress
With Flyout
AJAX Autosuggest
Linked with TreeView
Using ASP.NET ValidatorsNew
With Window
Purchase Order
Task List
Using Tooltips
With Multilevel Combobox
With Tab Strip
With HTML Editor
Inside Window
Context menu and CheckBoxes
With Color Picker
With File Upload Progress
ASP.NET AJAX - 7
Live Quotes
With AJAX MaskedEditExtender
With AJAX AlwaysVisible
Millions of Records New
Populate Edit Fields New
View Row Details New
Cascading ComboBoxes New
Other Features - 13
ShowLoadingMessage
Hover Effects
Millions of Records
Multiple Grids
Refresh the Records
Generate IDs
Client-Side Model
Get Values on Server-Side
Clear the records
Re-order the rows
Handling errors
Find and Replace
Using ASP.NET Themes/Skins New
Mode - 2
Callback Mode
Postback Mode
Appearance Customization- 2
Knowledge Base - 1
Knowledge Base
Documentation - 25
Server-Side
Column
ColumnCollection
ColumnTemplateSettings
DetailGridLoadingMode
DetailGridState
FilterOption
FilterOptionsCollection
FilterOptionType
Grid
GridClientSideEvents
GridCssSettings
GridExportingSettings
GridGroupInformation
GridLocalizationSettings
GridMasterDetailSettings
GridRecordEventArgs
GridRuntimeTemplate
GridRuntimeTemplateEventArgs
GridScrollingSettings
GridTemplate
GridTemplateSettings
SortOrderType
TemplateContainer
TemplatesCollection
Client-Side
Client-Side API
ChangeLog
Tutorials - 18
Add/Edit/Delete
Updating the Database
Updating using Linq
Appearance
Styles
Styles - Advanced
CSS Tutorial
Client-Side API
Client-Side Events
Columns
Columns
Configuration
Using the correct path
Design-Time Support
All Tutorials
Choosing Data Source
Changing Appearance
Populating with Data
Data-Binding
Serialize
Maximum Performance
Selecting Records
Access Selected Records
Templates
Templates
Runtime Templates
Templates for Buttons
Miscellaneous Tutorials - 24
Getting the Generated ID
Multi columns validation
Loading the details with AJAX Page
Selecting the inserted/updated record
Server-side validation using Ajax
Edit on Click
Hide "no-records" message
Using radios inside edit template
Keep Current Page
Keep Current Paging/Sorting
External buttons
Sending parameters
Disable combobox in Edit mode
Bind data after specified the filter
Get Column Index in template
Client-Side Events & Window
Custom readonly column
Validate unknown columns
Auto-scroll during postback
Delete button
Inline validation
Move records between grids