The author of the book.
The title of the grid.
The dataservice of the grid.
Html content which will be displayed if there is no record.
Item data bound event.
Cell selection event.
Grid population event.
Grid population event.
Grid population event.
Grid before print event.
Grid row population event.
Item added event.
Item update event.
Items delete event.
Row selection event.
Activates the grid.
Adds an aggregate field
Adds a column
Adds a data relation
Not implemented yet.
Adds a header cell
Adds key field.
Aggregates result based on given field name
Allows drop column
Apply filters
Changes theme
Clear filters on given field name
METHODS
De-activates the grid.
Deletes selected rows.
Displays error message
Drags column via setting its field name
Drops the column
Drops group by column
Not implemented yet.
Edits new row.
Not implemented yet.
Not implemented yet.
Not implemented yet.
Edits selected row.
Ensures grid is in the global grid array.
Ensures edit/new item form dialog exists in the body.
Filters result based on given field name with single value
Filters result based on given field name with multiple value
Focuses to the first item
Generates action pane
Generates filter pane
Generates group by pane
Generates navigation pane
Gets active row identifier
Gets grid column by field name
Get the value of the given rowindex and fieldname.
Gets row identifiers
Gets selected cell identifier
Gets row identifiers
Gets selected data items
Gets selected row identifier
Gets selected row identifiers
Navigates to the next page
Navigates to the previous page
Groups result based on given field name
Hides cell poup content
Hides header row menu
Hides header row menu icon
Hides edit/new item form dialog.
Hides/show filter pane
Initializes the grid
Populates the detail grid
Populate edit controls for edit/new item form.
Populates the grid data
Populates header cells
Saves currently edited item.
Selects the cell
Selects the detail grid tab
Selects the row
Selects the row
Shows cell poup content
Shows header row menu
Shows header row menu icon
Sorts result based on given group by field name
Sorts result based on given field name
Generated using TypeDoc
Represents a webgrid.
// Creates the grid object let bookDataSourceBuilder = new soby_WSBuilder(); bookDataSourceBuilder.Filters = new SobyFilters(false); bookDataSourceBuilder.AddSchemaField("Id", SobyFieldTypes.Number, null); bookDataSourceBuilder.AddSchemaField("Title", SobyFieldTypes.Text, null); bookDataSourceBuilder.AddSchemaField("Year", SobyFieldTypes.Number, null); bookDataSourceBuilder.AddSchemaField("Price", SobyFieldTypes.Number, null); bookDataSourceBuilder.AddSchemaField("Genre", SobyFieldTypes.Text, null); bookDataSourceBuilder.AddSchemaField("AuthorId", SobyFieldTypes.Lookup, { ModelName: "Author", ValueFieldType: SobyFieldTypes.Number, ValueFieldName: "Id", TitleFieldName: "Name", ReadTransport: new soby_TransportRequest(soby_GetTutorialWebAPIUrl() + "/Authors", "json", "application/json; charset=utf-8", "GET")}); let bookService = new soby_WebServiceService(bookDataSourceBuilder); bookService.Transport.Read = new soby_TransportRequest(soby_GetTutorialWebAPIUrl() + "/Books", "json", "application/json; charset=utf-8", "GET"); bookService.Transport.Add = new soby_TransportRequest(soby_GetTutorialWebAPIUrl() + "/Books", "json", "application/json; charset=utf-8", "POST"); bookService.Transport.Update = new soby_TransportRequest(soby_GetTutorialWebAPIUrl() + "/Books(#key)", "json", "application/json; charset=utf-8", "PUT"); bookService.Transport.Delete = new soby_TransportRequest(soby_GetTutorialWebAPIUrl() + "/Books(#key)", "json", "application/json; charset=utf-8", "DELETE");
let bookGrid = new soby_WebGrid("#soby_BooksDiv", "Books", bookService, "There is no record found."); bookGrid.AddKeyField("Id"); bookGrid.AddColumn("Title", "Title", SobyShowFieldsOn.All, null, null, true, true, true, null); bookGrid.AddColumn("Year", "Year", SobyShowFieldsOn.All, null, null, true, true, true, null); bookGrid.AddColumn("Price", "Price", SobyShowFieldsOn.All, null, null, true, true, true, null); bookGrid.AddColumn("Genre", "Genre", SobyShowFieldsOn.All, null, null, true, true, true, null); bookGrid.AddColumn("AuthorId", "Author", SobyShowFieldsOn.All, function (item) { return item.Author.Name; }, null, true, true, true, null);
bookGrid.Initialize(true);