Click here to Skip to main content
       

.NET Framework

 
AnswerRe: [VB.NET 2008] DataSet and XML files PinmemberEddy Vluggen13-Dec-12 4:28 
GeneralRe: [VB.NET 2008] DataSet and XML files Pinmembersteve_949661313-Dec-12 21:21 
GeneralRe: [VB.NET 2008] DataSet and XML files PinmemberEddy Vluggen14-Dec-12 0:34 
QuestionAssembly with different .NET framework versions Pinmembermarca29212-Dec-12 10:05 
AnswerRe: Assembly with different .NET framework versions PinmemberGerry Schmitz12-Dec-12 12:25 
QuestionUse A Cookie To Send PersonID To Different Page PinmemberxnaLearner12-Dec-12 4:33 
Questiondont allow user to select existing date PinmemberxnaLearner10-Dec-12 5:46 
AnswerRe: dont allow user to select existing date PinprotectorPete O'Hanlon10-Dec-12 5:53 
I'd be tempted to use this logic:
        $(function () {
        //3 methods below dont allow user to select weekends
            $('.date-pick').datePicker(
               {
                   createButton: false,
                   renderCallback: function ($td, thisDate, month, year) 
                   {
                       if (thisDate.isWeekend()) 
                       {
                           $td.addClass('weekend');
                           $td.addClass('disabled');
                       }
                       if (thisDate.isHoliday()) // You need to code the method that supports this.
                       {
                           $td.addClass('holiday');
                           $td.addClass('disabled');
                       }
                   }
               }
        )
Where you do the check for thisDate.isWeekend, add in a check to see if the date has previously been selected as well. That way you give the user a good UI experience because you can show that a date has previously been selected. Now, you will also need to add a check in to the controller to prevent the user from adding a date that's previously been selected because you are working in a multi-user system here.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: dont allow user to select existing date PinmemberxnaLearner10-Dec-12 6:23 
GeneralRe: dont allow user to select existing date PinmemberxnaLearner10-Dec-12 23:26 
GeneralRe: dont allow user to select existing date PinprotectorPete O'Hanlon10-Dec-12 23:32 
GeneralRe: dont allow user to select existing date PinmemberxnaLearner10-Dec-12 23:46 
GeneralRe: dont allow user to select existing date PinprotectorPete O'Hanlon10-Dec-12 23:51 
GeneralRe: dont allow user to select existing date PinmemberxnaLearner11-Dec-12 0:21 
GeneralRe: dont allow user to select existing date PinprotectorPete O'Hanlon11-Dec-12 1:02 
QuestionRun through loop for week and dont select weekends PinmemberxnaLearner10-Dec-12 4:13 
AnswerRe: Run through loop for week and dont select weekends PinprotectorPete O'Hanlon10-Dec-12 4:31 
GeneralRe: Run through loop for week and dont select weekends PinmemberxnaLearner10-Dec-12 4:52 
GeneralRe: Run through loop for week and dont select weekends PinprotectorPete O'Hanlon10-Dec-12 4:53 
QuestionDeploying a Windows Service Pinmemberindian14310-Dec-12 4:09 
AnswerRe: Deploying a Windows Service PinprotectorPete O'Hanlon10-Dec-12 5:04 
GeneralRe: Deploying a Windows Service Pinmemberindian14310-Dec-12 5:08 
GeneralRe: Deploying a Windows Service PinprotectorPete O'Hanlon10-Dec-12 5:20 
Questionrun through startDate to endDate and add each record to DB PinmemberxnaLearner10-Dec-12 2:04 
AnswerRe: run through startDate to endDate and add each record to DB PinmemberxnaLearner10-Dec-12 2:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 28 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid