Telerik Forums
KendoReact Forum
3 answers
31 views

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

 

Stefan
Telerik team
 answered on 19 Feb 2019
3 answers
326 views

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

Stefan
Telerik team
 answered on 19 Feb 2019
2 answers
457 views

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?

Stefan
Telerik team
 answered on 18 Feb 2019
1 answer
75 views

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.

 

Stackblitz URL

Stefan
Telerik team
 answered on 18 Feb 2019
2 answers
1.5K+ views

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
Stefan
Telerik team
 answered on 15 Feb 2019
1 answer
238 views

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.

Stefan
Telerik team
 answered on 15 Feb 2019
2 answers
89 views

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

 

Stefan
Telerik team
 answered on 15 Feb 2019
5 answers
288 views
In our React application, we use react-advanced-form to develop forms. It's handy for quickly composing a form with validation. I am using the KendoReact Grid with inline editing. I couldn't find much documentation on GridRow or templating for it. Is there a way for me to wrap a row that is in edit mode in my own (or a third party's) <Form /> component?
John
Top achievements
Rank 1
 answered on 14 Feb 2019
3 answers
142 views

Hi,

I am using Kendo tooltip and below is the scenario

I have button with tooltip applied. When button is in disabled state it is showing browser tooltip instead of Kendo. When button got enabled it is working as per expectation. 

Below is the screenshot for same.

1) Screenshot 1 - Browser Tooltip

2) Screenshot 2- Kendo Tooltip

Is there any way to resolve this issue? It should show kendo tooltip whether  button is enabled or disabled.

 

Regards,

Parag

Stefan
Telerik team
 answered on 11 Feb 2019
1 answer
631 views

Hi, is there anyway to replace the Gird Column Menu directly with the filter component. Instead of having the three dots, replace it with a filter icon that can open up the filter panel. Picture attached. 

 

 

Stefan
Telerik team
 answered on 08 Feb 2019
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?