Telerik Forums
KendoReact Forum
0 answers
76 views
I am trying to figure out why the Switch control in my React project goes blank when you turn it to the off position.  It has something to do with it having focus because when I click somewhere else in the application the slider re-appears.
Jimmy
Top achievements
Rank 1
Iron
 asked on 08 Mar 2022
1 answer
187 views

Hi,

I'm aware there is a cellRender method. There is also a rowRender method.

In our project we allow users to style fields, for example the user might set a specific field/column to have a background colour of red. I do this in the cellRender method.

But what is the user wants to highlight an entire row (so each field/column has a background colour)? I wondered if we could use the rowRender to achieve this.

I have got the desired effect but am wondering if this is considered bad practice? Is this okay or is it better to add more logic to the cellRender method?


const rowRender = (tr, props) => {

// In this basic example, the second row of the grid has all it's cells coloured red. It'll obviously be more complex than this

if (props.dataIndex === 1) {
    props.children.forEach((cell, i) => {
    props.children[i] = React.cloneElement(cell, {...applyStyle({backgroundColour: '#ff0000'})});
});

...

Stefan
Telerik team
 answered on 08 Mar 2022
1 answer
503 views

For example, we are trying to include an info icon next to each category axis label in a line chart that, when clicked, would display a popup with additional data that's not already found in the chart. We have yet to find anything that directly says we can use icons/images in this way inside chart components.

Is there a way that we can include an icon/image next to the category label text for every category? 

Stefan
Telerik team
 answered on 08 Mar 2022
1 answer
66 views

HI All,

Could you please help me on how to  write a code on kendo tooltip close button event. i need to perform some operation when user clicks on the tooltip close button. but I am not able to find out that particular event.

By using the class i tried to fire the click event of that close button but its not getting fired.

 


Thanks

Rajendra Singh

 

Konstantin Dikov
Telerik team
 answered on 07 Mar 2022
1 answer
606 views

Hi I'm having difficulty in implementing data-attribute in autocomplete suggestion items.

The problem is i need more info in of the selected suggestion, not just the ID. 

The code below works but it doesn't solve the problem because  the data attributes were set in the li's children element. 

How do i add custom data-attribute to HTMLLIElement?  TIA

  

const itemRender = (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => {
       
        const itemChildren = (
          <div className="autocomplete-suggestion" 
            data-employeeid={`${itemProps.dataItem.memberInfo.employeeID}`} 
            onClick={ (e) => e.preventDefault()}
            >
            {li.props.children}  

          
          </div>
        );

    
        return cloneElement(li, li.props , itemChildren);
    };


Konstantin Dikov
Telerik team
 answered on 06 Mar 2022
1 answer
74 views

Hi, 

 

ist there any example where GanttCellProps is used.

Thank you, Matjaz Reberc

 

Stefan
Telerik team
 answered on 03 Mar 2022
1 answer
75 views

I am implementing a TimelineView similar to this: https://stackblitz.com/edit/react-asermz?file=app/main.jsx

One oddity I've noticed is the gap that appears after ever event.

I can see where it might be useful in some of the other Scheduling views to give a better separation between events, however in the Timeline view it gives the appearance that an event is ending earlier than it really is.

Is there any workaround that might accomplish what I'm looking for?

Stefan
Telerik team
 answered on 03 Mar 2022
1 answer
2.5K+ views

if I install latest verson 

   npm install --save @progress/kendo-theme-default 

the below error  is displayed

./node_modules/@progress/kendo-theme-default/dist/all.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./node_modules/@progress/kendo-theme-default/dist/all.css)
ParserError: Expected closing parenthesis at line: 1, column 5

 

if I install the verson 

   npm install --save @progress/kendo-theme-default@4.8.0 

then some componets like input, dropdown and indicators etc  styles are not applied 

 

Stefan
Telerik team
 answered on 02 Mar 2022
1 answer
63 views
Hello,

I'm currently trying out the Kendo React Framework. I use the MultiSelect component with for example
10 options. Now I want the user to only be able to have a maximum of 5 options selected at a time.
Is there a built-in way to limit the number of options that can be selected? Unfortunately, I couldn't 
find anything about this in the documentation.

I would be very happy about an answer. Thanks in advance.
Stefan
Telerik team
 answered on 02 Mar 2022
1 answer
702 views


if I Run

npm install --save @progress/kendo-theme-default

it shows below error

./node_modules/@progress/kendo-theme-default/dist/all.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./node_modules/@progress/kendo-theme-default/dist/all.css)
ParserError: Expected closing parenthesis at line: 1, column 5

if I Run below command

npm install --save @progress/kendo-theme-default@4.8.0

Some components like input and dropdown,badges components style are not applied

Stefan
Telerik team
 answered on 02 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?