Thursday, February 09, 2012 ..:: Forums ::.. Register  Login
 Forums Minimize
 
ForumForumMainstream Foru...Mainstream Foru...DevelopersDevelopersUse AJAX Calendar Extender instead of the old popup oneUse AJAX Calendar Extender instead of the old popup one
Previous Previous
 
Next Next
New Post
 7/18/2010 4:45 PM
 

Hi

The calendar pop up in new window has always bothered me. It needs to be in the same window and popup instantly.

So I changed it to use AJAX Toolkit's Calendar Extender. Just sharing this b/c I think it's much better this way, and its extremely easy to change. Hopefully other developers using this open source will find this helpful, or maybe the admins will decide to make this change in a future release.

Here is what you do:

1. Open up _controls\DatePicker.ascx and add the Toolkit Reference:

<%

@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

2. Next add the control below txtDate:

<

ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDATE" PopupButtonID="imgCalendar" />

3. Last step is to delete (or comment out) the onclick event code from the span that contains calendar image. So get rid of:

onclick="ChangeDate=ChangeDate<%= txtDATE.ClientID.Replace(":", "_") %>;CalendarPopup(document.getElementById('<%= txtDATE.ClientID %>'), event.clientX, event.clientY);"

And thats it! Make sure to do this in all DateTimeXXXPicker controls

New Post
 7/18/2010 9:49 PM
 

It is important to note that SplendidCRM ships with a reduced-feature-set version of the AjaxControlToolkit. We do this to increase performance by eliminating tools that we do not use. The ramifications are that you cannot enable the CalendarExtender without first replacing the AjaxControlToolkit with one that includes the CalendarExtender.

You should be able to apply the binary distribution provided on CodePlex, but make sure that you test all AJAX related features before you deploy to production.

Previous Previous
 
Next Next
ForumForumMainstream Foru...Mainstream Foru...DevelopersDevelopersUse AJAX Calendar Extender instead of the old popup oneUse AJAX Calendar Extender instead of the old popup one


  
Copyright (c) 2006-2010 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2012 by DotNetNuke Corporation