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'})});
});
...
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?
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
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);
};
Hi,
ist there any example where GanttCellProps is used.
Thank you, Matjaz Reberc
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?
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
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