Highlight dates based off of dates from SQL

2 posts, 0 answers
  1. Michael
    Michael avatar
    24 posts
    Member since:
    Jan 2016

    Posted 06 Jan Link to this post

    I'd like to use the calendar widget but what I need is to be able to highlight certain dates. I have a result set from SQL that returns pay dates. I want to highlight the paydates, which will ultimately act as a parameter when passed into another method to do other things.

    How would I go about doing this?

  2. Eduardo Serra
    Admin
    Eduardo Serra avatar
    91 posts

    Posted 09 Jan Link to this post

    Hello Michael,

    The best way to highlight some dates in the Kendo UI Calendar is to use templates; take a look at the following sample to see how it can be done. If you want to read a little more about Kendo UI Templates, take a look at our documentation here.

    In your case, the array used for the dates that will be highlighted could be created from the result set that you get from your SQL database.

    I hope this helps!

    Regards,
    Eduardo Serra
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top