Can we use js code to open modal popup by using telerik-blazor.js library in blazor server-side?

beginer
beginer
Member
1328 Points
43 Posts

I asked following question to chatgpt:

Can we use js code to open modal popup by using _content/Telerik.UI.for.Blazor/js/telerik-blazor.js?

And got something like:

Yes, you can use JavaScript code to open a modal popup using Telerik's Blazor UI library. Assuming you have included the telerik-blazor.js script in your Blazor application, you can use JavaScript interop to call the necessary functions to open the modal popup.

 

Here's an example of how you might do it:

// Assuming you have included the telerik-blazor.js script in your HTML

function openModalPopup() {
    // Call the function provided by Telerik Blazor to open the modal popup
    TelerikBlazor.ModalPopup.open();
}

But it's not working. Anyone has any idea?

 

 

Views: 248
Total Answered: 0
Total Marked As Answer: 0
Posted On: 28-Feb-2024 03:05

Share:   fb twitter linkedin
No, I did not find any way to do this.
 - Rahul Maurya  29-Mar-2024 01:51
Answers
 Log In to Chat