Telerik Forums
KendoReact Forum
1 answer
96 views

Hi,

 

Can i disable weekends ... or maybe not show a day of a week in DateTime Picker.

For example i don't want my DateTime Picker to show FRI and SAT days

 

is that possible

Thank you

 

Konstantin Dikov
Telerik team
 answered on 31 Jan 2022
1 answer
106 views
In the Scheduler component I would like to use different forms depending on if there is already an entry in a day column or not. Meaning, if there is no event yet on a specific day, I would like to show a different form than if there is already an event.

I have put the code where I use the Scheduler component here:

https://stackblitz.com/edit/react-ts-kyjpoi

This doesn't work of course because of the missing dependencies but I wanted to show you what I've done. The important parts are:

Line 160: Here I hijack the double click event of the slot to determine if there is already an event in the column and depending on the answer, I set the variable isDayEmpty which I use in line 207 to determine the form.

The problem is, that as I have hijacked the double click event, nothing happens anymore when I double click in the Scheduler and the Dialog with the form does not open anymore. How can I trigger the standard double click behavior (open the dialog) using the correct form?
Stefan
Telerik team
 answered on 28 Jan 2022
1 answer
44 views
1 answer
327 views

Hi,

 

I'm using the free trial to try the pdfexport of Kendo React (I'm using the export with component). I have problem with the export of accented characters: "é-è-à-ù" is exported as "Ø-Ł-à-ø" into the pdf.

The properties of the pdf indicates that the font used is Helvetica (so if I understand, the result is normal because this font don't support those characters).

I read this page: https://www.telerik.com/kendo-react-ui/components/drawing/pdf-output/embedded-fonts/ and I declare the @font-face for DejaVu (and the font-family). My page display the text with this font, but when I export the page in pdf, the font DejaVu is not used, and the properties of the pdf still indicate the font Helvetica. It's like if the export didn't take in account the font.

I don't know what I'm missing. Anyone can help me?

Stefan
Telerik team
 answered on 26 Jan 2022
1 answer
340 views

Is it possible to set a specific color for the events in the Scheduler? I mainly use the week-view but actually it doesn't matter which view. I just would like to be able to programmatically set the color of a Scheduler event entry (different color for every event). Is that possible? I saw the "Provide Custom Editor" example with the resources on this page:

https://www.telerik.com/kendo-react-ui/components/scheduler/customization/form/editor/

But here the colors are set based on a resource type. I don't have resources like this so I'd be interested if and how this could be done for each event independently.

 

Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
 answered on 26 Jan 2022
1 answer
118 views

Hi.

We're using kendo-react-excel-export version 3.7

Exporting data to Excel works fine EXCEPT when there's only 1 column of data.

In the following code, there is data in sheets but after the code is invoked, that data is not in workbooks.

Is this a known issue?

If so, is there is a workaround?

The application has been running for sometime. It is possible the situation where there is just one column of data doesn't happen very often.

const workbooks = sheets.map(x => this[x.ref].workbookOptions());

Stefan
Telerik team
 answered on 25 Jan 2022
1 answer
130 views

Hi there,

I have a flex layout with a following configuration:
-----------
| 1 |    2    |
-----------
| 3 | Grid |
-----------

I'd like a Grid to have an auto height (depends on the free space) with scrollbar showing, but I cannot reach such setup. Here is example:
https://stackblitz.com/edit/react-kgfbgg-bt4gpa?file=app%2Fmain.jsx

Even though the Grid has a scrollbar there is also scrollbar on entire page I would like to get rid of.

Thanks in advance!

Stefan
Telerik team
 answered on 25 Jan 2022
1 answer
111 views

Hi

i have implemented detail grid using sample https://www.telerik.com/kendo-react-ui/components/grid/rows/hierarchy/

I have pagination implemented on child grid, when i change page of any one of child grid,  all the child grid page is getting their page #.  is there a way to achieve this?

Stefan
Telerik team
 answered on 25 Jan 2022
1 answer
48 views

Hi,

The Calendar example on https://www.telerik.com/kendo-react-ui/getting-started/ does not work. Also using the Grid does not work. Although, the Button component works fine.

Version of react and react-dom is 17.0.2. Version of the react components is 5.0.1. npm version 8.3.2

Error: 

react.development.js:1476 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (react.development.js:1476:1)
    at Object.useContext (react.development.js:1484:1)
    at usePropsContext (usePropsContext.js:4:1)
    at withPropsContext.js:20:1
    at renderWithHooks (react-dom.development.js:14985:1)
    at updateForwardRef (react-dom.development.js:17044:1)
    at beginWork (react-dom.development.js:19098:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
    at invokeGuardedCallback (react-dom.development.js:4056:1)
resolveDispatcher @ react.development.js:1476
useContext @ react.development.js:1484
usePropsContext @ usePropsContext.js:4
(anonymous) @ withPropsContext.js:20
renderWithHooks @ react-dom.development.js:14985
updateForwardRef @ react-dom.development.js:17044
beginWork @ react-dom.development.js:19098
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
beginWork$1 @ react-dom.development.js:23964
performUnitOfWork @ react-dom.development.js:22776
workLoopSync @ react-dom.development.js:22707
renderRootSync @ react-dom.development.js:22670
performSyncWorkOnRoot @ react-dom.development.js:22293
scheduleUpdateOnFiber @ react-dom.development.js:21881
updateContainer @ react-dom.development.js:25482
(anonymous) @ react-dom.development.js:26021
unbatchedUpdates @ react-dom.development.js:22431
legacyRenderSubtreeIntoContainer @ react-dom.development.js:26020
render @ react-dom.development.js:26103
./src/index.js @ index.js:7
options.factory @ react refresh:6
__webpack_require__ @ bootstrap:24
(anonymous) @ startup:7
(anonymous) @ startup:7
react-dom.development.js:20085 The above error occurred in the <KendoReactCalendar> component:

    at http://localhost:3000/static/js/bundle.js:43201:95
    at App
Konstantin Dikov
Telerik team
 answered on 25 Jan 2022
1 answer
68 views

Hello.

I have a question. Is the 'more tools' functionality planned (button on the right with three dots and pop-up menu) in the near future, as we can see in the toolbar for JQUERY?

For example here: Resizing in jQuery ToolBar Widget Demo | Kendo UI for jQuery (telerik.com)

Well thank you.

Konstantin Dikov
Telerik team
 answered on 25 Jan 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?