Click here to Skip to main content
11,411,922 members (60,835 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ ASP.NET Ajax
Hello Friends

Actually what is my problem is i want to show only past 4 week date not more than past 4 week date using Ajax Calender Extender so how is it possible anyone suggest me to show only past 4 week calender where weekstart from Wednesday and weekend on Tuesday . Thanks in advance


<script type="text/javascript">
       function CheckWeekEndDay(sender, args) {
           var selecteddate = new Date(sender._selectedDate);
           if (selecteddate.getDay() != 2) {
               alert("Please Select a Valid Day");
               sender._textbox.set_Value('');
               return false;
           }
       }
 
       function onCalendarShown() {
           var cal = $find("calenddate");
 
           for (var i = 0; i < cal._daysBody.rows.length; i++) {
               var row = cal._daysBody.rows[i];
 
               for (var j = 0; j < row.cells.length; j++) {
                   if (j != 2) {
                       row.cells[j].setAttribute("class", "disablecal");
                   }
               }
           }
       }
   </script>
Posted 17-Jun-13 4:08am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 268
1 Sergey Alexandrovich Kryukov 200
2 Sascha Lefévre 170
3 ProgramFOX 130
4 Maciej Los 110
0 Sergey Alexandrovich Kryukov 8,955
1 OriginalGriff 7,158
2 Maciej Los 3,480
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 17 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100