Telerik Forums
KendoReact Forum
1 answer
99 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
845 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
1 answer
128 views

I'm setting the filter of a col with blank (""), null, and real values programmatically. I also want to use the checkbox filter so that when the user filters out the nulls and "", they can further filter down the real values. But when you set the filter programmatically, the null and "" values are selected in the checkbox filter (incorrect) while the grid itself filtered them out (correct).

If I change the checkbox filter to take in the new filtered data, it still shows "2 values selected" even though we're not technically selecting null and "" (I understand they're still being used as "values" in the filter object itself).

My problem lies with the fact that the values are "selected", which requires the user to need to manually de-select these two options to further filter down the filtered data.

Any ideas/workarounds for this edge-case/niche situation?

https://stackblitz.com/edit/react-x2xqag?file=app/main.jsx

Konstantin Dikov
Telerik team
 answered on 27 Feb 2022
1 answer
150 views
According to the documentation( https://www.telerik.com/kendo-react-ui/components/scheduler/customization/items/ ), the composition tree looks as follows: EditItem -> Drag -> ViewItem -> Item, and according to this: https://www.telerik.com/kendo-react-ui/components/scheduler/customization/items/state-update/ this hook should give us access to the item being dragged.

However, regardless of where we use this hook, there is never any data. We've tried using it inside basically every part of the component(a custom item, view item, edit item, but regardless of where we try to use it, we just get `null`s back. Even when using it inside a custom `SchedulerItem` which has been written to render in a different color when on-going, when it is dragged, the item will correctly change color, but there is still no information available to us about it being dragged.


Stefan
Telerik team
 answered on 25 Feb 2022
1 answer
143 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
107 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.8K+ 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
117 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
96 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
111 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?