Telerik Forums
KendoReact Forum
2 answers
389 views
Hello!
I have a problem:
try to create ColumnMenu

import * as React from 'react';
import {GridColumnMenuSort, 
        GridColumnMenuFilter} from '@progress/kendo-react-grid';
class ColumnMenu extends React.Component {

    render() {

        return (
            <div>
                <GridColumnMenuSort {...this.props} />
                <GridColumnMenuFilter {...this.props} expanded={true} />
            </div>
        );         
    }  
}
export default ColumnMenu; 

but i have compile error:

No overload matches this call.
  Overload 1 of 2, '(props: Readonly<GridColumnMenuSortProps>): GridColumnMenuSort', gave the following error.
    Property 'column' is missing in type '{ children: false; }' but required in type 'Readonly<GridColumnMenuSortProps>'.        
  Overload 2 of 2, '(props: GridColumnMenuSortProps, context?: any): GridColumnMenuSort', gave the following error.
    Property 'column' is missing in type '{ children: false; }' but required in type 'Readonly<GridColumnMenuSortProps>'.

Is it able to use Kendo react Grid with TypeScript?
Alex
Top achievements
Rank 1
Veteran
 answered on 19 May 2020
6 answers
241 views

Selecting date from table filter popup causes to scroll left the table as you can see in my sample.

There is a "First Date" column on my table at the end of right side.

  1. Click the 3 dots next to "First Date" header, you will see the filter popup.
  2. Click the "Select Date" input and a DatePicker will be pops up.
  3. Choose a date from DatePicker.

When you follow these steps, you will see the table suddenly scrolls left and DatePicker closes.

When I remove the method 'GridPageChange' on line 148, table still scrolls to left but DatePicker does not close and I can select date.

If you realize my DatePicker has a time picker. When I select a day from calender, time picker scrolls to current time. I think it triggers the table scroll.

How can I prevent this happen?

https://stackblitz.com/edit/react-tukxso?embed=1&file=app/main.jsx

Stefan
Telerik team
 answered on 19 May 2020
3 answers
987 views

Hi,

Can I use custom scroll for kendo react grid.

I want to use this scroll package: https://www.npmjs.com/package/react-custom-scrollbars

Stefan
Telerik team
 answered on 19 May 2020
1 answer
190 views

The docs and and the d file states that there is a "PanelBarProps expanded? string[]" but there is no example.

Is there a way to use this to make all PanelBarItems start expanded?

Is this for something else?

Stefan
Telerik team
 answered on 18 May 2020
6 answers
188 views

Hello,

I use GridColumnMenuCheckboxFilter to filter my grid.

But today I realize return data of GridColumnMenuCheckboxFilter is different than I used to before.

Before on dataStateChange function data property of event parameter was:

{
 "filter":{
  "filters":
    [
      {"field":"city","operator":"eq","value":"ANKARA"}
    ],
    "logic":"or"
  }
}

 

Now it is:

{
"filter":{
  "filters":
    [
     {
      "logic":"or",
      "filters":[{"field":"city","operator":"eq","value":"ANKARA"}]
     }
    ],
    "logic":"and"
  }
}

 

 

Is return data of GridColumnMenuCheckboxFilter changed?

Stefan
Telerik team
 answered on 18 May 2020
3 answers
67 views

Hello,

is there somewhere a tutorial how to use the PDF Exporter from kendo-react-pdf to create a WCAG 2.0 compatible PDF?
Is that even possible?

Greetings Stephan 

Stefan
Telerik team
 answered on 18 May 2020
2 answers
204 views

ColumnMenu.tsx

/// <reference path="./ColumnMenu.d.ts"/>
 
import * as React from 'react';
import { GridColumnMenuFilter } from '@progress/kendo-react-grid';
 
export default class ColumnMenu extends React.Component<Readonly<ColumnMenuProps>, {}> {
    render() {
        return (
            <div>
                <GridColumnMenuFilter columnMenu={this.props.columnMenu} expanded={true} />
            </div>
        );
    }
}

 

I am importing this into my main class and using it here:

01.<Grid
02.    data={process(this.props.users, this.state.gridDataState)}
03.    {...this.state.gridDataState}
04.    onDataStateChange={this.handleGridDataStateChange}
05.    style={{ height: "300px" }}
06.    pageable={true}
07.    sortable={true}
08.>
09.  <GridColumn  field="email" title="Email" filter={'text'} columnMenu={ColumnMenu}/>
10.  <GridColumn  field="givenName" title="First name" />
11.  <GridColumn  field="sn" title="Last name" />
12.  <GridColumn  field="managerOf" title="Manager of" />
13.</Grid>

 

No matter how I try to run this, I get the same error:

1.TS2326: Types of property 'columnMenu' are incompatible.
2.Type 'typeof ColumnMenu' is not assignable to type 'ComponentType<GridColumnMenuProps>'.
3.Type 'typeof ColumnMenu' is not assignable to type 'StatelessComponent<GridColumnMenuProps>'.
4.Type 'typeof ColumnMenu' provides no match for the signature '(props: GridColumnMenuProps & { children?: ReactNode; }, context?: any): ReactElement<any>'.

 

Any idea how I get past this TS issue?

Stefan
Telerik team
 answered on 18 May 2020
3 answers
82 views
Hi, I have a TreeView with DropDownButton in custom rows and popups opening will break if I click through different DropDownButtons . I click on a button and no popup is displayed. Any suggestion what I did wrong? https://stackblitz.com/edit/react-s6l3qq
Matej
Top achievements
Rank 1
Veteran
 answered on 15 May 2020
1 answer
33 views

I want to retain column level filter when i switch across multiple view. I am able to retain filter for my data but that filter in not showing in grid column.

 

I want that user can see the applied filter in grid column too. IF filter is applied on multiple column he should see that too.

 

Regards,

Mukesh 

Stefan
Telerik team
 answered on 14 May 2020
1 answer
130 views

Hello,

Is there functionality range cell selection like this this jQuery example -https://demos.telerik.com/kendo-ui/grid/selection but for React Grid?

Is there cell range copy/paste functionality supported?

Stefan
Telerik team
 answered on 14 May 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?