Hi All,
I want to add a new set of data from a web service after clicking on Yoshi.
For example, after clicking on Yoshi, Sam and Jon should display under it.
Please how do I go about this?
Thank you very much. This solved my problem perfectly.
Hi Gayathri,
Is there any way I can display both names and designations together?
//Apply template for node.
DrawTemplate(node);
private void DrawTemplate(Node node)
{
var NodeTemplate = new DataTemplate(() =>
{
StackLayout content = new StackLayout()
{
WidthRequest = 100,
HeightRequest = 40,
Orientation = StackOrientation.Vertical
};
Label name = new Label()
{
TextColor = Color.FromRgb(255, 0, 0),
Margin = new Thickness(0, 8, 0, 0),
Text = (node.Content as Employee).Name,
FontSize = 10,
HorizontalOptions = LayoutOptions.CenterAndExpand
};
Label designation = new Label()
{
Text = (node.Content as Employee).Designation,
TextColor = Color.FromRgb(255, 0, 0),
FontSize = 10,
HorizontalOptions = LayoutOptions.CenterAndExpand
};
content.Children.Add(name);
content.Children.Add(designation);
Frame style = new Frame();
style.Content = content;
style.Padding = new Thickness(0);
style.CornerRadius = 5;
style.BackgroundColor = FillColor[(node.Content as Employee).Designation];
style.BorderColor = StrokeColor[((node.Content as Employee).Designation)];
style.HasShadow = false;
return style;
});
node.Template = NodeTemplate;
} |
Hello Gayathri, Sorry for the late reply.
I have been able to display both the name and the designations but there are still some issues.
//Adding to Teams Collection manually which works
//id == parentId
Teams.add(new Team(firstname = "Rick", lastname = "blackwell",id = 1, employee_id = 30))
Teams.add(new Team(firstname = "Tarlly",lastname = "Pickket",id=1,employee_id=34))
diagram.DataSourceSettings = new DataSourceSettings(){DataSource = Teams, Id = employee_id, ParentId = id}
//add from web service doesn't work
var teamList = await service.getTeams();
foreach(var item in teamList){
Teams.add(item)
}
diagram.DataSourceSettings = new DataSourceSettings(){DataSource = Teams, Id = employee_id, ParentId = id}
Query |
Details |
The Corner Radius for the frame doesn't seem to work when the node template is used. |
We were able to reproduce the issue “Corner radius is not applied when the node template is used." in our side and we suspect this to be a defect. We have forwarded this issue to our development team for further analysis and we will update further details by 09th August 2021.
|
When I add data from a web service to the DataSource in the diagram_NodeClicked handler, the data doesn't seem to show up. However, if I add it manually it works. See code snippet below
|
We are currently working on this. We will analyze and update you details on 06th August 2021. Could you please provide the ‘json’ file or modify the sample which we provided in the previous update to reproduce the reported issue. It will be more helpful for us to reproduce the issue in our side and assist you with the better solution at the earliest. |
Hello Gayathri,
Sorry for the late reply. I have been able to solve the issue of "Data not displayed while getting values from Webservice", The issue was caused by a mix up of ids for the employees.
Ok Thanks Gayathri. I would be waiting for the details.
Hi Gayathri,
Thank you for your response.
Hi Gayatri,
I Tried about above code base but facing issue where nodes are not displayed ..Can you please help me
Hi Oyede,
Sorry for the inconvenience. we were
able to reproduce the issue from our side. Kindly
provide the platform details on which you are facing this issue. On analysis we
have noted that it is working fine in android and iOS platform , only in UWP
platform we are facing the issue. Currently we are validating the issue and we
will provide further details on 21st July 2022 .
Regards
Benin Jayadhas
Hi Oyede,
Sorry for the inconvenience caused. Due to complexity still, we are validating the issue on “Nodes are not displayed properly in UWP Platform”. We will update the further details on 25th July 2022.
Regards,
Hemalatha D.
Hi Oyede,
We have confirmed that the issue “Node disappears in Node clicked event after clicking the node in UWP Platform”. is defect and logged defect report for this issue. The fix for the issue will be available on 8th August 2022.
FeedBack Link: https://www.syncfusion.com/feedback/36588/node-disappears-in-node-clicked-event-after-clicking-the-node-in-uwp-platform
Note: We will provide the custom NuGet for the fix. If you require a patch for the reported issue in any of our Essential Studio Main or SP release versions, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.
Regards,
Hemalatha D.
Thank you Hemalatha :)
Hi Oyede,
We have fixed the reported issue with “Node disappears in Node clicked event after clicking the node in UWP Platform” in this product version v20.2.0.43 and we have created a Custom NuGet for this fix. This fix will be included in our upcoming weekly NuGet.
Please find the download link below,
Custom NuGet: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Diagram-77287654
Note: If you require a patch for the reported issue in any of our Essential Studio Main or SP release versions, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.
Regards,
Hemalatha D.
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.