Quick Links
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
SelectedRecords
Array
. Array containing all the selected records from the Grid.
See also
working example
.
PageSelectedRecords
Array
. Array containing all the selected records from the current page of the Grid.
See also
working example
.
Rows/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
.
RecordInEditMode
Int
. The index of the record which is currently in edit mode.
Usage:
alert(grid1.RecordInEditMode);
GridMainContainer
The client-side DIV object containing all the elements of the Grid.
Usage:
grid1.GridMainContainer
GridHeaderContainer
The client-side DIV object containing the Header.
Usage:
grid1.GridHeaderContainer
GridBodyContainer
The client-side DIV object containing the Body with records.
Usage:
grid1.GridBodyContainer
GridFooterContainer
The client-side DIV object containing the Footer.
Usage:
grid1.GridFooterContainer
Client-Side Methods - Populating With Data
Name
Description
refresh
Forces the Grid to refresh its records from the server.
See also
working example
.
Client-Side Methods - Record Selection
Name
Description
selectRecord
Selects the record with the specified index.
See also
working example
.
deselectRecord
Deselects the record with the specified index.
See also
working example
.
Client-Side Methods - Columns
Name
Description
showColumn
Shows the column with the specified index/data field.
See also
working example
.
hideColumn
Hides the column with the specified index/data field.
See also
working example
.
Client-Side Methods - Add/Edit/Delete Records
Name
Description
executeInsert
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
.
executeUpdate
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
.
executeDelete
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
.
edit_record
Puts a record in edit mode.
See also
working example
.
update_record
Updates a record that is in edit mode.
See also
working example
.
cancel_edit
Cancels the editing of a record..
See also
working example
.
delete_record
Deletes the specified record.
See also
working example
.
addRecord
Creates the row for the new record.
See also
working example
.
insertRecord
Inserts the new record into the database.
See also
working example
.
cancelNewRecord
Cancels the adding of the new record.
See also
working example
.
saveAll
Saves all the changes (when the multi-record add/edit/delete feature is used)
See also
working example
.
cancelAll
Cancel all the changes (when the multi-record add/edit/delete feature is used)
See also
working example
.
modifyTemporaryRecord
Modifies a temporary added/edited record (when the multi-record add/edit/delete feature is used)
See also
working example
.
removeTemporaryRecord
Removes a temporary added record (when the multi-record add/edit/delete feature is used)
See also
working example
.
undeleteTemporaryRecord
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
addFilterCriteria
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
.
executeFilter
Applies the filter criterias added with the
addFilterCriteria
method.
Usage:
grid1.executeFilter();
See also
working example
.
showFilter
Opens the filter.
See also
working example
.
filter
Applies the filter based on the selected filter criterias.
See also
working example
.
hideFilter
Hides/closes the filter.
See also
working example
.
removeFilter
Removes the previously applied filter.
See also
working example
.
Client-Side Methods - Paging
Name
Description
changePage
Changes the page of the Grid to the specified index.
See also
working example
.
getCurrentPageIndex
Returns the index of the current page.
getPageSize
Returns the value selected in the page size selection dropdown
(the number of records displayed on each page)
getTotalNumberOfRecords
Returns the total number of records.
Client-Side Methods - Exporting
Name
Description
exportToExcel
Exports the data from the Grid to an Excel file.
Usage:
grid1.exportToExcel("OboutGrid", false, true, false, false);
See also
working example
.
exportToWord
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
getRecordsIds
Returns a list with the ids of all the records from the Grid.
See also
working example
.
Client-Side Methods - Printing
Name
Description
print
Prints the grid.
Usage:
grid1.print();
See also
working example
.
Client-Side Properties / Methods - Master / Detail
Name
Description
DetailGrids
A collection with all the detail grids of a master grid.
Usage:
grid1.DetailGrids[index]
See also
working example
.
ForeignKeys
A collection with all the foreign keys of a detail grid.
Usage:
grid1.ForeignKeys.SomeColumnName.Value
See also
working example
.
getDetailGrid
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
Style Gallery
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
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
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
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
Filter Position
Initial Filter
Custom Filter Options
Between, By Year, By Month
Filtering Localized Dates
ALL vs. ANY
Validate Filters
Filtering Millions of Records
Master/Detail with External Filters
External Filter Buttons
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
Hyperlinks in the Grid
Wrap the Headers
Custom Formatting
Manual Paging
Number the records
GroupHeaderTemplateId
Multi-Record Add/Edit/Del
Different Input Fields for Add/Edit
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
Detail View
Scrolling
- 11
Vertical
Horizontal
Vertical & Horizontal
Automatic Scroll
Horizontal & Filter
Using Percentages
Full Window Width / Height
Automatic Resize with Splitter
Fixed (Frozen) Columns
Fixed Height
Fixed Height in Percentages
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
Master / Detail
- 21
Load At Once (OnLoad)
Load On Demand (OnCallback)
Load On PostBack
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
Separated Master/Detail Grids
Exporting
- 12
Export to Excel / Word
Export on Server Side
Export Master/Detail Grids
Export Groups
Export Totals / Subtotals
Export Templates
Export Title / Footer
Customize Exported files
Customize Individual Rows
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 Validators
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
Populate Edit Fields
View Row Details
Cascading ComboBoxes
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
Mode
- 2
Callback Mode
Postback Mode
Appearance Customization
- 2
Show/Hide Header/Footer
Align Elements in Footer
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
Products
AJAX Page
Calendar
Color Picker
Date Picker
File Upload Progress
Flyout
Grid
HTML Editor
Image Zoom
Listbox
Multilevel Listbox
Scheduler
Show
Spell Checker
Splitter
Tab Strip
TreeView
Tree_DB
Window
Menu
Context Menu
Easy Menu
Slide Menu
Text Menu
Combobox
Combobox
AJAX Autosuggest
Multilevel Combobox
State Selector
Interface Controls
Button
Checkbox
Dropdown List
Multiline Textbox
Radio Button
Textbox
ASP.NET MVC
Interface Controls
Download
Download page
Install FAQ
Tech Support
Our clients
Testimonials
Support
Support
Purchase
Purchase page
Contact Sales
License info
Sales FAQ
Customer login
Print Invoice
Installation
Company
Legal
Clients
Testimonials
Contact