I'm using Kendo react inline editing feature.This is my code...
cancel = dataItem => {
const originalItem = this.state.DataSet.find(p => p.id === dataItem.id);
const data = this.state.DataSet.map(item =>
item.id === originalItem.id ? originalItem : item
);
this.setState({ DataSet: data, errors: [] });
this.DataList();
};
In this cancel method i'm calling this.DataList() which is a get request to the server. If i remove this line of code the inEdit is not closing.......So how can i close the inline method without writing this line?
Attempting to following the example shown here: https://www.telerik.com/kendo-react-ui/components/charts/series-types/box-plot/.
But I get the error: TS2322: Type '"boxPlot"' is not assignable to type '"area" | "line" | "bar" | "donut" | "pie" | "bubble" | "bullet" | "candlestick" | "column" | "funnel" | "horizontalWaterfall" | "ohlc" | "polarArea" | "polarLine" | "polarScatter" | ... 14 more ... | undefined'.
However, I can use "verticalBoxPlot" (which there is no demo for, but I found in the api docs), and that works fine. Even if I go to the API documentation, "boxPlot" is missing: https://www.telerik.com/kendo-react-ui/components/charts/api/ChartSeriesItemProps/#toc-type.
I'd love exactly this functionality, but using KendoReact:
Working Dojo Example in response to this post
Am a bit confused as to what properties translate over to where-- how would you implement this using the Kendo React editor? Is this possible?
Hello,
Trying to add multiple Editors on a single page, and get the HTML from each. The issue is, only the most recent ref is being found when I use the following code:
import React from
'react'
;
import ReactDOM from
'react-dom'
;
import { Editor, EditorTools, EditorUtils } from
'@progress/kendo-react-editor'
;
const { Bold, Italic, Underline } = EditorTools;
class App extends React.Component {
textarea =
null
;
setEditorRef = ref => {
this
.editor = ref
}
getHtml = () => {
console.log(
this
.editor)
const view =
this
.editor.view;
this
.textarea.value = EditorUtils.getHtml(view.state);
}
render() {
return
(
<div>
<Editor
tools={[
[ Bold, Italic, Underline ]
]}
contentStyle={{ height: 160 }}
defaultContent={
'<p>editor sample html1</p>'
}
ref={
this
.setEditorRef}
/>
<Editor
tools={[
[ Bold, Italic, Underline ]
]}
contentStyle={{ height: 160 }}
defaultContent={
'<p>editor sample html2</p>'
}
ref={
this
.setEditorRef}
/>
<br />
<button
className=
"k-button k-button-icontext"
onClick={
this
.getHtml}
>
<span className=
"k-icon k-i-arrow-60-down"
/>Gets HTML
</button>
<br /><br />
<textarea
className=
"k-textarea"
style={{ height: 100, width:
'100%'
, resize:
'none'
}}
defaultValue=
"<p>textarea sample html</p>"
ref={textarea =>
this
.textarea = textarea}
/>
</div>
);
}
}
ReactDOM.render(
<App />,
document.querySelector(
'my-app'
)
);
How would I implement this?
I am having issues using KendoReact grid components within React Functional Components using hooks such as useEffect. One issue is that if a ExcelExport component is used, a maximum limit of state updates is reached. Furthermore if a useEffect is used pointing to the state.data of a Kendo React Grid component, the data fires off any inline grid custom column cells which includes Kendo DropDowns.
Are hooks supported yet for Kendo React components, and if not, when can we expect support?
My environment is using the latest versions of Redux-Toolkit, React-Redux, Redux and React.
Thanks,
Jim Minnihan
SKF USA, Inc.
https://stackblitz.com/edit/react-zbhrxe?file=Hello.js
how can i drag a particular field in the same row, in the grid with using the reorder function.
in my grid i have star icon, which drags the entire column vertically but my requirement is to drag that star horizontally with in a particular grid column.
Hello,
I'd like to report a possible issue regarding Kendo Grid. When we put filters that does not return any rows we have paging buttons enabled that are responsible for moving to next/last page. To reproduce use an example from your site and put some silly filters e.g. in CustomerId.
I have a dialog popup with some scheduling options that I have created. For one component I have two radio buttons and each radio button is a set of DropDownLists and NumericTextBoxes. The radio button styling works fine with the NumericTextBox, but with the DropDownList I have problems with the dropdown actually opening. It will flicker when you click on it and you must click it multiple times before it will fully open and stay open. I have added the className="k-radio-label" to the DropDownList and that seems to be where my issue is. Is this a known bug and is there a workaround? The selection of the radio button is working, it just seems to be an issue with the dropdown animation.
Here is a snippet to give you some idea:
<div>
<label className=
"k-form-field display-inline"
>
<span>Every:</span>
<input
type=
"radio"
value=
"repeatWeek"
id=
"rptWeek"
className=
"k-radio"
checked={
this
.state.dayInterval ===
'repeatWeek'
}
onChange={
this
.handleRadio}
/>
<DropDownList
className=
"k-radio-label"
data={weekNumbers}
onChange={
this
.setWeekOfMonth}
defaultValue={weekSelected}
/>
</label>
</div>