This is a migrated thread and some comments may be shown as answers.

Tag Helper - Loading content with AJAX

2 Answers 203 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Veteran
Johannes asked on 17 Jun 2020, 06:19 AM

I am trying to load a partial view inside of one of the splitter panes. I have done this previously using the HTML helpers in an old project, but I am having troubles replicating this with Tag Helpers.

If I use content-url, I get the page inside of an iframe, which doesn't have my styles applied and the iframe only takes up a small amount of the pane with overflow scrollers. The HTML Helper in the old project loaded the returned html in the pane.

How can I load the partial view using ajax with the tag helpers?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 19 Jun 2020, 04:35 PM

Hello Johannes,

When the content-url specifies a complete URL to a page (starting with http:// or https://) the Splitter renders the content in an iframe. If the content-url is relative, then the content is not rendered in an iframe. I will need additional time to provide a sample about this scenario and will write back here. Meanwhile could you share the Splitter setup used on your side?

Regards,
Dimitar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Johannes
Top achievements
Rank 1
Veteran
answered on 20 Jun 2020, 03:28 AM
I must have been loading the url with something other than @Url.Action. No idea where I went wrong or what I was testing it out with. Thanks for your help.
Tags
Splitter
Asked by
Johannes
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Johannes
Top achievements
Rank 1
Veteran
Share this question
or