Telerik Forums
KendoReact Forum
5 answers
430 views

Has anyone come across this problem where the dropdown options of a dropdown list control renders horizontally opposed to the expected vertical render.

dropdownlist

    --> option1 | option2 | option3

instead of,

dropdownlist

    --> option1

    --> option2

    --> option3

 

I am using kendo react UI with typescript.

This is how I have used the control to start with.
<DropDownList data={["Austria", "Belarus", "Austria1", "Belarus1"]} />

Any help would be much appreciated.

 

Stefan
Telerik team
 answered on 29 Mar 2021
12 answers
675 views

Since upgrading to @4.2.0, I'm getting:

"Warning: Each child in a list should have a unique "key" prop.

Check the render method of `KendoReactGrid`. See https://fb.me/react-warning-keys for more information.
    in tr (created by KendoReactGrid)
    in KendoReactGrid (created by BatchesGrid)
    in BatchesGrid (created by Context.Consumer)"

(This is a snippet of the callstack.)

I haven't been able to reproduce in StackBlitz.  I'll try to do more troubleshooting next week.  I wasn't sure if you guys were getting it on your end or not.

Yong
Top achievements
Rank 1
 answered on 26 Mar 2021
2 answers
343 views

On a Grid column I have a filter icon that opens the build-in filtering dialog. On that dialog there is a blue button with 'FILTER' for a label. How can i change the color of that button?

I tried to chase it down but was not successful... where can I apply a new class or override an existing one. 

 

thanks in advance,
DavidA

David
Top achievements
Rank 1
Veteran
 answered on 24 Mar 2021
3 answers
85 views

hi all. new to kendo.

i have a simple grid w/pagination, and trying to add sorting. it seems to be working ok except:

1. the event never toggles asc and desc. it's always asc. anybody know why?

2. the little arrows never appear.

tia!

Yong
Top achievements
Rank 1
 answered on 24 Mar 2021
5 answers
3.4K+ views

Hi,

The KendoReact Grid renders both general (G) and custom date formats including AM/PM (e.g. dd/MM/yyyy hh:mm:ssa) with lowercase am/pm values. This is in contrast to Kendo documentation e.g. https://github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md. Is there any way to render a datetime value with uppercase AM/PM in a KendoReact grid without using a custom cell and date formatter? We are already using IntlProvider.

Kind regards,

David

Stefan
Telerik team
 answered on 24 Mar 2021
2 answers
1.1K+ views

Kendo's Form element has an initialValue prop which I can assign an object to. Inputs will use their "name" field to bind to the initialValue object however I am having trouble getting this to work with DropDownLists. 

Do DropDownLists work with a form's initial value if indeed the props (data, dataItemKey, textField, and name) are all set. The value of the binded field should match the dataItemKey's field.

 

Thanks

Stefan
Telerik team
 answered on 24 Mar 2021
2 answers
296 views

FloatingLabel returns the k-state-empty class when value is 0. This is a bug as 0 is a valid value, likely due to a conditional on numericValue.

My temporary fix is editorValue={numericValue !== undefined && numericValue !== null ? 1 : 0}

You can see the bug in action if you set the numeric value to 0 in this example:  https://www.telerik.com/kendo-react-ui/components/inputs/floating-labels/

Thanks.

Krissy
Telerik team
 answered on 23 Mar 2021
5 answers
492 views

I've implemented a Kendo React Grid and Tooltip. I can filter the grid without issues, however the tooltip is not updating to match the filtered grid. The tooltip is showing the information for the item that was previously in the row before the grid was filtered. 

I can see that moving the cursor over the grid cell clears the tootip from the source <td title>some data</td>

Lines 01 to 23 show how my grid is implemented and lines 31 to 38 show my Tooltip component.

How can I get the cell tootip to respond to the filtering?

01.<Tooltip openDelay={100} position="bottom">
02.   <Grid
03.        data={process(this.state.gridData.map((item) => ({...item, selected: item["id"] == this.state.selectedID})  ), this.state.gridDataState)}
04.        {...this.state.gridDataState}
05.        onDataStateChange={this.handleGridDataStateChange}
06.        pageable={true}
07.        sortable={true}
08.        selectedField="selected">
09.         
10.        <Column
11.            field="id"
12.            title="id"
13.            filter={'text'}
14.            cell={Tooltip}
15.            columnMenu={ColumnMenu} />
16.        <Column
17.            field="name"
18.            title="name"
19.            filter={'text'}
20.            cell={Tooltip}
21.            columnMenu={ColumnMenu} />
22.    </Grid>
23.</Tooltip>
24. 
25.handleGridDataStateChange = (e) => {
26.    this.setState({gridDataState: e.data})
27.}
28. 
29. 
30. 
31.export const Tooltip = (props: GridCellProps) => {
32.    const {field} = props;
33.    return (
34.        <td title={props.dataItem[field]}>
35.            {props.dataItem[field]}
36.        </td>
37.    );
38.}
Stefan
Telerik team
 answered on 18 Mar 2021
3 answers
385 views

I was trying to trigger filter in GridColumMenuFilter using Enter instead of manual click. I have checked this post https://www.telerik.com/forums/using-enter-key-for-grid's-columnmenufilter but I can't make it work. I'm not sure what was tweaked on that code.

 

Thanks

-Josh

Stefan
Telerik team
 answered on 18 Mar 2021
5 answers
1.7K+ views

Hi There,

We are using the Kendo React Form library. Is it possible to reset a single field to the initial value that the form supplies? I see the way to reset the entire form, but we are looking to include a reset button next to each input field that would reset the field to it's initial value and also inform the form that it has not been modified.

Stefan
Telerik team
 answered on 17 Mar 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?