Telerik Forums
Kendo UI for Angular Forum
2 answers
97 views

Hi there,

How do I access the CSS of the Kendo expander header? I can edit it in dev tools and the changes show up, but when I try to access the k-expander-header in my CSS files, it shows no changes.

Please see the Stackblitz here:

https://stackblitz.com/edit/angular-7tbwhs?file=src%2Fapp%2Fapp.component.ts

Thank you!

Simeon
Telerik team
 answered on 24 Oct 2023
1 answer
51 views

Hello everyone, I have a kendo-expansionpanel defined like this:


  <kendo-expansionpanel gdArea="filters" [title]="expandedState ? initialPannelTitle : pannelTitleFilters" [(expanded)]="expandedState">

- initialPannelTitle is a simple string that doesn't need to be formatted

- pannelTitleFilters is a string that consists of multiple key: values, here's an example of how it can look (style included):

EXTRA: ALL - Initial state: executed - STAINING: all - acceptance date: today - location: milan

I've been asked to make everything that specifies the filter bold, so the result would be something like:

EXTRA: ALL - INITIAL STATE: EXECUTED - STAINING: ALL - ACCEPTANCE DATE: TODAY - LOCATION: MILAN

I am struggling to find a way to do that: [innerHTML] instead of [title] breaks the component, as it removes the styles and it doesn't make possible to expand or collapse the panel.


NOTE: the string is generated using the function below, so it'd be possible for me to put some "special characters" (eg: **) to surround the parts that need to be bolded, but I didn't find any pipe that would make the text bolded without the use of innerHTML. How can I solve this?

    for (let [key, value] of Object.entries(obj)) {
      // Filter out falsey values
      if (Boolean(value)) {
        // Manage multiselect string
        if (Array.isArray(value)) {
          let tmp = value.join();
          // Truncate string if it exceeds max length
          if (tmp.length > maxStringLenght) {
            value = tmp.substring(0, maxStringLenght).concat('...');
          } else {
            value = tmp;
          }
        }
        // eg: LOCATION: MILAN - 
        title += `${key}: ${value}${separator}`
      }
    }
    // Remove last separator
    return title.trim().substring(0, title.length - 2);
  }

Preslava
Telerik team
 answered on 17 Mar 2022
1 answer
53 views

Hi Team,

Im looking for a particular feature while using the Kendo panelbar.

My requirement is such that while using a kendo grid within the panelbar im trying to filter the results using the filter boxes in the grid. During that state when I try to collapse and expand the panelbar I want the values to stay in the filter boxes and also the grid needs to display the filtered results itself. Currently on collapsing the expanding the panelbar the values are cleared and the grid results are reset to initial state without being filtered.

Kindly let me know regarding this or you could also forward me the appropriate point of contact.

Thank you,

Martin
Telerik team
 answered on 03 Nov 2021
2 answers
497 views

Hi,

I tried the ExpansionPanel by implementing the example below in my app-root component:

Interaction - ExpansionPanel - Kendo UI for Angular (telerik.com)

All panels are expanded by default, if I click on the collapse button, I see the animation to go from expanded to collapse state, but the panel resets itself immediatly to its expanded state. (see video as attachment)

I am importing this style in my styles.scss:

@import "~@progress/kendo-theme-bootstrap/scss/expansion-panel/index";

When I add the all.scss in my styles it seems to work correctly...

@import "~@progress/kendo-theme-bootstrap/scss/all.scss";

 

Any idea why this does not work?

thx!

----

My Styles.scss

@import "~@progress/kendo-theme-bootstrap/scss/appbar/index";
@import "~@progress/kendo-theme-bootstrap/scss/badge/index";
@import "~@progress/kendo-theme-bootstrap/scss/icons/index";
@import "~@progress/kendo-theme-bootstrap/scss/menu/index";
@import "~@progress/kendo-theme-bootstrap/scss/grid/index";
@import "~@progress/kendo-theme-bootstrap/scss/avatar/index";
@import "~@progress/kendo-theme-bootstrap/scss/drawer/index";
@import "~@progress/kendo-theme-bootstrap/scss/datetime/index";
@import "~@progress/kendo-theme-bootstrap/scss/notification/index";
@import "~@progress/kendo-theme-bootstrap/scss/loader/index";
@import "~@progress/kendo-theme-bootstrap/scss/expansion-panel/index";
@import "~@progress/kendo-theme-bootstrap/scss/bootstrap_dist.scss";

 

My Kendo-packages.json

  "@progress/kendo-angular-buttons""^6.1.2",
    "@progress/kendo-angular-common""^2.0.1",
    "@progress/kendo-angular-dateinputs""^5.2.0",
    "@progress/kendo-angular-dropdowns""^5.3.0",
    "@progress/kendo-angular-excel-export""^4.0.1",
    "@progress/kendo-angular-grid""^5.1.2",
    "@progress/kendo-angular-icons""^0.4.3",
    "@progress/kendo-angular-indicators""^1.1.0",
    "@progress/kendo-angular-inputs""^7.2.1",
    "@progress/kendo-angular-intl""^3.1.1",
    "@progress/kendo-angular-l10n""^3.0.1",
    "@progress/kendo-angular-label""^3.0.3",
    "@progress/kendo-angular-layout""^6.1.5",
    "@progress/kendo-angular-menu""^3.0.2",
    "@progress/kendo-angular-messages""^1.29.1",
    "@progress/kendo-angular-navigation""^1.1.0",
    "@progress/kendo-angular-notification""^3.0.1",
    "@progress/kendo-angular-pdf-export""^3.0.1",
    "@progress/kendo-angular-popup""^4.0.1",
    "@progress/kendo-angular-progressbar""^2.0.1",
    "@progress/kendo-angular-treeview""^5.3.1",
    "@progress/kendo-data-query""^1.5.5",
    "@progress/kendo-drawing""^1.10.0",
    "@progress/kendo-licensing""^1.1.4",
    "@progress/kendo-svg-icons""^0.1.2",
    "@progress/kendo-theme-bootstrap""^4.35.1",
Georgi
Telerik team
 answered on 25 May 2021
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?