Telerik Forums
KendoReact Forum
1 answer
114 views

How to implement data binding by index.

<Grid
            style={{ height: "100%" }}
            groupable={true}
            data={Data}
            onGroupChange={onGroupChange}
            group={group}
            onExpandChange={onExpandChange}
            expandField="expanded"
        >
            <Column field="parameters.name" title="Param" width="100px" />
            <Column field="parameters.measure" title="Measure" filter="numeric" width="80px" />
            <Column field="parameters.values[0].value" title="1" />
            <Column field="parameters.values[1].value" title="2" />

<Column field="parameters.values[2].value" title="3" />

        </Grid>

Data:

[
{
"objectId": 33, "objectTypeId": 2, "name": "Object", "equipTypeId": 1, "parameters": [

{

"paremeterId": 1001, "name": "param", "measure": "град.", "values": [

{

"hour": 0, "value": 70.695189224045, "color": null, "toolTip": null, "sourceId": 1

}, {

"hour": 1, "value": 70.8555387336323, "color": null, "toolTip": null, "sourceId": 1

}, {

"hour": 2, "value": 70.41603535019829, "color": null, "toolTip": null, "sourceId": 1

}]

]

}

]

Stefan
Telerik team
 answered on 25 Feb 2022
1 answer
96 views

I want to change the background color of DateInput component, but it does not recognize any style I'm applying.


<DateInput style={{ backgroundColor: 'red' }}></DateInput>

Stefan
Telerik team
 answered on 24 Feb 2022
1 answer
1.7K+ views

Hello 
I'm trying to do focus grid cell textbox after new data row is adding.
In KendoReact data grid sample for editField, there is no auto focus the first cell Name after clicking  Add new 
https://www.telerik.com/kendo-react-ui/components/grid/editing/

For another use case we would like to use is to auto focus the first cell Product Name after clicking  Edit 
https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-custom/

Konstantin Dikov
Telerik team
 answered on 24 Feb 2022
1 answer
92 views

Hello,

I've been trying to add a custom tool to my Kendo Editor that allows me to insert some text with a specific link whatever the cursor is positioned at.

There's not enough documentation regarding custom tools that mentions how to achieve this, I've search everywhere and nothing to be found.

This is what I have so far in my custom tool:

let node = view?.state.schema.text(settings.text, [view?.state.schema.marks.link.create({ title: "Test", href: "http://www.google.com" })]);

    return (
        <Button
            type="button"
            onClick={() => {
                EditorUtils.insertNode(
                    view,
                    node
                );
            }}
            disabled={!canInsert}
            onMouseDown={(e) => e.preventDefault()}
            onPointerDown={(e) => e.preventDefault()}
            {...settings.props}
        >
            {settings.props.label}
        </Button>
    );

I've been reading the ProseMirror documentation to see if I could find any clues.

I understand that inserted "nodes" can have a list of "marks" passed to enhance a given node, so I'm passing the link mark to the text node, however it seems like it's completely ignoring it and it just adds a regular text.

Any help would be greatly appreciated.

Thanks,

Juan

Filip
Telerik team
 answered on 23 Feb 2022
1 answer
86 views

In attempting to implement two TimelineViews within the Scheduler, I noticed that only the first one was accessible, and both appeared to be selected.

Is there any workaround to handle multiple TimelineViews (or rather, any views of the same type)?

Demo: https://stackblitz.com/edit/react-xd5epq?file=app%2Fmain.jsx

Konstantin Dikov
Telerik team
 answered on 23 Feb 2022
1 answer
94 views

Hello,

         We are using Kendo react PDF in our project. Currently we are experiencing PDF word breakage. In our downloaded PDF document, many elements are getting break/wrapped in financials section. We think this is an issue from the telerik side. Can you suggest/provide any solutions for this?

Regards,

Pratap

 
Filip
Telerik team
 answered on 21 Feb 2022
1 answer
75 views

Hi all,

Please refer to this sample: https://stackblitz.com/edit/react-gfiaun?file=app/main.tsx

I am facing an issue whereby the controlled component does not update accordingly if the props are passed in via Field Prop. 

In Field test1, the controlled component works as intended.

In Field test2, the controlled component does not work as expected, even though onHandleChange2 is still being executed and the value is still been set as seen in console. 

I would like your advice on why this happens. Thank you!

Stefan
Telerik team
 answered on 21 Feb 2022
1 answer
223 views

I'm trying to prevent headerGroup rows from rendering based on certain conditions.

When I try to utilize rowRender for this purpose, I can't make it work because it controls only the render of cells within the row. Returning null and <td></td> don't work (the row still renders but with nothing in it or with empty cells).

Is there any way I can target the row instead of the cells? I would even take being able to simply add a class to the row to hide it from the user with CSS.

I can't target the row with the row:empty CSS selector because the groupHeader rows come with k-group-cell cells already rendered before the renderRow even starts rendering custom cells.

Did I overlook anything that Kendo offers? Thank you!

Konstantin Dikov
Telerik team
 answered on 21 Feb 2022
1 answer
527 views

Hi there,

Im trying to use custom headers, but column menus doesnt show, theres an exemple
 https://stackblitz.com/edit/react-egavx9?file=app/main.jsx
In older version (4.8.0) for exemplo this work perfectly, an exemple here : 
https://stackblitz.com/edit/react-egavx9-xur51f?file=app/main.jsx

Is it a bug?, or there are new way to do this ?

best regards,
Gabriel.

Konstantin Dikov
Telerik team
 answered on 18 Feb 2022
1 answer
96 views

After looking through all of the Scheduler documentation, every example shows the time slots being displayed vertically.

The only horizontal orientation appears to be when grouping, but is only on those grouped fields.

Is it possible to attain something like the picture attached?

Stefan
Telerik team
 answered on 18 Feb 2022
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?