Book Image

Learning Kendo UI Web Development

By : John Adams
Book Image

Learning Kendo UI Web Development

By: John Adams

Overview of this book

<p>Creating useful and attractive web sites for today’s audiences requires more JavaScript programming than ever before. JavaScript, however, isn’t easy and staying up to date with recent trends makes it even harder. You need a way to integrate the latest technology into your web site without having to start from the beginning.</p> <p>"Learning Kendo UI Web Development" shows you how to add the latest web features to your site without doing all of the work yourself. The experts at Telerik have created a fully supported code library that lets you focus on what makes your sites special while letting them focus on how that translates into cutting edge JavaScript code.</p> <p>This book will take you on a survey through Kendo UI for the web from the basic widgets that wrap input fields to the full page scaffolding widgets for setting up your site.</p> <p>Kendo UI for the web is a rich framework of JavaScript widgets and tools that will add immediate value to your web sites. Learn the full spectrum of what Kendo UI has to offer in specialized widgets that gather input from users by displaying calendars, sliders, or date pickers all the way up to widgets that structure your web pages through data-driven models in accordions, tabs, list views, and tree views.</p> <p>"Learning Kendo UI Web Development" is the perfect companion for navigating the broad features offered by Telerik in JavaScript web development.</p>
Table of Contents (18 chapters)
Learning Kendo UI Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
9
Implementing the Splitter and TreeView Widgets
Index

Sending data to the server


We want to be able to filter the data for the AutoComplete widget on the server side. We can either use the data property within the transport JavaScript object, or we can continue with our MVC example and specify the data to send inside the DataSource lambda expression. Let's say, for example, that we want to be able to choose what type of states and territories show up in the AutoComplete widget. We can accomplish this by sending some data along with the request, then having the server revise the data that it sends back. Replace the contents of AutoCompletePage.cshtml with this updated code.

<h2>AutoCompletePage</h2>
<label for="stateType">Choose whether to see States:</label>
<select id="stateType" name="stateType">
<option value="true">Show States</option>
<option value="false">Show Only Territories</option>
</select>
<br />
@(Html.Kendo().AutoComplete()
    .Name("statesAndTerritories")
    ...