Please provide me a sample, to save the resource names from the task dialog of ultraganttview into the database. Resources are not being saved in to the AllProperties column. If this can be achieved via adding owners; kindly provide me a sample .
Hello Jeni,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Hi Jeni,
Thank you for the reply.
If the resource doesn’t exist in the Owners collection of the CalendarInfo, the ResourceParseError event will be fired. In it you can add the non-existing owners (set the AddNewOwners property of the event arguments to true) or prompt the user whether he/she wants the resource to be added to the owner collection (set the PromptUser property of the event arguments to true). For more information about this event please visit this link:
http://help.infragistics.com/Help/Doc/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinGanttView.v11.2~Infragistics.Win.UltraWinGanttView.UltraGanttView~ResourceParseError_EV.html
Please let me know if you have any additional questions.
Hi Dimitar
Thanks for your prompt reply.
Do we have any option, of validating the input, I mean if we enter any different resource name, to display error message?
Regards
Jeni
In order to further clarify how saving resources works, I have also attached a video showing how the application behaves on my machine.
Let me know if you have any additional questions.
Thank you for contacting Infragistics Developer Support.
Yes in order to save a resource to the database, you will need to have an owner with the same name as the resource. If the owner exists the resource will be successfully saved in the AllProperties column. If it doesn’t the resources won’t be saved.
I have attached a sample demonstrating this. The local DB has owners Kate and John, if you try to save them as a resource it will be successful. Anything else will fail.