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

Panelbar loadOnDemand taghelper

2 Answers 74 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Catalin
Top achievements
Rank 1
Veteran
Catalin asked on 06 May 2020, 01:30 PM

Hi,
I have a kendo-panelbar and for SOME of theirs items I would like to load on demand partial views, using tagHelper syntax.

For the kendo-tabstrip & tabstrip-item it was very simple by using this sequence:

<tabstrip-item text="Great Job, Telerik"
                                                  asp-action="GetMyPartialView"
                                                  asp-controller="FromMyController"
                                                  asp-route-id="@Model.MyId">
</tabstrip-item>

Can you provide me an example to use in the panelbar-item context?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 11 May 2020, 07:37 AM

Hi Catalin,

The content URL for a PanelBar item should be defined in the following way:

<kendo-panelbar name="project">
	<items>
		<panelbar-item content-url="home/contacts" text="Storage">
		</panelbar-item>
	</items>
</kendo-panelbar>

That, however, would not result in the expected. That is why I have added the following bug item to our backlog:

https://github.com/telerik/kendo-ui-core/issues/5756

The only workaround I think of at this stage is to use the PanelBar with DataSource or to use it with the bind-to option. That, however, will force you to define all items in the DataSource of the widget.

As a small token of gratitude for bringing the above to our attention, I have updated your Telerik points.

Regards,
Veselin Tsvetanov
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
Catalin
Top achievements
Rank 1
Veteran
answered on 11 May 2020, 11:33 AM
Thank you, Veselin.
Tags
PanelBar
Asked by
Catalin
Top achievements
Rank 1
Veteran
Answers by
Veselin Tsvetanov
Telerik team
Catalin
Top achievements
Rank 1
Veteran
Share this question
or