Unbound search data screen(AutoCompleteBox) in Visual Studio LightSwitch


Introduction

As you know, Visual Studio LightSwitch is a Microsoft tool which is used to build business applicationa. There are many data screens in LightSwitch like a data screen, search data screens, editable grid screen, etc. If you want to make use of a search data screen as a combo box in the LightSwitch application then you can. Combo box is also known as an auto complete box in LightSwitch.

Step by step solution 

Step 1 : Open Visual Studio LightSwitch->Create new table.

1st.gif

Step 2 : Create a students table like below.

image1.gif

Step 3 : Right click on screen->Add screen.

image2.gif

Step 4 : Select search data screen->Write screen name (studentsearch)->Choose screen data (student)->Ok.

image4.gif

Step 5 : Add a new group.

image5.gif

Step 6 : Add a modal window.

image6.gif

Step 7 : Add data item->Select local property->Type(student entity)->OK.

image14.gif

Step 8 : Move up modal window->Add property1.

image7.gif

Step 9 : Move property1 from student search screen to modal window.

image8.gif

Step 10 : Click property1->Select Rows layout.

image9.gif

Step 11 : Run application (Press F5)->Click group button->Select property1(like as saini).

image10.gif

image12.gif

Summary

So search data screen is very important data screen in LightSwitch. You can use search data screen as a combo box in LightSwitch.

Up Next
    Ebook Download
    View all
    Learn
    View all