iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
In addition to built-in client services, you can also programmatically create your own datasource entirely in the client-side, then bind it to the WebCombo via client API. This mode is called ClientDataSource.
This topic shows how to bind WebCombo to client-side Data Source.
var combo = ISGetObject("wcClient"); var dataTable = new ISDataTable(); var idColumn = new ISDataColumn(dataTable); var textColumn = new ISDataColumn(dataTable); var checkColumn = new ISDataColumn(dataTable); var descColumn = new ISDataColumn(dataTable);
/* setup data columns */ DataTable.Name = dataTable.TableName = "Root"; idColumn.Name = idColumn.ColumnName = "ID"; textColumn.Name = textColumn.ColumnName = "Text"; checkColumn.Name = checkColumn.ColumnName = "Bool"; descColumn.Name = descColumn.ColumnName = "Desc";
/* add columns to data table */ dataTable.Columns.Add(idColumn); dataTable.Columns.Add(textColumn); dataTable.Columns.Add(checkColumn); dataTable.Columns.Add(descColumn);
/* add rows to data table */ for (var i = 0; i < 100; i++) { var dataRow = dataTable.NewRow(); dataRow.Cells.GetNamedItem("ID").Value = i; dataRow.Cells.GetNamedItem("Text").Value = "Item " + i; dataRow.Cells.GetNamedItem("Bool").Value = (i % 3 != 0); DataRow.Cells.GetNamedItem("Desc").Value = "Description " + i; dataTable.Rows.Add(dataRow); }
/* bind the data table to WebCombo */ combo.SetDataSource(dataTable); combo.DataBind(); combo.Render(); combo.ShowDropDown(); event.cancelBubble = true; event.returnValue = false;
function CreateData() { var combo = ISGetObject("wcClient"); var dataTable = new ISDataTable(); var idColumn = new ISDataColumn(dataTable); var textColumn = new ISDataColumn(dataTable); var checkColumn = new ISDataColumn(dataTable); var descColumn = new ISDataColumn(dataTable); /* setup data columns */ DataTable.Name = dataTable.TableName = "Root"; idColumn.Name = idColumn.ColumnName = "ID"; textColumn.Name = textColumn.ColumnName = "Text"; checkColumn.Name = checkColumn.ColumnName = "Bool"; descColumn.Name = descColumn.ColumnName = "Desc"; /* add columns to data table */ dataTable.Columns.Add(idColumn); dataTable.Columns.Add(textColumn); dataTable.Columns.Add(checkColumn); dataTable.Columns.Add(descColumn); /* add rows to data table */ for (var i = 0; i < 100; i++) { var dataRow = dataTable.NewRow(); dataRow.Cells.GetNamedItem("ID").Value = i; dataRow.Cells.GetNamedItem("Text").Value = "Item " + i; dataRow.Cells.GetNamedItem("Bool").Value = (i % 3 != 0); DataRow.Cells.GetNamedItem("Desc").Value = "Description " + i; dataTable.Rows.Add(dataRow); } /* bind the data table to WebCombo */ combo.SetDataSource(dataTable); combo.DataBind(); combo.Render(); combo.ShowDropDown(); event.cancelBubble = true; event.returnValue = false; }
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname