Hi,
I have a strict CSP implemented in the Program.cs file, after that when I verified the browser developer tool then I can see the get API is called 2 times.
Can you please let me know why this get API is called 2 times.
When I analyze I found that Kendo Panelbar Select event is called twice so internally the Get API is called twice.
@(Html.Kendo().PanelBar().Name("panelbar")
.ExpandMode(PanelBarExpandMode.Multiple)
.Events(ev => ev.Select("OnSelect_Panel"))
.Items(panelbar =>
{
panelbar.Add().Text("Test Panel");
})
function OnSelect_Panel(sender) {
}
Inside the OnSelect_Panel() method is calling twice so the GET API also called twice. How can I restrict to one API call.
Note: Without strict CSP OnSelect_Panel() is called once but with strict CSP it called twice.
Hi Abdul,
I have tested the case locally, and it appears that the Select event of the PanelBar triggers only once when a panel is selected at my end. Would you please review the content of the kendo-deferred-scripts-XXX.js file and confirm that the PanelBar initialization script is added only once in the file? For example:
Thank you for your cooperation.
Best,
Mihaela