Telerik Forums
KendoReact Forum
1 answer
653 views

I'm migrating KendoUI for jQuery to React. In jQuery version of Kendo Grid was possible to set "values" property to columns with "id" values.

In React version of the kendo grid, the "values" property for the GridColumn component is not available. How can I make the same like in jQuery version?

 

Thanks a lot for an each help.

Wissam
Telerik team
 answered on 10 Aug 2022
1 answer
6 views

I need a chart with x-axis as time and multiple y-axis stacked. One temp which is a range from 0 to 10 and humidity which is from 0 to 1. 

When I try to use ChartPane, I keep getting exception in my react code.

Here is the error:

ErrorBoundary.js:16 ErrorBoundary caught an error TypeError: Cannot read properties of undefined (reading 'map')
    at Object.collectionConfigurationItem (reducer.mjs:41:1)
    at u (reducer.mjs:9:1)
    at Object.c [as dispatch] (store.mjs:13:1)
    at s.dispatch (ConfigurationComponent.mjs:29:1)
    at s.componentDidMount (ConfigurationComponent.mjs:22:1)
    at invokeLayoutEffectMountInDEV (react-dom.development.js:25172:1)
    at invokeEffectsInDev (react-dom.development.js:27390:1)
    at commitDoubleInvokeEffectsInDEV (react-dom.development.js:27366:1)
    at commitRootImpl (react-dom.development.js:26922:1)
    at commitRoot (react-dom.development.js:26721:1) Object

 

Here is my component 

import * as React from 'react';
import {
  Chart,
  ChartSeries,
  ChartSeriesItem,
  ChartValueAxis,
  ChartValueAxisItem,
  ChartCategoryAxis,
  ChartCategoryAxisItem,
  ChartPane
} from '@progress/kendo-react-charts';
// Sample data
const categories = ['04/01/2024', '05/01/2024', '06/01/2024', '07/01/2024'];
const temperatureData = [20, 25, 30, 35];
const humidityData = [0.5, 0.6, 0.7, 0.8];
const MultiPaneChart = () => {
  return (
    <Chart>
      <ChartCategoryAxis>
        <ChartCategoryAxisItem categories={categories} />
      </ChartCategoryAxis>
      <ChartPane name="temperaturePane" />
      <ChartPane name="humidityPane" />
      <ChartValueAxis>
        <ChartValueAxisItem
          name="temperature"
          pane="temperaturePane"
          min={0}
          max={40}
          title={{ text: 'Temperature' }}
        />
        <ChartValueAxisItem
          name="humidity"
          pane="humidityPane"
          min={0}
          max={1}
          title={{ text: 'Humidity' }}
        />
      </ChartValueAxis>
      <ChartSeries>
        <ChartSeriesItem
          type="line"
          data={temperatureData}
          name="Temperature"
          axis="temperature"
          pane="temperaturePane"
          color="red"
        />
        <ChartSeriesItem
          type="line"
          data={humidityData}
          name="Humidity"
          axis="humidity"
          pane="humidityPane"
          color="blue"
        />
      </ChartSeries>
    </Chart>
  );
};

exportdefaultMultiPaneChart;

Vessy
Telerik team
 answered on 25 Jul 2024
1 answer
5 views
Hi i'm using kendo react gantt chart in one of my project, and i make a few custom component like the edit form, the week view with custom header cell

in a single tab its working fine, however, as soon as its hooked up with websocket connection and someone open the same page/component, it will start saying its invalid date, any idea why its happening?
is it the websocket that changed the valid date into invalid or the gantt chart is not compatible for multi user?

thanks
Konstantin Dikov
Telerik team
 answered on 25 Jul 2024
1 answer
7 views

Hello,

Can I open an external URL in a dialog box using Kendo React controls?

Thanks!

 

Yanko
Telerik team
 answered on 25 Jul 2024
1 answer
5 views

I'm having a similar issue to https://www.telerik.com/forums/license-activation-failed-for-react-project

For my deployed app, I'm getting this error in the console:

License activation failed for @progress/kendo-react-intl
No license found.
See https://www.telerik.com/kendo-react-ui/components/my-license/ for more information.

I've tried to fix it by doing:

- remove node_modules and package.lock.json

- Make a new npm install and activation

but this hasn't fixed the issue. I don't see the warning locally, only after it has been deployed. I have the following in my azure pipeline:

stages:
- stage: Test
  displayName: Test
  jobs:
  - job: Test
    displayName: Perform tests
    steps:
    - task: NodeTool@0
      inputs:
        versionSpec: '18.x'
      displayName: 'Install Node.js'

    - script: |
        npm ci
      displayName: 'Install dependencies'
...
    
    - script: |
        npx kendo-ui-license activate
      displayName: "Activate Kendo UI License"

    - script: |
        npm run build
      displayName: 'Build'

and can see the activation working when running the pipeline:

(INFO) Kendo UI: KENDO_UI_LICENSE environment variable not set
(INFO) Kendo UI: Reading license from "/agent/_work/2/s/kendo-ui-license.txt"...
(INFO) Kendo UI: License imported successfully.
Any idea what could be wrong?
Vessy
Telerik team
 answered on 24 Jul 2024
1 answer
9 views

I have created an SpFx web part with a kendo tabstrip and dopped it on a SharePoint page. Our 508 testing failed due to the fact that the tabstrip never shows that it's selected. In all the samples you can see a highlight around the control when you tab to it, but on a SharePoint page, it does not show.

I've tried to hack this using CSS to no avail. Some of the attempts are here:


  :global .k-tabstrip > .k-content:focus {
    outline: 1px !important;
    outline-style: dotted !important;
  }

  .k-tabstrip-items:focus {
    outline: 2px solid crimson !important;
    border-radius: 3px !important;
  }

  :global .k-item.k-active:focus-visible {
    outline: 2px solid crimson !important;
    border-radius: 3px !important;
  }

The Tab parent tag is below:

<TabStrip selected={ this.state.selectedTab } onSelect={ (e: any) => { this.setState({ selectedTab: e.selected }) } }>

Only significant scss is the inclusion of:  @import '~@fluentui/react/dist/sass/References.scss';

Is this expected behavior?

Konstantin Dikov
Telerik team
 answered on 24 Jul 2024
0 answers
6 views
Is there any possible way to make a dateRange easier to implement?currently it is possbile to achieve but that's very complicated way

for example in the gantt chart i want to display minimum 5 weeks in the weeks view
Nico
Top achievements
Rank 1
 asked on 23 Jul 2024
1 answer
14 views

Hi.

I'm using a bar chart and in the ChartValueAxisItem I'd like to add a title that has special characters in it. In HTML, examples would be something like this: 

m<sup>3</sup>
CO<sub>2</sub>

The issue is, that the title has to be a string and if I put the html tags there, it doesn't render them. How could I add something like this to the title parameter so that it renders correctly?

Thanks,

Greetings,

Bernd

 

 

Hetali
Telerik team
 answered on 19 Jul 2024
1 answer
14 views

hi ,

I am facing issue whenever slot content is too long it overlap with calendar cell below it.

It works well if we give height auto but as we cant scroll with height auto .. i tried to give maxheight to schedular it doesn't create properly aligned UI.

While if we click on any daycell it recalculate position and shows properly.

I have kept no of items per slot 50.

I am using schedularitem for showing custom content in monthview

Attaching screen shot FYI.

Let me know if more information needed.

Konstantin Dikov
Telerik team
 answered on 17 Jul 2024
1 answer
23 views

Greetings,

I am using Kendo UI pivot grid version: @progress/kendo-react-pivotgrid": "^6.1.1

I am using the usePivotLocalDataService() function for local data binding. I am rendering the default row and default column axes dynamically. 
I am toggling the views calling this usePivotLocalDataService() for each different view. Its updating the data field dynamically but not updating columnAxes and rowAxes. I even passed it dynamically through props, but it was displaying the same column and row axes, i.e., maped initially.

Here is the code:

<PivotGridContainer>
<PivotGrid
className={`pivot-table-container3`}
{...pivotProps}
row={CustomRow}
rowAxes={rowAxis.current}
columnAxes={colAxis.current}
cell={(props: any) => (
<CustomCell2
{...props}
myFunc={myFunc}
tableLabel={tableLabel}
page={tableType}
views={views}
/>
)}
ref={pivotgrid}
style={{
// height: state.loading ? 350 : undefined,
maxHeight: 500,
}}
/>
{show && <PivotGridConfigurator {...configuratorProps} />}
<PivotGridConfiguratorButton onClick={handleButtonClick} />
{state.loading && <Loader />}
</PivotGridContainer>

Konstantin Dikov
Telerik team
 answered on 17 Jul 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Michael
Top achievements
Rank 2
Iron
Wilfred
Top achievements
Rank 1
Alexander
Top achievements
Rank 2
Iron
Iron
Matthew
Top achievements
Rank 1
Iron
ibra
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Michael
Top achievements
Rank 2
Iron
Wilfred
Top achievements
Rank 1
Alexander
Top achievements
Rank 2
Iron
Iron
Matthew
Top achievements
Rank 1
Iron
ibra
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?