HTTP GET array param to ASP.NET MVC with Kendo DataSource

By | .NET, ASP.NET, JavaScript, Kendo UI, MVC | No Comments

This post is inspired by a recent conversation with one of my colleagues here. He had the following requirements: ASP.NET MVC controller (not Web API) Kendo DataSource reading with HTTP GET Controller action accepts a list of values So, something like this:

This is an awkward little corner case. Change any one of the requirements and everything will work just fine. Fresh out of the box, Web API understands sending multiple values in the query string (at least, with the right controller action method signature). MVC controllers understand arrays if they’re posted in the body of the request,…

Read More

Liberate your files from SQL varbinary

By | Microsoft, Tools | No Comments

While there are other ways of storing data files for an application, using the SQL Server varbinary data type is a straightforward way to persist your files as BLOBs (binary large objects) along with the rest of your application data.  Reading and writing that data from your application is straightforward since you typically store the data as a byte array. But here is a challenge you may run across: what if you want an easy way to export that varbinary data as the original file?  Sure, you could write a simple utility application to read the content and save it as…

Read More

Kendo UI Grid Custom Columns: Data-Dependent Command Buttons

By | JavaScript, Kendo UI | No Comments

Here’s yet another custom column example for you Kendo UI Grid users.  Last time we looked at displaying an array property as a list of links, but this time we are taking a look at using data properties to conditionally enable certain command actions on a row.  This is different from using the built-in command columns, but it give us a high level of flexibility for enabling actions on a data row.   Once again, the magic happens through a very straightforward column template that uses  properties of the row data item to determine if the command buttons should be…

Read More

Unreasonable Expectations

By | Sitefinity | One Comment

It’s extremely common to hire a custom development company to help build your project. Over the last 7 years, Falafel has worked on and delivered over 380 projects based on the Telerik Sitefinity CMS alone. In that time, I’ve learned a few things that can be beneficial for both the clients and the company. While the vast majority of projects go perfectly well, not all do. Here are a few things you can do both as a customer, and as the consulting group, to save those projects before they take a wrong turn. Things you hear that should be a…

Read More

Learning Xamarin: Xamarin Forms & MVVM

By | MVVM, Xamarin | One Comment

Xamarin Forms bring data binding, and with it a terrific opportunity to add MVVM to Xamarin applications.  MVVM, however, may not be familiar to many iOS and Android developers, and I’ve therefore decided to republish and update my article MVVM: It’s Not Kool-Aid  from 2010.   This article is now part of my series on learning Xamarin. MVVM – It’s Not Kool-Aid* Okay, first, understand that I’m in the position of running through the streets yelling at folks “c’mere! ya’ gotta see this!” and what I’m pointing to is the incredible new invention of… the smart phone.  Something that is undeniably amazing…

Read More

Dealing with Legacy Codebases? Find me at ThatConference!

By | Uncategorized | No Comments

I’m honored to have been selected to speak at ThatConference Aug 11th-13th at the Kalahari Resort at Wisconsin Dells. I’m giving my talk OMG! This Codebase Sucks! which tries to lay out some ideas to help people fix up problematic codebases while continuing to deliver value via new features, bugfixes, etc. My goal for the talk is to help attendees learn how to decide which parts of the system and environment to focus on, and how to figure out which sections of the codebase to start tearing apart or outright burning down and rebuilding. All of this has to be…

Read More

Learning Xamarin: Deleting From SQLite

By | Xamarin | One Comment

In previous posts in this series, we’ve seen how to add items to the database using Sqlite.  In this post, we’ll add the ability to delete from the database.  As you may remember, we have Appliances (e.g., Dishwashers) and within Appliances we have Items (e.g., Maytag 100) and within Items we have Criteria (e.g., Quiet, Price, etc.).   Criteria are shared among all the Items within an Appliance type.  Sometimes we want to get rid of one or more of the criteria. We’re going to allow the user to delete a criterion (e.g., Price) just by tapping on it.  We first…

Read More

Kendo UI Grid Custom Columns: How to Show a List of Links

By | JavaScript, Kendo UI | One Comment

Of all the Kendo UI web components, the grid component is without a doubt the component that gets used the most in my latest projects. And on top of that, it is the component that gets the most requests for customization. Telerik’s example code is great and often takes us most of the way to our goal, but I thought I would share a few custom column examples that  have proven useful with the Kendo UI Grid. This first example uses data that has an array property, but we want to display that array data as a single column.  A…

Read More

Getting Rid of Buttons to Prevent Inadvertent Input

By | .NET, Blogs, C#, Fun, Microsoft, Mobile, Windows | No Comments

In my other life, I fence with swords. My wife and I also run fencing tournaments. We are known for running a tight ship and keeping things moving along. I hate starting events late, and I hate events running long. Even when you prearrange everything up front, your best plans can be blown apart with simple equipment failure. It’s good practice to have a simple timer for timing the fencing bouts. Several smart phone apps allow you to track all aspects of a fencing bout, like time, score, penalty cards, match count, and injury timer. All of this is represented…

Read More

Using Xamarin Forms DependencyService and Azure Mobile Services to Add Authentication to Cross-Platform Apps

By | Xamarin | No Comments

We previously looked how to create a Xamarin Forms App using Azure Mobile Services for storing and retrieving data. However, up until now, we have been saving the data globally so that it is accessible to all users. This post will explore how to add device-specific authentication to each app so that users can register and manage their own private data using any of the supported authentication providers.

Read More

Loading Indicators and Automatic ViewModel Refresh in Xamarin Forms

By | Xamarin | No Comments

This post continues the series on building a cross-platform app with Xamarin Forms. Although the focus is to demonstrate using Azure Mobile Services, there is a lot that we can do first to improve the user experience of the app. Today we will look at how easy it is to add a loading indicator as well as automatically refresh the app views when changes are made. ActivityIndicator Xamarin Forms includes a handy ActivityIndicator control which can be used to indicate that a long-running process is occurring. This is perfect for the Rebate Reminder app, since it has to fetch the…

Read More

Image Sprites made easy with Web Essentials

By | ASP.NET, Web | One Comment

In one of my previous posts, I showed you how to keep your Visual Studio Web Essentials settings in sync with the rest of your team. Today I’ll demonstrate one of the hidden gems in this great Visual Studio extension: creating image sprites. Image sprites will allow web browsers to load images dramatically faster and with Web Essentials, they can be created without much effort!

Read More

Creating Device-Specific Properties in Cross-Platform Apps with Xamarin Forms

By | Xamarin | No Comments

The previous post Cross-Platform Apps with Xamarin Forms and Azure Mobile Services demonstrated a simple Xamarin forms app to store and manage rebates. However, there were a few issues that impeded the user experience that should be polished up.

Specifically, there are some discrepancies between the different platforms, such as different font sizes as well as a missing Page title on the Windows Phone version.

Today we’ll look at how we can create and use page resources to create device-specific properties allowing us to update the Rebate Reminder app to create a more unified user experience.

Read More

Cross-Platform Apps with Xamarin Forms and Azure Mobile Services

By | Xamarin | No Comments

Inspired by Jesse Liberty’s fantastic blog series on learning Xamarin Forms, I decided to explore developing a fully cross-platform app of my own using Xamarin Forms. I thought it would be useful to explore how I can leverage Azure Mobile Services within the app to create a unified experience for a user regardless of which device they use, and allow their data to travel with them.

Read More