With this post I would like to show you how you can customize easily paging behavior in Microsoft Visual Studio 2012 LightSwitch using Telerik RadDataPager for Silverlight.

1) Create new LightSwitch project, connect to desired data source and add new screen:

LS1

LS2

LS3

2) Add new Silverlight Class Library to the same solution where you can implement your own custom logic:

LS4

LS5

3) Add references to Telerik and LightSwitch binaries and declare RadGridView and RadDataPager:

LS6

LS7

4) Add your custom control in the LightSwitch screen:

LS8

LS9

5) Implement your custom logic, in this case custom, server-side paging, and run the application to check the result:

LS13

LS11

LS12

Enjoy!

Download


About the Author

Vladimir Enchev

is Director of Engineering, Native Mobile UI & Frameworks

Comments