Telerik Forums
KendoReact Forum
6 answers
961 views

Hi, 

I'm trying to export my grid to excel. I'm dynamically building the columns, but they don't get exported unless I hardcode them. 

let columns = [],
        columnNames = [];
        if (!this.state.gridColumns) return;
        this.state.gridColumns.forEach(
            (column, index) => {
                columns.push(
                    <ExcelExportColumn key={index} field={column.name} title={column.name}/>
                );
                columnNames.push(column.name);
            }
        );
 
        return (
            <ExcelExport
                columns={columnNames}
                data={this.state.gridData}
                fileName="test.xlsx"
                ref={(exporter) => {
                    this._exporter = exporter;
                }}
 
            >
                <button
                    title="Export Excel"
                    className="k-button k-primary"
                    onClick={this.export}
                >
                    Export to Excel
                </button>
                
            </ExcelExport>
Jon
Top achievements
Rank 1
 answered on 23 Jan 2019
3 answers
72 views

Hi,

 

 I have integrated DateTimePicker wrapper and build the project locally, it seems to be working fine.

 

However, we have automated process to generate build through Jenkins and when we tried to generate the build it throws attached error

 

Please help

Stefan
Telerik team
 answered on 23 Jan 2019
2 answers
158 views
We are having issues with column cells aligning properly when using grouping on a grid that contains custom cells.  I found an example that shows the issue based on a previously supplied example on this form for showing how to use the features together: https://stackblitz.com/edit/react-we8fax-pmvw9o?file=app/main.js.  Basically the cells of the grouped rows are smaller than the headers and there is additional space coming at the end of those rows.
James
Top achievements
Rank 1
 answered on 22 Jan 2019
3 answers
1.1K+ views

Hi,

Is it possible to have a DatePicker without any placeholder, just an empty text-box.

 

Thanks,

Zarko

Stefan
Telerik team
 answered on 22 Jan 2019
1 answer
306 views

Hi,

We are using Kendo Editor React Wrapper.

Is there an option to have Find/Replace button and pop-up in editor? That is a useful feature for user if the text they are editing is long.

 

Thanks,

Zarko

Stefan
Telerik team
 answered on 22 Jan 2019
3 answers
59 views
What is the event that should be used to react to a click event for a toggleable button.  OnClick does not work and there does no appear to be a toggle event like JQuery or selectedChange event for Angular.
Stefan
Telerik team
 answered on 18 Jan 2019
1 answer
235 views

I have a grid with a column format {0:d} when passing in a null value its returning 12/31/1969.

<GridColumn

key= {"InvoiceDate"}
title= {"Inv Date"}
width= {85},
show= {true}
format= {"{0:d}"}
}

Any suggestions? 

Stefan
Telerik team
 answered on 18 Jan 2019
1 answer
245 views

I copied the window component from the example(https://www.telerik.com/kendo-react-ui/components/dialogs/window/) and wanted to build a form on top of the window component. The drop down list of values is showing behind the window. I tried adjusting the z-index but was unsuccessful. I have attached an example of what i'm seeing. The only additional code I added to the example is shown below. "values" is an array of values from 1-20.

 

<label class="k-form-field">
    <span> Dropdown </span>
    <DropDownList data={this.values} />
</label>
Stefan
Telerik team
 answered on 17 Jan 2019
34 answers
365 views

We have applied a custom style to grid cells as below,

<Column key={groupArray[0]} title={currentTabColumns[groupArray[0]]} width="148px" field={groupArray[0]} cell = {RerValue} />

 

the extended class is as below,

export default class RerValue extends GridCell {
render() {

const style = {
backgroundColor: 'red'
};

return <td style={style}> {data} </td>;

}

 

but now the editing stops. If we remove the custom style the editing works.

Please guide us on how to make this work.

Sandeep
Top achievements
Rank 1
 answered on 11 Jan 2019
3 answers
536 views

I need to offer the user a "Reset Grid" Button that they can use to reset the grids column widths back to their original values where all columns neatly fit in the viewable area.

I'm doing this in React and Redux based app and we have one column that doesn't have a width, call it the flex column, as we want the grid columns to sick to the edges of the grid and have the flex column adjust in size so all the columns fit perfectly. This works great on initial load. However if the user adjust columns so the width is wider than the grids viewable area and the grid shows a horizontal scroll bar then when the user clicks "Reset Grid" and we give the grid the original column configuration (same one we gave it originally which worked at that time with the flex column not having a width) the grid is fit to the width of the horizontal scrollable area and not of the viewable area meaning we still have horizontal scroll bars and the columns aren't all in view.

How do we accomplish reset like in the older grid and shown here: https://plnkr.co/edit/htk7JcHcWn4Vq8ok4T8l?p=preview

Stefan
Telerik team
 answered on 11 Jan 2019
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?