Friday, November 2, 2018

A1 Repro: An Easy Date Editor Template suitable for jQuery Date Picker Plugin


This entry is about creating an editor template for an ASP.Net MVC solution for a Date.

The following piece of code shows a section of "PropertyViewModel" class containing three different dates; "TotalValueAssessmentDate", "PreviousYearValueAssessmentDate", and "LastInspected".




Only these three dates would generate a busy markup, hence to avoid that use an editor for the DateTime data type, which is hinted by the UIHint annotation on the property.




The view now is very easy to read as we see the editor usages right away. The template is also very simple.




The above editor is meant to be used with bootstrap-datepicker jQuery plugin. You can find the plugin documentation in the provided link reference.

The javascript spinet which loads the calendar popup looks like this:





To Table of contents

7 comments:

  1. You need to be a part of a contest for one of the most useful websites on the net. I most certainly will recommend this site! Webpage: Top Encryption Software Tips! & Failures Make You How To Encrypt A Password For Free Better Only If You Understand These 7 Things.

    ReplyDelete
  2. thanks for this usefull article, waiting for this article like this again. typing tutor

    ReplyDelete
  3. Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. Xenforo

    ReplyDelete
  4. I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. business analysis

    ReplyDelete
  5. On the off chance that maybe one happens to give a fragmentary end, it might maybe take a few attempts with various assorted applications. LinkedIn Scraper

    ReplyDelete

A1 Repo: Simple Pagination for WCF Service Operation

It is never a good idea to paginate on the client.  This post is about a simple pagination for a WCF service operation.  For this work I nee...