On going to build my grid (which works fine when viewing on workbench) I get the following
NonErrorEmittedError: (Emitted value instead of an instance of Error) Cannot find source file '../../../src/Localization/main.ts': Error: Can't resolve '../../../src/Localization/main.ts' in 'C:/dev2019/WebParts/GraphGrid/node_modules/@progress/kendo-react-intl/dist/es/Localization'
at emitWarning (C:/dev2019/WebParts/GraphGrid/node_modules/webpack/lib/NormalModule.js:117:16)
at C:/dev2019/WebParts/GraphGrid/node_modules/source-map-loader/index.js:80:7
at onError (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/Resolver.js:65:10)
at loggingCallbackWrapper (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at runAfter (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
at innerCallback (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/Resolver.js:146:3)
at loggingCallbackWrapper (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (C:/dev2019/WebParts/GraphGrid/node_modules/tapable/lib/Tapable.js:252:11)
at C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:40:4
at loggingCallbackWrapper (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
@ ./node_modules/@progress/kendo-react-intl/dist/es/main.js 2:0-36
@ ./node_modules/@progress/kendo-react-grid/dist/es/GridNoRecords.js
@ ./node_modules/@progress/kendo-react-grid/dist/es/main.js
After looking around on the git issues I came across
https://github.com/telerik/kendo-react/issues/126
which seemed to be my issue.
So I followed this
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/toolchain/extending-webpack-in-build-pipeline
so I could edit the configure webpack.
so my Gulpfile.js looks like
build.configureWebpack.mergeConfig({
additionalConfiguration: (generatedConfiguration) => {
generatedConfiguration.module.rules.push(
{
enforce: 'pre',
test: /\.js$/,
loader: "source-map-loader",
exclude: [
/\/node_modules\//
]
}
);
return generatedConfiguration;
}
});
But I still get all of my errors
Please can anyone give some help on this.
Hi,
I have implemented auto complete control inside the grid. I am facing issue when I tries to remove record using backspace.
For example
I Selected the record from Autocomplete, now I am pressing backspace. As soon as I press backspace, call goes to method and it updates the state, Which causes focus to the lost. Is there any way to retained a focus?
Regards,
Parag
Hi,
1) Is there any property available in grid to show and hide entire grid?
2) Is there any way to dynamically add column in grid? For example : I want to provide pop up box where will provide column list apart from the column which exist in the grid and on selection of those column, it should directly get added in grid.
Regards,
Parag
Hello,
I would like to use the Window Kendo React component: https://www.telerik.com/kendo-react-ui/components/dialogs/window/.But i noticed that I cannot enter any text in input fields ?
Am I missing something ?
Best regards,
Jean-Pierre
In a current scenario we were working through where we have a groupable / sortable grid that allows inline editing, we wanted to be able to keep the currently selected row in focus even after the user might have changed a value that effects the groupable / sortable criteria, thus causing a re-positioning of the row. The current documented examples provided an option for looping through the data to set/unset a selection tag, but this seems problematic with the way grouping changes the data into a hierarchical structure (we do not force a grouping so sometimes the data will be flat).
Two things would have helped our situation since we are only allowing one row to be selected at a time: either a setting on the grid that only allowed for single row selections (and so thus we wouldn't have to loop the data to un-set the flag for all rows manually), or a clearSelection method that would automatically clear the flag for all rows. In both of those examples we would only have to deal with setting the current row's selection flag. In addition, both of those types of functionality are available with other Kendo technologies (e.g. jQuery)
Did I overthink this issue and there is actually a better way of solving this issue?
Hi, is there a way i can customize the paging options style? The default is we have the page selection on the left, number of Items per page selection in the middle and the total records info on the right. I would like to just reverse it. I tried a display flex on the container and a flex-direction: reverse but it reverses the paging icons also. Please advise.
Hi, can someone provide an example of a React Grid with Paging, Filter and Sort implemented together. Filter and sort have to work throughout the whole dataset and not just on the visible values alone. Please advice.
Example stackblitz - My implementation
Hello!
There are some cases, when it's necessary to cancel columns reordering. For example it's necessary for the case, when a user tries to move a column with "reorderable: true" to the left of a column with "reorderable: false".
Now the Grid component changes the columns ordering and then notifies about the change by calling "onColumnReorder" handler.
Please, look at this example.
Hi
Just running into a couple issues while using the kendo react grid.The data is coming from Microsoft Graph Api.
First Issue - Date cell
Ive three date cells in my grid. To format the dates Ive used the below, however if use the following "//const value = this.props.dataItem[this.props.field];" rather than the cell name it doesn't return. I would like to keep KendoGridDdateCell generic so I can pass in all three fields. (Is this the correct way to format the cells - the data type is string and then formatted to a date.
class KendoGridDdateCell extends GridCell{
render() {
const value = formatDate(new Date( this.props.dataItem.fields.MYDATEFIELD), "dd MMM yyyy")
// const value = this.props.dataItem[this.props.field];
return (
<
td
>
{formatDate(new Date(value), "d")}
</
td
>
);
}
}
Second Issue -Filtering
Ive set up filtering and it works for text no problem. However when I go to click on the date cell I get the following
TypeError: Cannot set property 'getCurrentStack' of undefined
sp-webpart-workbench-assembly_en-ie_2fc6beb1ff004c370718034a6380ed93.js:190
[[StableObjectId]]:1
message:"Cannot set property 'getCurrentStack' of undefined"
stack:"TypeError: Cannot set property 'getCurrentStack' of undefined\n at setCurrentDebugStack
Sample from Grid
<
Column
field
=
"fields.myDateField"
title
=
"Date"
filter
=
"date"
cell={KendoGridDdateCell} />
<
Grid
data={filterBy(this.state.gridData, this.state.filter)}
filterable
filter={this.state.filter}
onFilterChange={this.onFilterChange}
>
public onFilterChange=(event) => {
this.setState({
filter: event.filter
});
};
Also when I do filter how to I update the grid totals and paging?
Question Three
Eventually on the grid I want to have sorting, paging, filtering and grouping all on the one grid. Is there a precedence that should be followed?
<Grid
data={filterBy(orderBy(this.state.gridData, this.state.sort),this.state.filter).slice(this.state.skip, this.state.take + this.state.skip)}
Question Four - Exporting Excel
I have the excel exporting working - however its only exporting visible columns - is it possible to specify the specific columns that you want in the export?
Id appreciate any help on the above
Many thanks in advance
Lori