Telerik Forums
UI for Blazor Forum
1 answer
63 views
Hi All,

I have a TelerikButton within a PanelBarBinding element in an TelerikPanelBar, and i like to avoid the Panel to expand when i click the TelerikButton. However the Panel should expand if i click the Panel anywhere else.

how can i do this ? i use Telerik UI for Blazor ?


Thx

Hristian Stefanov
Telerik team
 answered on 30 Oct 2024
0 answers
49 views

I would like to change the Panelbar backgound based on the hierarchy level.

I have 3 level nesting in the PanelBarItem collections. On each level I would like a different color/background color scheme.

This is my PanelBarItem class


public class PanelBarItem
{
    public int Level {  get; set; }
    public string Text { get; set; }
    public bool Disabled { get; set; }
    public string Url { get; set; }
    public object Icon { get; set; }
    public List<PanelBarItem> Items { get; set; }
}

and this is my PanelBar data


    private List<PanelBarItem> LoadFAQData()
    {
        List<PanelBarItem> items = new List<PanelBarItem>()
        {
            new PanelBarItem()
            {
                Level=0,
                Text = "Provider Transactions",
                Icon = SvgIcon.Accessibility,
                Items = new List<PanelBarItem>()
                {
                    new PanelBarItem()
                    {
                        Level=1,
                        Text = "Can I perform both DDE and HIPAA batch transactions?",
                        Icon = SvgIcon.QuestionCircle,
                        Items = new List<PanelBarItem>()
                        {
                            new PanelBarItem()
                            {
                                Level=2,
                                Text = "Basic registration gives you the ability to perform DDE Transactions. You must check the box labeled \"I would like to do HIPAA Transactions\" and complete all required fields for HIPAA Batch Transactions."
                            }
                        }
                    },
                    new PanelBarItem()
                    {
                        Level=1,
                        Text = "Why can't I submit a claim to this website?",
                        Icon = SvgIcon.QuestionCircle,
                        Disabled = false,
                        Items = new List<PanelBarItem>()
                        {
                            new PanelBarItem()
                            {
                                Level=2,
                                Text = "Under HIPAA, health plans are permitted to choose the coordination of benefits (COB) model they wish to perform, either the Provider-to-payer or the payer-to-payer method. We have chosen to use the payer-to-payer method of COB. We have entered into trading partner agreements with the Medicare contractors. These agreements permit us to receive claims electronically directly from Medicare. If you submit a claim to Medicare for one of the Policyholder s listed on our eligibility file, you need do nothing more, Medicare will forward the claim to us for processing."
                            }
                        }
                    },
                    new PanelBarItem()
                    {
                        Level=1,
                        Text = "Is pre-certification required?",
                        Icon = SvgIcon.QuestionCircle,
                        Disabled = false,
                        Items = new List<PanelBarItem>()
                        {
                            new PanelBarItem()
                            {
                                Level=2,
                                Text = "No. However, Medicare Select policies require prior approval for scheduled admissions to non-network hospitals. Please contact the claims customer service department at 1-877-825-9337 for further assistance. "
                            }
                        }
                    },
...

George
Top achievements
Rank 1
Iron
Iron
 asked on 24 Jul 2024
1 answer
94 views

Is it possible to have the panel bar expand or collapsed based on a property (bool IsExpanded) for the list of items in the data property of the panel bar, instead of as a separate list of items bound to the ExpandedItems list of objects?

I have a separate component with expand and collapse buttons.  I have a global list of objects that are in a service.  The Data property of the panel bar is set to this list of global items.  When the Expand All button of the separate component is clicked, it sends a message to the application service to set an Expand for all items in the global list that is bound to the panel bar.  The service sends out a notifystatechanged event.  The problem is I do not want to maintain a completely separate list of objects just for which ones are in the ExpandedItems list.  Would be nice to simply bind the expanded to a property of the global object thereby having the statechanged change the expanding and collapsing of the items in the panel bar.

Is this possible?  Haven't seen anything in documentation that seems to allow this.

Right now it means that my application wide service needs to have a completely separate list of objects for the expanded items in this one panel bar component, so it can add and remove objects and then notifystatechanged back to the panel bar component.

If not, is there any other way of doing this to have the panel bar get notified so it can then add and remove the expanded items object list?

Please advise

Thanks

Svetoslav Dimitrov
Telerik team
 answered on 26 Apr 2024
1 answer
151 views

Hello,

I'm using the PanelBarComponent to navigate between Pages.
Right now I am facing the following problems:

1)
when a page where unsaved user input is detected triggers a user prompt before the location is changed, i.e. 'are you sure ..' this breaks the selection of the panelbar. Wether the users decides to stay on the page or discarcd the changes and confirms the location change the selectedItem is set the last clicked item.

2)
a page containing a link or any other means of a location change, i.e. the location change is not triggered by the clicking the corresponding item on the panelbar also breaks the selection. In this case the selectedItem is not updated at all.

3)
if the user uses a bookmark to navigate to the page the panelbar doesn't show any selection

Nadezhda Tacheva
Telerik team
 answered on 11 Apr 2024
1 answer
134 views

Hello, 

 

I have a TelerikPanelBar and I am getting the content from the database.  the text from item.Text is a string, that includes HTML.  Instead of rendering the HTML, it is still just rendering it as a string, even though I am converting it to a Markup String/using Markdig.

 

How can I get the text to display as HTML, instead of a string?

Hristian Stefanov
Telerik team
 answered on 01 Mar 2024
1 answer
288 views
How can I hide the expand button on the right side of the panelbar header if there is nothing to expand? I am willing to do this either through code somehow or even if I have to access the css and set the fill of the svg icon to white I will, but I have not been able to do so, thus far. At very least disabling the expand button would be an option as well. As you can see in my image, the top item I want an expand button but the one beneath it since it has zero hours should be removed. Any help would be appreciated.

Hristian Stefanov
Telerik team
 answered on 14 Feb 2024
1 answer
135 views
I'd like to be able to programmatically set the focus to a panel bar component.  How can I go about doing this?  Alt-W is not what I'm looking for.  Ideally, I'd like to be able to do this from an anchor link.
Nadezhda Tacheva
Telerik team
 answered on 17 Nov 2023
1 answer
243 views

Hello,

My use case requires me to be able to set the selected panel bar item programmatically. However, I don't see any data bindings or api methods on the control ref to set the selected panel. Is this possible?

Setting the private member SelectedItem through reflection appears to work. Are there implications to doing this that I should be aware of?

        PanelBarRef.GetType().InvokeMember("SelectedItem",
            BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.SetProperty | BindingFlags.Instance, 
            null, 
            PanelBarRef,
            new object[] { SelectedPage });

 

Thank You,

-Andy

Dimo
Telerik team
 answered on 16 Nov 2023
1 answer
434 views

I am using the TelerikPanelBar with only 1 item to create a collapsible form.
Is it possible to control the color and background color of the HeaderTemplate.

  <TelerikPanelBar Data="@Model"
    ExpandedItems="@Model">

    <PanelBarBindings>

      <PanelBarBinding>

        <HeaderTemplate>
          <h4>Filters</h4>
        </HeaderTemplate>

      </PanelBarBinding>

    </PanelBarBindings>

  </TelerikPanelBar>

Hristian Stefanov
Telerik team
 answered on 22 Aug 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?