KendoUI and MVC

For a work related project, I’ve had to learn to use a tool by Telerik called KendoUI. KendoUI is a framework for building widgets (very simply put). For a .NET MVC app I am building, I ran into an issue where I needed to modify the datasource on the server side. I didn’t really find any documentation online on doing this server side but thanks to Intellisense, I was able to discover the presence of an enumerator on the DataSourceResult. A few Google results later, I was able to iterate through the enumerator from the DataSourceResult and directly modify items that the Kendo Grid would display on my View.

If you must know, it was code for displaying a changelog for the item being viewed; I needed to display a user-friendly version of items like the field name and values where I was storing the ‘raw’ values in my logging table such as the item ids and the database field names.

The sourcecode is up as a gist because the WordPress.com code formatting thing sucks. 😦

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s