Using PanelBar without Data bindings?

1 Answer 406 Views
PanelBar
improwise
Top achievements
Rank 1
Iron
Iron
improwise asked on 03 Jan 2022, 01:02 PM
We would like to use the PanelBar but not with a datasounce but instead like kind of a TabStrip with all content defined in markup code and each panel just containing a Blazor component. But it seems like the PanelBar does not work without a data source strangely enough? 

1 Answer, 1 is accepted

Sort by
1
Nadezhda Tacheva
Telerik team
answered on 05 Jan 2022, 12:29 PM

Hi Patrik,

You are right, the PanelBar indeed does not work without a data source as it is designed like so. A component that would serve to cover your desired scenario is called ExpansionPanel - it will allow you to define separate panels and it will use markup approach. As such component is not yet available in Telerik UI for Blazor, I opened a request for it in our public portal on your behalf - ExpansionPanel component. You may also take a look at its Kendo UI for Angular version to explore its behavior - ExpansionPanel Overview

I added your vote to the public request to increase its popularity as we are prioritizing the feature requests implementation based on the community interest and demand. As I opened the request on your behalf, you are subscribed and will receive email notifications when its status changes. This is the best way to keep in track with the progress of the component as once we know which release will contain its implementation, we will update its status in the feedback portal and you will be notified via email accordingly.

In the meantime, you could try a PanelBar with a ContentTemplate to define your desired content and you can use conditional markup to render the corresponding components in the panel body based on the specific items.

I hope you will find the above information useful. Please let us know if any further questions appear.

Regards,
Nadezhda Tacheva
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!
Tags
PanelBar
Asked by
improwise
Top achievements
Rank 1
Iron
Iron
Answers by
Nadezhda Tacheva
Telerik team
Share this question
or