Beta builds of GTP.NET targeting .net core 3.1 WindowsForms available here:
https://plexityhide.com/pub/DOTNETCORE31_PlexityHide.GTP.dll.zip
Beta builds of GTP.NET targeting .net core 3.1 WindowsForms available here:
https://plexityhide.com/pub/DOTNETCORE31_PlexityHide.GTP.dll.zip
This is all for the better but requires some changes to you current project.
When you use the Gantt_ASP you would have had something like this in your aspx page:
We need to change it since the AjaxControlToolkit does not need the special ToolkitScriptManager any longer and it does not exist in the namespace.
Also the names of the scripts we rely on to move around time items has change names.
Your code should look like below if you use plexityHide.GTP.dll’s from after this date 2016-06-11.
Summary:
The live samples are now found here:
http://plexityhide.azurewebsites.net/
Updated builds found here https://plexityhide.com/buildserver/
and on Nuget
Gantt_ASP uses generated images to build up the view.
The images used to come from an aspx page called GTPImg.aspx
This is no longer the case. Instead images are served up by a handler called GetImage.ashx.
Handlers are defined in the config file. The old developer server (before IIS Express) had a different way to define the handler.
Check the config file below if you have any problems to get images to show.
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <!-- this section needed for iis7--> <handlers> <add name="GetImage" verb="*" path="GetImage.ashx"
type="PlexityHide.GTP.WEB.GetImage, PlexityHide.GTP.WEB" /> </handlers> </system.webServer> <appSettings /> <connectionStrings /> <system.web> <!-- this section needed for developer server <httpHandlers> <add verb="*" path="GetImage.ashx" type="PlexityHide.GTP.WEB.GetImage, PlexityHide.GTP.WEB" /> </httpHandlers> -->
Summary of recent news in GTP.NET
When TimeScrollUse is true a scrollbar is added to allow scroll in time from TimeScrollMinDate to TimeScrollMaxDate
TimeItemStyle.RowHeightScale – To better facilitate use of screen space and time precision a new time item drawing style has been added.
In this style the drawing is divided into multiple rectangles – one per lower scale band – and the end parts are drawn as a schedule – both for start and end.
This allows users to have greater precision on move and resize:
Gantt_ASP
Gantt_ASP now use handler to serve up images and deals with error that IE10 & 11 use doubles as coordinates where as Chrome and FF use integers
RightToLeft support for the whole Gantt including Grid and Printing:
When you run newer versions of GTP.NET you get a button in the date scaler:
To remove this button from your production system you need a runtime key.
Runtime keys are free for registered users of GTP.NET.
Visit this site: https://licenseandticket.azurewebsites.net/
Find the runtime key menu:
Enter you key – choose product (GTP.NET) – Generate key – copy the resulting key
In your application code do something like this – do this BEFORE component creation. You only need to do it once per application:
public WinForm() { RuntimeKey.Check.Register("YOUR-GTPNET-KEY==", "THE LONG GENERATED KEY FROM ABOVE ="); }
FAQ: But why? It is not fair that some use the GTP.NET without sharing the cost of maintenance.
The runtime key makes it easier for all users to remember to acquire a license and help share the cost of maintenance.
private void gantt1_OnTimeItem_Hoover(PlexityHide.GTP.Gantt aGantt, PlexityHide.GTP.TimeItemEventArgs e) { if (aGantt.MouseMoveKind == MouseMoveKind.move) { textBoxEvents.Text = "Moving a time item"; DateTime suggestedStart=gantt1.DateScaler.PixelToTime(e.x); // but we do not accept the suggested start - we want it to differ in complete days... double totaldays=Math.Round((e.TimeItem.Start - gantt1.DateScaler.PixelToTime(e.x)).TotalDays); e.x = gantt1.DateScaler.TimeToPixel(e.TimeItem.Start - new TimeSpan((int)totaldays,0,0,0)); }
In IE10 and IE11 the coordinate system is all of a sudden in float numbers and not in integer as in all other browsers.
The AjaxControlToolkit has a GetElementPosition call deep down in it Common namespace that does some error checking.
The error checking it does is partly to verify that the coordinates it gets is of type integer – in IE10 and IE11 the will not be integers. Hence exceptions.
The error checking is only in effect when you have the scriptmanager in debug mode.
So to fix the errors you must do this:
<asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"
CombineScripts="False" ScriptMode="Release"> <Scripts> <asp:ScriptReference Name="Common.Common.js" Assembly="AjaxControlToolkit" /> <asp:ScriptReference Name="Compat.DragDrop.DragDropScripts.js" Assembly="AjaxControlToolkit" /> <asp:ScriptReference Name="PlexityHideAjax.Gantt_AjaxBehavior.js" Assembly="PlexityHideAjax" /> </Scripts> </asp:ToolkitScriptManager>
Once you have done this – the moving of time items from client side works just fine once again.
Question
Hello Support, I am using the PlexityHide.Gtp version 3.1.9.8. I want to change the grid columns sort icon. Is it possible to change the sort icon? If yes how to change it (if possible plz provide the code), if no then is there any work around to show some other icon over it because current sort icon is not looking good, the icon is not easily recognized by end user, it looks like digit 7. Thanks in advance for your help.
Answer
In Gantt_ASP you can implement the OnGetResource event.
When called with PlexityHide.GTP.WEB.sort_ascending.gif, PlexityHide.GTP.WEB.sort_descending.gif or PlexityHide.GTP.WEB.sort_empty.gif, supply your own valid url to an image…
< ?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Question
I went into vb.net5 and started a new web site and tied doing the instructions for To create an ajax< ?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
enabled Gantt chart. The error is Script manager is ambiguous in the namespace system.Web.UI.
After this I tried adding it to my current ajax aspx vb.net 2005 and got the same errors. And can’t get the old versions in source safe. The error is Script manager is ambiguous in the namespace system.Web.UI. I think something got messed up in the .net framework or something. Don’t know how to fix this.
Answer
My guess is that your web.config is messed up.
Best solution?
Create a new project drag an update panel to it (with the VS and ajax version you want).
Copy the content from that web.config to your actual project.
More details:
Maybe you have a row like this:
<add assembly=”System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
And a row like this:
<add assembly=”System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
In the web.config? Then VS does not know where to go for system.web.extensions…