LightSwitch HTML Client API Reference Released

You asked for it, and here it is. I’m proud to announce the availability of the HTML Client API Reference in the MSDN Library. The single page article provides reference documentation for every member of the JavaScript API for LightSwitch HTML clients. While many of the members include example code, many do not – and… Read more

Interacting with Content Items on the Screen with the LightSwitch API (Kevin Mehlhaff)

A LightSwitch application at its core is built by adding data to screens and creating a tree of content items to display and interact with this data. LightSwitch provides a JavaScript API over these content items so that you can interact with them programmatically. What is a Content Item? If you open a screen designer… Read more

Promises in LightSwitch (Justin Anderson)

In previous posts, we’ve mentioned that the HTML client runtime uses promises to perform asynchronous execution. In this post, we’ll briefly explain what a promise is and show you where promises are provided in your LightSwitch application to allow you to asynchronously react to state changes in the application. What Is A Promise? A promise… Read more

Introduction to jQuery for App Customization (Kevin Mehlhaff)

JQuery is a popular JavaScript library that is used by many websites. LightSwitch employs jQuery to make it easy for developers to customize their applications. JQuery enables you to easily select, manipulate, and traverse HTML elements in the document object model, or DOM. You can think of the DOM as being a tree of elements,… Read more

Customizing the Table Control: Sortable by Column (Kevin Mehlhaff)

The Table control is a new way to display a collection of data in the LightSwitch HTML Client as of Visual Studio 2013. Like all controls in the LightSwitch HTML client, you can take over the rendering and write your own custom code. Today we will be leveraging the power of the LightSwitch middle tier… Read more

New Navigation Features in LightSwitch HTML Client (Chris Rummel, Rohit Agrawal)

Today we’ll be exploring two new features added to LightSwitch HTML Client – global navigation and default details screens. With global navigation you can navigate to any Browse screen from any other screen throughout the LightSwitch application. Default detail screens let you jump directly to the details page of a given entity. We added these… Read more

Speed up LightSwitch Development with “Edit & Refresh” (Sudhanshu Kulkarni)

In this post I’d like to discuss a feature of LightSwitch that helps speed up your development of HTML client applications. We first released this feature in Visual Studio 2012 Update 2 with the LightSwitch HTML Client and it is also available in Visual Studio 2013 Preview. Beth Massi briefly touched on some aspects of… Read more

Extending Screens for Multi-Select in the LightSwitch HTML Client (Mike Droney)

If you (like me) have always wanted to have a rich multi-select experience in LightSwitch HTML Client Lists, this article may be of interest to you. This sample will show a nice pattern for adding unbound screen content items to be manipulated by the user in a List Control for a multi-select operation. Let’s take… Read more

OData Apps in Update 2 – Querying Data from Stack Overflow

Matt Sampson’s got a blog about making a LightSwitch HTML App that queries data from the one and only Stack Overflow by attaching to their very cool public OData Service. (Now you can use a LightSwitch app to keep track of all the LightSwitch related posts on Stack Overflow!) You can check out the blog post here – OData… Read more

Creating a wizard-like experience for HTML client (Andy Kung)

If you have been playing with the new HTML client, you will know that LightSwitch provides a built-in screen template for creating data. It allows user to input data via a modal dialog. In some scenarios, however, we’d much prefer to guide the user via a step-by-step wizard-like dialog. In this article, I will show… Read more