Kendo grid get API is calling twice with strict CSP

0 Answers 13 Views
Grid PanelBar
abdul
Top achievements
Rank 2
Iron
Iron
abdul asked on 18 Sep 2025, 03:50 PM | edited on 19 Sep 2025, 10:06 AM

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.

 

Mihaela
Telerik team
commented on 23 Sep 2025, 03:01 PM

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

No answers yet. Maybe you can help?

Tags
Grid PanelBar
Asked by
abdul
Top achievements
Rank 2
Iron
Iron
Share this question
or