Telerik Forums
KendoReact Forum
1 answer
434 views

Hi team,

I'm trying the example (DropDownList, itemRender) here: https://www.telerik.com/kendo-react-ui/components/dropdowns/dropdownlist/custom-rendering/ but using last react version (18.2.0) the code give an error: 


TS2746: This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided.
    |     const index = itemProps.index;
    |     const itemChildren = (
  > |       <span style={{ color: "#00F" }}>
    |        ^^^^
    |         {li.props.children} {index}
    |       </span>
         );

Work using a cast:


<span style={{ color: "#00F" }}>
        {li.props.children as ReactNode} {index}
</span>

 

Regards

Vessy
Telerik team
 answered on 08 Mar 2023
1 answer
172 views
i have a horizontal bar chart using kendo react chart. can someone help me on setting fix barHeight chartseriesitem ?
Vessy
Telerik team
 answered on 08 Mar 2023
1 answer
657 views
import { ExpansionPanel, ExpansionPanelContent, ExpansionPanelActionEvent } from '@progress/kendo-react-layout';

I am using "@progress/kendo-react-layout": "3.17.0",

When I try to import ExpansionPanel, ExpansionPanelContent, ExpansionPanelActionEvent, I get an error:

Module '"@progress/kendo-react-layout"' has no exported member 'ExpansionPanel'.

Module '"@progress/kendo-react-layout"' has no exported member 'ExpansionPanelContent'.

Module '"@progress/kendo-react-layout"' has no exported member 'ExpansionPanelActionEvent'.

 

Does version 3.17.0 not have ExpansionPanel, ExpansionPanelContent, ExpansionPanelActionEvent?

Is there anywhere in the docs that describes what is/is not in 3.17.0. I get similar errors trying to use DrawerSelectEvent.

It's frustrating not knowing what I can use.

 


 

Wissam
Telerik team
 answered on 07 Mar 2023
1 answer
474 views

I have clear fresh project initialized with Vite. I'm trying to add KendoReact, but there are problems:

npm install --save @progress/kendo-react-all
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-react-app@0.0.0
npm ERR! Found: @progress/kendo-react-popup@5.11.0
npm ERR! node_modules/@progress/kendo-react-popup
npm ERR!   peer @progress/kendo-react-popup@"^5.0.0" from @progress/kendo-react-all@5.11.0
npm ERR!   node_modules/@progress/kendo-react-all
npm ERR!     @progress/kendo-react-all@"*" from the root project
npm ERR!   @progress/kendo-react-popup@"5.11.0" from @progress/kendo-react-buttons@5.11.0
npm ERR!   node_modules/@progress/kendo-react-buttons
npm ERR!     peer @progress/kendo-react-buttons@"^5.0.0" from @progress/kendo-react-all@5.11.0
npm ERR!     node_modules/@progress/kendo-react-all
npm ERR!       @progress/kendo-react-all@"*" from the root project
npm ERR!     peer @progress/kendo-react-buttons@"^5.0.0" from @progress/kendo-react-conversational-ui@5.11.0
npm ERR!     node_modules/@progress/kendo-react-conversational-ui
npm ERR!       peer @progress/kendo-react-conversational-ui@"^5.0.0" from @progress/kendo-react-all@5.11.0

 

Any idea, what's going wrong?

Vessy
Telerik team
 answered on 07 Mar 2023
1 answer
97 views

Hii

want to change end date by expandin task bar. and drag event also.

is it possible.

please let me know as soon as possible

 

Vessy
Telerik team
 answered on 07 Mar 2023
1 answer
648 views

Greetings,

I'm trying to set the height dynamically according to the size of the content using "height: auto" but it's not working.

I need the text to fit inside the content without exceeding below the actions section.

Is there a way to solve this issue? Please help, thanks!

 

Best Regards,

Jason Li

Vessy
Telerik team
 answered on 06 Mar 2023
1 answer
470 views

Hi Team,

I want to get the date range of the current view whenever the scheduler component loads and whenever the user changes the view or changes the date by the navigation button (next, prev, date picker). I need to know the start and end date which is visible on the scheduler. I am able to know the view name by using onViewChange callback and default date by using onDateChange which is giving me the default selected date but I want the whole range (start to end), I am using class-based components.

Scenario: Currently selected view is the month view and the default date is in the month of Feb 2023 so I need something which gives me the start date as Jan 29, 2023, and the end date as March 04, 2023.

Just like In the Jquery version of the scheduler, we get the required information by using the following function:

function scheduler_view_range(e) {
        var view = e.sender.view();

        // The view has:
        // A startDate method which returns the start date of the view.
        // An endDate method which returns the end date of the view.

        $(".console").append("<p>" + kendo.format("view:: start: {0:d}; end: {1:d};", view.startDate(), view.endDate()) + "</p>");
    }
Wissam
Telerik team
 answered on 28 Feb 2023
1 answer
123 views

Hi.

I am working with the Scheduler component and I display the WeekView in full day mode. Is there a possibility, that I can somehow achieve to automatically scroll to the work hours when the Scheduler opens? (see attached screenshot)

I know that I can limit the view to show the work hours only but that is not what I want. I just would like to achieve that our users don't have to scroll down everytime the Scheduler opens to see the work hours. Same behavior would be desirable in DayView.

Any help would be appreciated.

Thanks,

Bernd

Konstantin Dikov
Telerik team
 answered on 28 Feb 2023
1 answer
178 views

After server-side validation, I am calling forceUpdate() to update the UI.

But, this isn't "wired" to the FormSubmitClickEvent isValid - or at least not in the same time frame as the onStep function.

Is there a way to tie server-side validation in with FormSubmitClickEvent isValid? Since this process is asynchronous, I'm guessing it will be challenging.

 

... Called after server-side validation to update the UI - this works

setTimeout(() => {
formRef.current.forceUpdate();
});

 

... Called when user clicks the "next" button on the multi-step screen

const onStepClick = React.useCallback(
(event: FormSubmitClickEvent) => {
Filip
Telerik team
 answered on 27 Feb 2023
1 answer
86 views

Let's say we have a grid displaying orders: Order ID, Customer Name, Product Name. The grid is displaying the "ProductName" but filtering needs to be done by "ProductID". If we have thousands of products, we don't want to populate the combobox with everything, but instead might want to use remote data (filtering/virtualization). Most examples I find assume there is local data in some json file. How can we implement a custom grid filter cell that has a combobox that uses remote data?

My understanding is that the filter row is stateless and controlled by the grid. If I implement a custom combobox with remote data as soon as I filter the grid via the GridFilterCellProps onChange, the filter cell state is lost (so no more loaded data matching the selected item) and appears that nothing is selected even though a filter is applied.

I've tried to store the state outside of the filter cell, but I can't seem to get it right. Anyone else have any luck doing something like this?

Konstantin Dikov
Telerik team
 answered on 27 Feb 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?