Intersoft WebCombo Documentation
Walkthrough: Configuring Linked WebCombo
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Features Added in WebCombo 4 > LINQ to SQL Support > Walkthrough: Configuring Linked WebCombo

Glossary Item Box

This walkthrough will guide you to link two WebCombo instances.

During this walkthrough, you will learn how to do the following:

 Prerequisites

In order to complete this walkthrough, you will need the following:

  • Visual Studio 2008/2010 Application.
  • Microsoft.NET Framework 3.5.

 Step-By-Step Instructions

To create new web application and apply linked WebCombo feature

  1. Create a new WebForm page to your Website project.
  2. Add two instances of WebCombo to the page.
  3. Add two instances of LinqDataSource to the page.
  4. Bind the first LinqDataSource to Customers table, and the second one to Orders table. Place the WebCombo in a table such as shown below.



  5. Select the first WebCombo, set its DataSourceID to LinqDataSource1, DataTextField to ContactName and DataValueField to CustomerID.
  6. Select the second WebCombo, set its DataSourceID to LinqDataSource2, DataTextField and DataValueField to OrderID.
  7. Configure LinkSettings for Orders WebCombo by launching WebCombo Designer. Follow the configuration as shown in the following.



  8. Save the page, and run it to browser.
  9. Your browser should look like the following screenshot.




    Try to interact with the WebCombo, such as selecting a customer. Next, when you open the Orders' WebCombo dropdown, you will see the order list of the selected customers.

    New enhancement: When bound to LinqDataSource, WebCombo can now perform wildcard search on non-string type. For instance as in above sample, the OrderID is of integer type. If you typed in "10" then it will show the records starting with "10". This feature is not possible before LinqDataSource, as non-string type can't be queried using like or contains predicate in ADO.NET objects.

See Also