Updating Expansion panel subtitle on client side

1 Answer 99 Views
ExpansionPanel
Hannu-Pekka
Top achievements
Rank 1
Hannu-Pekka asked on 11 Apr 2023, 08:08 AM

Hi

Is there a recommended way of updating an expansionpanel's subtitle on client side? I am able to change the subtitle by using selectors, but I would prefer a better way.

 

I was trying to find something along the lines of:

$("#expansionPanel").data("kendoExpansionPanel").subTitle("new subtitle");

 

My workaround is this:

$("#form> div:nth-child(1) > div.k-expander-header > div.k-expander-sub-title").text("new subtitle");

 

Best regards

H-P

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 14 Apr 2023, 06:54 AM

Hello, Hannu-Pekka,

Currently there is no method in the ExpansionPanel's API to change its subtitle. The approach you have chosen seems appropriate to achieve the requirement.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ExpansionPanel
Asked by
Hannu-Pekka
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or