Telerik Forums
KendoReact Forum
1 answer
91 views

Hi,

Do we have any combine control for datetime picker? I checked in website and found that there are two different controls one for date and one for time i.e. datepicker and timepicker.

But in my case, I want only one control where I can add date and time manually as well as through calender and time selector.

Regards,

Parag

 

 

Stefan
Telerik team
 answered on 07 Jan 2019
2 answers
660 views

I am working with a kendo react grid, and i need to implement to open a menu by right clicking on any cell.  By using onContextMenu on the cell render, I am able to open a popup:

cellRender(tdElement, cellProps) {
        const dataItem = cellProps.dataItem;
        const field = cellProps.field;
        const additionalProps = (cellProps.dataItem[this.editFieldName] && (cellProps.field === cellProps.dataItem[this.editFieldName])) ?
            {
                ref: (td) => {
                    const input = td && td.querySelector('input');
                    if (!input || (input === document.activeElement)) { return; }
                    if (input.type === 'checkbox') {
                        input.focus();
                    } else {
                        input.select();
                    }
                }
            } : {
                onClick: () => { this.enterEdit(dataItem, field); },
                onContextMenu: (e) => { e.preventDefault(); this.onContextMenu(e, dataItem, field); }
            };
        return React.cloneElement(tdElement, { ...tdElement.props, ...additionalProps }, tdElement.props.children);
    }

...

Is it possible for a Popup to detect that it has lost the focus, and then set show property to false ?

Best regards.

PS: Maybe there is a better solution to implement a context menu ?

 

 

Jean-Pierre
Top achievements
Rank 1
 answered on 04 Jan 2019
3 answers
354 views

I have seen a real time chart demo for Kendo UI for Jquery

https://www.telerik.com/forums/redraw-in-real-time

https://demos.telerik.com/kendo-ui/chart-api/benchmark

Is there a similar example of a real time chart for the Kendo Components for React?

Stefan
Telerik team
 answered on 04 Jan 2019
1 answer
341 views

Hello Telerik,

  I need insert multiselect in dialog, but result not fine: https://stackblitz.com/edit/react-2dnqba?file=app/main.js , because multiselect dropdown is show under dialog window. How do I do it?

  Thank you Pavel

Stefan
Telerik team
 answered on 03 Jan 2019
2 answers
1.4K+ views

Hello,

I want to display a kendo react grid with in cell editing. Two of these columns should display a dropdown list when cells are editing. I cannot make it work. I started with:

https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-in-cell/:

And then added a custom cell based upon: 

https://stackblitz.com/edit/react-grid-dropdown-editor

My issue is that when i click on any cell of on of these two "special" columns, nothings happens.

The grid is defined by:

return (
            <div>
                <Grid
                    data={this.state.data}
                    onItemChange={this.itemChange}

                    cellRender={this.renderers.cellRender}
                    rowRender={this.renderers.rowRender}

                    editField="inEdit"
                >

....

               <Column field="TypeMO" title="TypeMO" cell={(props) => <CustomCell {...props} values={this.state.derogDataValues} />} />

....
                </Grid>

....

The custom cell is defined by 

export default class CustomCell extends GridCell  {
    handleChange(e) {
        this.props.onChange({
            dataItem: this.props.dataItem,
            field: this.props.field,
            syntheticEvent: e.syntheticEvent,
            value: e.target.value
        });
    }

    render() {
        const dataValue = this.props.dataItem[this.props.field];

        if (!this.props.dataItem.inEdit || this.props.dataItem.inEdit !== this.props.field) {
            return (
                <td>
                    {!dataValue || dataValue === null ? '' : dataValue.toString()}
                </td>
            );
        }

 

       return (
            <td>
                in edit
            </td>
        );

}

"in edit" is never displayed.  

I must be missing something obvious :)

 

 

 

Jean-Pierre
Top achievements
Rank 1
 answered on 31 Dec 2018
2 answers
485 views

Hi,

Whenever I am trying to export grid to PDF, I am not able to export the rows and columns that are hidden by scroll.

I am using following library.

 import { PDFExport as GridPDFExport } from '@progress/kendo-react-pdf';

 

please go through the attached screenshot.

 

Also I need your help to understand, how shall I keep first column Freeze in react grids.

 

Thanks,

Vikrant

Stefan
Telerik team
 answered on 25 Dec 2018
1 answer
551 views

Hi there, I have several quastions. 

1) How I can block manual data change in input and key down events. Leave only one way to change data by mouse click.
2) How I can show previous days in month, instead empty fields we will show days from previous month but their color will be gray.
3) How I can  disable days in currrent month till today?

Stefan
Telerik team
 answered on 24 Dec 2018
2 answers
90 views
Hi there,

Here is the example that I’m trying to run on my local environment:

https://www.telerik.com/kendo-react-ui/wrappers/gantt/

and here is the errors I’m getting:

./src/app/main.js
  Line 61:   'kendo' is not defined  no-undef
  Line 82:   'kendo' is not defined  no-undef
  Line 110:  'kendo' is not defined  no-undef
  Line 131:  'kendo' is not defined  no-undef

I’m not sure what am I missing.

Here are the steps

OPEN IN STACKBLITZ
Download project
Unzip it
Inside the project directory run “npm install”. This install all dependency into node_modules.
Run “npm start” which starts the server with the errors above.

Some more relate info.
In my Visual Studio I could Ctrl-click on the each of the “kendo.data.GanttDataSource” and it navigates me to corresponding element in kendo-ui module.
In my Visual Studio there is a following error on “import '@progress/kendo-ui';”:
“Exported external package typings file '/home/anabramo/workspaces/dps-ws/repo/code/design-hub-web-poc/pxn5bq.run/node_modules/@progress/kendo-ui/index.d.ts' is not a module. Please contact the package author to update the package definition.”

Would you please advise.

Thanks,
Andrew
Andrew
Top achievements
Rank 1
 answered on 21 Dec 2018
3 answers
112 views

For example I need to customize appearance of DropDownList component. I can pass className property to this component, but styles for elements inside this component will be overwritten by defaults anyway.

I can pass custom components in itemRender property to override default appearances, but those are only injected inside default styled one instead of overwriting it.

The only way that's working for me now is to override default styles in css with !important, but that's an anti-pattern I'd like to avoid in a large scale commercial project. I can't find any detailed information in the documentation, examples cover only a fraction of cases, and other cases are not analogical.

Am I missing something obvious? Thanks!

Stefan
Telerik team
 answered on 19 Dec 2018
1 answer
637 views

In the jQuery UI version of the kendo Multi Select component, you can disable the autoclose, but it doesn't seem to work for a component. I don't want the  to close after someone selects something.

 

$("#multiselect").kendoMultiSelect({
        autoClose: false,
        highlightFirst: true,
        deselect: function(e){
          setTimeout(function(){
            if(!e.sender.value().length){
              e.sender.list.find('.k-state-focused').removeClass('k-state-focused');
              e.sender.list.find('li.k-item').first().addClass('k-state-focused');
            }
          });
        }
      });

 

 

Stefan
Telerik team
 answered on 11 Dec 2018
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?