Telerik Forums
KendoReact Forum
1 answer
114 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
98 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
45 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
65 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
1 answer
80 views

Is there a way to focus the autocomplete inputbox on pageload?

Input has "autofocus" props, is there anything for autocomplete? thanks!

Stefan
Telerik team
 answered on 24 Jan 2022
1 answer
242 views

Hello, I am currently working on a react project using Data Grids and I am getting the same error when I scroll down the page(not the data grid). I have 2 accordion displaying them and only happens when I open and scroll on the 2nd accordion. The error results to broken page if I continue scrolling. The error only happens if I open the 2nd accordion and then scroll.

I have searched solutions over the net and most of the answer is that it happens when a data returns a null value. The error only occurs when I scroll but the data is displayed correctly. I am using states to assign the data from my API and I am using that state as the data prop for my data grid. I don't think the state data is updated to null when I scroll since I am not using the prop onScroll in my data Grid.

Konstantin Dikov
Telerik team
 answered on 24 Jan 2022
1 answer
16.2K+ views

Hi, I have my license on

https://www.telerik.com/kendo-react-ui/my-license/

and trying to add KendoReact to an existing react application.  When following instructions and running "npm install --save @progress/kendo-licensing", I get this error: "Unable to authenticate, need: Basic realm="Artifactory Realm""

PS C:\Users\NBKVCNE\source> cd pcoe
PS C:\Users\NBKVCNE\source\pcoe> npm install --save @progress/kendo-licensing
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\NBKVCNE\AppData\Roaming\npm-cache\_logs\2022-01-21T16_29_56_327Z-debug.log

Stefan
Telerik team
 answered on 24 Jan 2022
1 answer
79 views

I have a standard HTML input with the following configuration.

<input type='file' placeholder='Select file' onChange={handleChange} />

The input is processed by a button click with event handlers attached.

I want to replace this element with a KendoReact component that can restrict file types uploaded. Is the Upload component with autoUpload disabled the best option? 

     <Upload
     autoUpload={false}
     onChange={handleChange}
     onClick={uploadFile}
     batch={false}
     restrictions={{ allowedExtensions: ['.jpg', '.png'] }}
     defaultFiles={[]}
     withCredentials={false} />

How do I expose the onClick event for the Upload component's submit button?
Stefan
Telerik team
 answered on 24 Jan 2022
1 answer
61 views

Hi, 

I have an Excel and PDF export over my grid using the following:

<ExcelExport data={data} ref={_export}>{grid}</ExcelExport>
<GridPDFExport ref={(pdfExport) => (gridPDFExport = pdfExport)}>
{grid}
</GridPDFExport>

I have a multiple page grid and all pages export. However if I apply a sort to the grid and export, the sort does not retain on the export. If I instead use dataResult.data (which has the sorted order), it only shows the first page.

How do I export all pages but retain the sort, column order etc?

Filip
Telerik team
 answered on 21 Jan 2022
1 answer
1.1K+ views

Is there an elegant way of integrating dateinput with formik?

My code below works however it's  tedious (not DRY :( ) to implement. It will require a state for every date input.  I hope you don't mind sharing your code. Thanks

 

const ClaimsForm = () => {
    const [value, setValue] = React.useState<Date | null>(new Date());
    const changeDate = (event: DateInputChangeEvent) => {
      setValue(event.value);
    };
    
    const initialValues = {
        decisionDate: value
    };

    const handleSubmit = (values: any) => {
        console.log(values)
    }

  return (
        <Formik
            initialValues={initialValues}
            onSubmit={handleSubmit}
            enableReinitialize={true}
            >
        
        {({ isSubmitting }) => (
            <Form>  
                <DateInput name='decisionDate' value={value} onChange={changeDate}  />
            </Form>
        )}
  )
}


Stefan
Telerik team
 answered on 21 Jan 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?