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
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi, I need to populate a webcombo using data source plus several manual entries. I cannot make both of them work: either manual entries are displayed or database entries, but not both.
How to display both types of data?
1. This is my code for using data source:
Private Sub wcboReportTechnique_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebCombo.DataSourceEventArgs) Handles wcboReportTechnique.InitializeDataSource Dim connStr As String = Application("ConnectionStringR").ToString() Dim cbo As New ComboBoxes e.DataSource = cbo.Technique(connStr) wcboReportTechnique.DataTextField = "Description" wcboReportTechnique.DataValueField = "TechniqueID" End Sub
2. This is a code for manual entries:
Dim wc As WebCombo = wcboReportTechnique Dim column As New WebComboColumn Dim row As New WebComboRow Dim cell As New WebComboCell cell.Text = "Any for Technique" cell.Value = "-1" wc.Columns.Add(column) wc.Rows.Add(row) row.Cells.Add(cell)
Thanks, Ellen
Hi Ellen,
I am sorry for the late response. Our internet connection was broken since past several days.
Your second codes, seems more suitable with Unbound WebComboColumn. If you want to add unbound WebCombo column into bound WebCombo, you will need to do it at onIntializeLayout event. Then, assign text and value at each cell should be done at onIntializeRow event.
Please look into my attached sample for further details. Hope this helps.
Regards,Handy
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