Monthly Archives

October 2014

Testing Office 365 Store Apps with TestComplete

By | Office365, TestComplete | One Comment

Office 365 store applications are HTML5 and Javascript applications running in your Excel, Word, PowerPoint, etc… TestComplete can easily help you test your store app. By using the Object Spy or the Object Browser in TestComplete 10.4, you are able to read the DOM of the Internet Explorer Server instance page embedded in the applications and from there TestComplete gives you full power over using Keyword Testing or Scripting to automate your tests against the Office 365 Store Application. Happy Testing!

Read More

Falafel to Showcase TouchDevelop Educational Course at MVP Summit

By | Microsoft, Mobile | One Comment

We are very proud of our book, TouchDevelop Nuts and Bolts. This easy to read book is a 12 part step-by-step guide geared toward middle and high school students looking to venture into the world of computer programing to develop their own mobile game or social media app using new TouchDevelop tool from Microsoft Research. We are really excited to share the success we’ve seen thus far with the TouchDevelop Nuts and Bolts courseware at the upcoming Microsoft MVP Global Summit.  Our own CEO and Microsoft MVP, Lino Tadros, will be sharing how any MVP can use the TouchDevelop Nuts…

Read More

Unity Accelerometer Device Attitude Alignment

By | .NET, Blogs, C#, Fun, Microsoft, Multi-Device, Unity | 5 Comments

In my last post I explored how easy it was to display the device camera onto a Unity 3D surface. This time I’m exploring how easy it is to access the device accelerometer sensors and use the data to align 3D objects in Unity to correct for the attitude of the device to give that floating compass look. Although for this post, I’m only interested in the accelerometers. The magnetometers will come later. I started with my camera project from the last post and added a series of cubes into a parent GameObject to plainly show the orientation and a…

Read More

Check for duplicate items in Kendo UI ListView before adding the item from Kendo UI AutoComplete

By | Kendo UI | One Comment

In one of the projects I’m working on, I had a requirement to do the following tasks: Show a list of items in Kendo UI AutoComplete. It will fetch JSON data from the ASP.NET MVC Action. Add selected item(s) from Kendo UI AutoComplete to the Kendo UI ListView, while checking if the item already existed in the list. If it does not exist, add the item calling ASP.NET MVC Action or else take no action. Refresh the data source of Kendo UI ListView locally. In this post I will show you how to complete the above tasks. First, let us…

Read More

Start-up code using WebActivator in MVC application

By | MVC | One Comment

WebActivator allows us to execute a code long before application start-up. There may be requirements when you need to load external assemblies or instantiate a particular object before the application start up. You need to make sure some codes execute before the codes inside the App_Start folder and the global.asax file. To do this WebActivator should be used. You can add the WebActivator package using NuGet. Let us consider an example in an MVC application in which we want to call a method of a class before  the execution of the application. To do this follow the steps below: Attribute…

Read More

Check User exists in a Role in ASP.NET Identity 2.0

By | MVC | 8 Comments

ASP.NET MVC5 uses Identity 2.0 to manage the users and their roles. There may be scenario to check whether the currently logged in user or any user with the id exists in the given role or not, and checking can be done either in the controller class or in any other class of the application. Check for the currently logged in user In a controller you can find whether the currently logged in user exist in a role or not by using User property of the controller class. Type of the User property is IPrincipal and it has a Boolean…

Read More

Falafel Releases New EventBoard Conference Builder for Microsoft Office 365

By | News, Office365 | No Comments

The Falafel Team is really excited to announce the release of the EventBoard Conference Builder for Microsoft Office 365’s Excel. This is a very special release as we were hand selected by Microsoft Office 365 to work with them on the development of this new Excel app which adds many new features and functionality to our EventBoard Mobile conference app for event organizers. We are very proud to say that we worked side-by-side with Microsoft in their offices in Washington to create this new tool and believe this will take the EventBoard mobile app to the next level. This release…

Read More

Live On-Site Sitefinity Training with Lino Tadros Announced

By | News | No Comments

Falafel is offering four days of training comprised of training for your entire web team. Day one: Dedicated to business users Day two: Focused on designers and admins Day three and Four: Two full 8 hours days of training for developers Choose to bundle them together or purchase the training right for you.   Lino Tadros is a Certified Sitefinity Developer, and both worked on and overseen the development of over 350 Sitefinity projects. He has been awarded Microsoft MVP status twelve years in a row for his numerous contributions to the C# community and is an expert in .NET,…

Read More

Connect KendoUI AutoComplete to MVC Action

By | ASP.NET, JavaScript, Kendo UI, MVC | One Comment

Although Kendo UI’s default use of OData provides powerful, standard mechanisms for filtering data via HTTP requests, it can be overkill in many scenarios. In particular, if you are not using WebAPI in your ASP.NET application, it can be much simpler to implement server-side filtering using a single querystring value. Using the parameterMap function, you can control how the Kendo UI datasource communicates with your server-side methods.

Read More
Custom Message in Empty Kendo UI Grid

Kendo UI: Displaying a Custom Message when Grid is Empty

By | Kendo UI | 8 Comments

By default the Kendo UI Grid doesn’t provide the user with any feedback when the grid is empty.   The grid just displays the column headers. When paging is enabled things get a little better but this isn’t ideal.  First, it requires paging to be enabled which isn’t always the case.  Secondly the message is tucked away in the lower right hand corner and isn’t very prominent. Ideally, something like this does a much better job of providing the user with feedback: Luckily making this happen is really straight forward.  Start by creating a function that will be called on DataBound of the grid.  At this…

Read More
Main camera

Showing the device camera in Unity

By | .NET, C#, Fun, Microsoft, Mobile, Multi-Device | 4 Comments

Back in March I helped my Nokia buddies out with the DVLUP Days 2014 North American Tour in Dallas. During one of the sessions, I got introduced to Unity. From my numerous posts about XNA and most recently about Open GL, you can’t be surprised I went to that session. From my previous XNA work you can see that I’m deeply interested in the AR aspect of mobile devices. To do that, however, you need access to the device hardware. With Unity being a cross-platform framework, I was not hopeful that this would end up being an easy task. My…

Read More

Kendo Grid Hierarchy with Shared Column Headers

By | Kendo UI, Web | 5 Comments

The Kendo Grid is one of the most complex and configurable widgets in the Kendo framework.  One of the options is to use a hierarchical grid which allows you to display data in a master/detail or parent/child configuration.  The default layout will give you an expand/collapse button with a child grid that has its own columns and headers, as displayed in the Hierarchy Grid Demo: But what if your parent and child grids have the same columns and you want to show the child columns in line with the parent row?  Fortunately, we can do this with a little JavaScript and…

Read More

Adding Transparency to the ListView on iOS with Xamarin Forms Custom Renderer

By | Xamarin | 3 Comments

One of the minor issues we encountered when developing Falafel 2 Go was that on iOS, the ListView defaults the background color of the ViewCell to white. I’m not sure if this is an oversight, intentionally by design, or if it will be changed in the future, but we needed a way to make it transparent. Otherwise the textured custom background from the design would be covered up by the white background of the ListView on iOS. Here’s what it looks like before: Custom Renderers Fortunately, this was a simple issue to resolve by creating yet another custom renderer to…

Read More

Seed the database with initial Users in MVC 5

By | MVC | 9 Comments

In MVC 5 applications you may want to seed the database with initial users for various reasons. You may want default users and roles added as part of the application. In this post, we will take a look at how to  seed the database with default users. The MVC 5 application uses ASP.Net Identity 2.0 to manage users, roles and identities. ASP.Net Identity 2.0 uses the Entity framework code first approach to create a database. To seed the database, first you need to enable migration on the database. To enable migration, in the package manager console run the command enable-migrations…

Read More

Custom Action Filter in ASP.NET MVC 5

By | MVC | 8 Comments

ASP.NET MVC 5 provides five different kinds of Filters. They are as follows: Authentication [Introduced in MVC5] Authorization Action Result Exception Filters are used to inject logic at the different levels of request processing. Let us understand where at the various stages of request processing different filters get applied. Authentication filter runs before any other filter or action method Authorization filter runs after Authentication filter and before any other filter or action method Action filter runs before and after any action method Result filter runs before and after execution of any action result Exception filter runs only if action methods,…

Read More

What is Azure DocumentDB

By | Azure | 2 Comments

Recently I attended Cloud Camp by Microsoft India in Delhi. I had good time learning at the event. Besides other Microsoft Azure services like Azure Websites, Azure Mobile Services and Azure DocumentDB impressed me lot. In this post, I am sharing first level learning on Azure DocumentDB. Azure DocumentDB is a NoSQL document database service offering on cloud from Microsoft. It allows us to work with schema free JSON documents using JavaScript and the HTTP protocol. It is a fully managed JSON document database service. Some of the important points about the DocumentDB is as follows: It is a schema…

Read More

Jesse Liberty releases his latest (19th) course on Pluralsight: Kendo UI and AngularJS

By | News | No Comments

 This brand new Pluralsight course from Falafel’s Jesse Liberty will teach you everything you need to know about programming AngularJS with Kendo UI. The course will provide an introduction to Kendo UI, and demonstrate what you need to know to get started, including where to get the libraries and what you are already expected to know. You’ll build your first Angular program using Kendo UI, and from there build out the program with increasingly interesting Kendo UI controls. You’ll look at handling data, using the Kendo UI DataSource, and implementing an MVVM approach to building applications with these technologies. Finally, you’ll go beyond the core…

Read More

Adding Tapped Event Gestures to Any XAML Control with Xamarin Forms

By | Xamarin | 4 Comments

We previously looked at how to create User Controls with Xamarin Forms to display an Image Button for the different activities in our Falafel 2 Go application. Now that we have these reusable buttons, we need to make them tab-enabled so that they can launch the appropriate activity. As we’ll see in today’s post, this is very simple to implement with Xamarin Forms. Native Tap Events By default, only a small selection of Xamarin Forms controls expose events such as “Tapped” or “Selected” natively. ListView and the related ViewCell are examples, which makes sense as that is generally the purpose…

Read More