Calling MVC Controller On Periodic Basis in JavaScript

Here is a business use case I am trying to address.  After a web page is loaded, I need to make a server call every so often and make certain parts of the web page visible or hidden based on server call results.  In my case I am checking the state of the object in …

Continue reading ‘Calling MVC Controller On Periodic Basis in JavaScript’ »

Validation for Date Pickers in JavaScript

This is really a minor issues that have been bugging me for a little while.  We are using jQuery UI datepicker controls in our MVC application.  There is one annoying part with these controls.  When you pick a date from the calendar popup, the unobtrusive JavaScript validation we use does not kick in immediately, as …

Continue reading ‘Validation for Date Pickers in JavaScript’ »

ASP.NET MVC Template and Knockout.js

I am trying to get up to speed with knockout.js.  I am brining it into an MVC application.  I am trying to reduce the amount of JavaScript our team has to write, especially in large, complicated screens.  At the same time, I want to leverage the power of MVC views.  Our application is using DataAnnotations, …

Continue reading ‘ASP.NET MVC Template and Knockout.js’ »

Validation Inside jQuery Accordion

I recently uncovered a little issue with using entry controls that use unobtrusive JavaScript validation inside jQuery accordion control.  When an error is shown, the accordion does not resize as it should, thus some controls fall off the accordion surface.  I got some feedback on  ASP.NET forum from Bruce, and wrote a little function that …

Continue reading ‘Validation Inside jQuery Accordion’ »

Validating Dependent Fields in ASP.NET MVC

In this post I wanted to describe a solution to a specific problem I recently encountered.  The problem is as following.  I have a class with a set of dependent properties, such as start and end date or minimum / maximum numbers.  I want to implement both client and server side validation in an MVC …

Continue reading ‘Validating Dependent Fields in ASP.NET MVC’ »

JqGrid, getRowData and Cells in Edit Mode

Today I was fighting with a very specific problem.  I was working with jqGrid’s getRowData method.  I was implementing batch save feature, where a user can edit some data in the grid, then hit Save button to send the data to the server.  I set up a column (SortOrder) to be always editable to be …

Continue reading ‘JqGrid, getRowData and Cells in Edit Mode’ »

Developing ASP.NET MVC 3 Application with EF CTP (Part 5)

In this post I will describe how to use MVC with a jquery grid control to display tabular data.  To start with, there is a number of grids available, some even integrate with ASP.NET MVC by providing an MVC assembly that generates the javascript for the grid.  One of these components in jqGrid.  I am …

Continue reading ‘Developing ASP.NET MVC 3 Application with EF CTP (Part 5)’ »