MVC: Action Name Attribute

Please see my other MVC articles. Define a Custom Action & URL When a Controller’s Action method is invoked, the URL reflects the name of the method.However, it you need the URL to look different without changing the Action method name, assign an ActionName attribute to that method.First, I’ll begin with a new test Action…

Dropdown with Custom Date Format

Apply a Custom Date Format to a Dropdown In this article, I’ll demonstrate how to apply a custom format to a date within a dropdown.I’ll begin with a View Model containing my date property. Next, I call my controller action for DataSource.Read() – see my other Telerik articles (link) for an example. The important update…

Telerik: Grid-Editor Template

Please see my other Telerik articles. Customizing an input field within a grid In this article I’ll demonstrate how to customize a grid’s input field. Within the grid I have a field: FederalTaxID. A requirement was added to enforce this field’s unique format and provide the user a helpful hint as the enter data. First,…

Telerik: Grid-Dropdown

Please see my other Telerik articles. Using dropdowns within grids In this article I’ll demonstrate how to use a dropdown within a Telerik grid. First, I’ll begin with the View Model used with CRUD operations on the grid. Regarding the first View Model, you’ll notice the UIHint decoration. This attribute instructs the website to use…

Telerik: Grid-Dropdown Column Filter

Please see my other Telerik articles. Providing a dropdown column filter In my Telerik Grid Dropdown article (link), I demonstrated how to use a dropdown within a grid column, allowing users to choose between predefined choices. However, the column’s filter method wasn’t very precise in that since the column only provided a predefined set of…

Telerik: Display Dynamic Instructions

Please see my other Telerik articles. Displaying instructions dynamically to save space In this article I’ll demonstrate how to use Telerik’s Window control to dynamically display instructions in a popup window. Using a dynamically-displayed windows allows the instructions to remain hidden until the user requires them, saving valuable screen real estate. First, I’ll define my…

AJAX: Dropdown Update Table

Please see my other AJAX articles. Using AJAX to update a table from a dropdown In this article I’ll demonstrate using AJAX to update an HTML table based on a dropdown selection. First I’ll define the ViewModel to contain data for this exercise. Next, I’ll define the dropdown to be populated. Now, I’ll populate the…

Telerik: Dropdown with Template

Please see my other Telerik articles. Displaying dropdown choices with special formatting In this article I’ll demonstrate how to create a Telerik dropdown using templates to display data in a tabular format. First, I’ll create a ViewModel to serve as the data layer. Note: Ensure you’ve decorated the CustomerID property with the [Key] attribute or…