Telerik Forums
KendoReact Forum
2 answers
188 views

Hello!

How can i style a ColumnMenu control?
I dont want create a custm ColumnMenu control, just changed colors of element/ 

Could you get the styles names of ColumnMenu control or some exapmples of styling?

Thank you!

Alex
Top achievements
Rank 1
Veteran
 answered on 21 May 2020
3 answers
98 views

How do you write this in hooks style?

 

https://www.telerik.com/kendo-react-ui/components/editor/content/

 

using class references defies the point of hooks.

Stefan
Telerik team
 answered on 21 May 2020
2 answers
441 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
268 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
1.0K+ 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
232 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
218 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
95 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
250 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
110 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
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?