Filtering WebGrid using Ajax.ActionLink(s) in MVC

In the previous article on the Filtering web grid, we used the DropDown for the filtering. I this article I’ll use the links to filtering the webgrid. In most shopping sites you can see the sidebar with links, user can use those link to filtering the product search area. Continue reading “Filtering WebGrid using Ajax.ActionLink(s) in MVC”

Custom formatting of the columns in WebGrid MVC

The previous example will render all columns but you may want to limit which columns are displayed and how the style will be implement. First I’ll show you the rendering the numbers of selected columns, you can achieve this by passing the array of the columns in the WebGrid constructor. Continue reading “Custom formatting of the columns in WebGrid MVC”

Getting started with WebGrid in MVC : Render the basic WebGrid

In this example I’ll show you that how to render the basic WebGrid in the Razor View. I’ll use the Sample Employee SQL Database in the examples. I believe you have setup the all prerequisites for Walk-through of WebGrid in MVC 4.
Continue reading “Getting started with WebGrid in MVC : Render the basic WebGrid”

Convert MVC WebGrid data into JSON string and use it in controller

In this article I will demonstrates how to generate the JSON string from the WebGrid data in your MVC web application. In addition, you will learn how easy it is to use this JSON data in your controller. I assume that you have some basic knowledge of the MVC framework so I am not describing that how to start the MVC project from the scratch. Continue reading “Convert MVC WebGrid data into JSON string and use it in controller”

How to show Indian currency symbol in MVC WebGrid

is the new Indian Rupee currency sign.it was presented to the public by the Government of India on 15 July 2010. When you try to show ₹ currnecy symbol using Culture and UCulture, you get the default currency symbol ‘Rs’ not ₹ then you need to set customize the symbol. Same problem occurs when you want to show this symbol in WebGrid in MVC projects. Continue reading “How to show Indian currency symbol in MVC WebGrid”

Spinner or numeric up down cell in WebGrid in MVC

The following code shows how to insert jquery spinner control in your WebGrid in MVC project. For it i am showing you a simple example of WebGrid.

The following example contains a webgrid with the employee’s details including their department and salary. The code is implementing spinner into salary field so that user can change the salary through up and down buttons. Continue reading “Spinner or numeric up down cell in WebGrid in MVC”

Filtering records in WebGrid using dropdownlist in MVC

The blog entry demonstrates how you can filter the data on the basis of another control selection such as dropdown list.

The following example contains a dropdownlist with all department names and a webgrid that will contain employee’s details including their department that will be changed on the to dropdownlist selection change. Continue reading “Filtering records in WebGrid using dropdownlist in MVC”