- Home
- Forum
- ASP.NET Core - EJ 2
- Gantt Resources : selected Resources not showing
Gantt Resources : selected Resources not showing
Hi


i am usingejs-gantt chart in asp.net core. I passResourceId as GUID. and i am getting datasource usinge-data-manager. Please check below attached response file.
Issue
1.Not showing resources namein grid columninto given response.Please check below screenshot and check attached response example.
2. not selected item show from given response.please check below screenshot and check attached response example.
Attachment: resouces_response_1b6d4a49.zip
SIGN IN To post a reply.
6 Replies
1 reply marked as answer
PP
Pooja Priya Krishna Moorthy
Syncfusion Team
June 15, 2021 12:04 PM UTC
Hi Himmat,
We are able to replicate the reported problem. We will validate more on this and update you further details in two business day.(June 17, 2021).
Until then we appreciate your patience.
Regards,
Pooja K
MS
Monisha Sivanthilingam
Syncfusion Team
June 17, 2021 02:12 PM UTC
Hi Himmat,
We apologize for the inconvenience.
Our development team is currently validating your issue with high priority. We will provide you with further details tomorrow(June 18, 2021).
We appreciate your patience until then.
Regards,
Monisha.
HP
Himmat Panchal
June 18, 2021 10:28 AM UTC
Hi
did you check this problem?
MS
Monisha Sivanthilingam
Syncfusion Team
June 18, 2021 02:18 PM UTC
Hi Himmat,
We apologize for the inconvenience caused.
We have analyzed your query and also the code files you shared. We can avoid both the issues you reported by mapping the resource fields in Camel casing, (i.e.), with the first letter of the mapping in lower case. That way, both the issues you reported can be avoided. Please ensure that your mapping for the resource Id and resource Name fields is as resourceId and resourceName. The following code snippets demonstrate the solution.
HomeController.cs
|
public class ResourceModel
{
public string resourceId { get; set; }
public string resourceName { get; set; }
public Nullable<int> resourceUnit { get; set; }
}
|
|
ResourceModel Record1 = new ResourceModel()
{
resourceId = "4b65c97f - eae2 - 4ffc - 814f - 02597dfd1fc2",
resourceName = "Martin Tamer"
};
|
|
new GanttDataSource()
{
taskId = 1,
taskName = "Project initiation",
startDate = new DateTime(2019, 03, 29),
endDate = new DateTime(2019, 04, 21),
resources = new List<ResourceModel>
{
new ResourceModel { resourceId = "4b65c97f - eae2 - 4ffc - 814f - 02597dfd1fc2", resourceUnit = 70 },
new ResourceModel { resourceId = "50c2a0df-1efe-41c1-8340-19967f71f3cc"}
}
}
|
Index.cshtml
|
<e-gantt-resourcefields id="resourceId" name="resourceName"></e-gantt-resourcefields>
|
We have also prepared a sample for your reference.
Please contact us if you require any further assistance.
Regards,
Monisha.
Marked as answer
HP
Himmat Panchal
June 21, 2021 06:46 AM UTC
This suggestion is very helpful. thank you very much.
PN
Preethi Nesakkan Gnanadurai
Syncfusion Team
June 22, 2021 05:08 AM UTC
Hi Himmat,
Most welcome.
Regards,
Preethi
SIGN IN To post a reply.
- 6 Replies
- 4 Participants
- Marked answer
-
HP Himmat Panchal
- Jun 14, 2021 07:04 AM UTC
- Jun 22, 2021 05:08 AM UTC