Telerik Forums
KendoReact Forum
3 answers
726 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
2 answers
736 views

I've run into an issue when using both grouping and a custom cell with a react grid. A new column seems to be created in the grouping row, and the other rows are pushed to the left, which causes the headers to no longer line up.

Here's a link to a fork of the grouping example from the docs, with a custom cell added that shows this: https://stackblitz.com/edit/react-t9ce44?file=app%2Fmain.js

Did I miss something, or is it bugged?

Spencer
Top achievements
Rank 1
 answered on 10 Jan 2019
1 answer
654 views

Hello,

In a react grid, i have an editable text field. I discovered that the whole grid was re-rendered after each keystroke. Depending on the size of the grid and its complexity, this may slow down the cell edition.   

Is it possible to only re-render the edited cell ? How can I speed up cell edition ?

Regards,

Jean-Pierre

Stefan
Telerik team
 answered on 10 Jan 2019
1 answer
179 views

Step to reproduce:

Case 1:
1. Go to documentation page: https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselect/filtering/
2. Type “ar” symbols

Actual result: Focused element is Bulgaria instead Armenia

Expected result: The first element in list focused - Armenia

Case 2:

1. Go to documentation page: https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselect/filtering/
2. Type “ary” - Hungary is suggested

3. Remove "y" to search "ar"

Actual result: There is no selected element
Expected result: The first element in list focused - Armenia

Is there a way to fix this behaviour?

Stefan
Telerik team
 answered on 09 Jan 2019
1 answer
121 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
717 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
392 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
378 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.5K+ 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
537 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
Narrow your results
Selected tags
Tags
General Discussions
Grid
Wrappers for React
Charts
Scheduler
Filter 
DropDownList
Form
Styling / Themes
DatePicker
Editor
TreeList
Styling
PDF Processing
ComboBox
Excel Export
Dialog
Input
TreeView
Upload
Drawer
Button
Drag and Drop
MultiSelect
Tooltip
Accessibility
NumericTextBox
Checkbox
Menu
Gantt
DateTimePicker
PDF Viewer
Popup
Window
AutoComplete
DateInput
Sortable
Data Query
Licensing
TabStrip
Drawing
Calendar
Pager 
Labels 
Localization
TimePicker
GridLayout
FontIcon
Animation
PanelBar
TaskBoard
PivotGrid
Card
DropDownButton
Conversational UI 
DateRangePicker
Splitter
Badge 
Security
Slider
Spreadsheet
ContextMenu
MultiViewCalendar
Stepper
MultiColumnComboBox
MultiSelectTree
TextBox
AppBar
File Saver
ListView
MaskedTextBox
RadioButton
Switch
TextArea
Toolbar
DropDownTree
TileLayout
Map
Avatar
Date Math
Gauge
RadioGroup
RangeSlider
Rating
Loader
ExpansionPanel
SvgIcon
Typography
ProgressBar
ScrollView
Popover
StockChart
RadialGauge
Server Components
AIPrompt
Page Templates / Building Blocks
AI Coding Assistant
Chat
ColorGradient
ColorPalette
ColorPicker
Notification
Ripple
Skeleton
ButtonGroup
Chip
ChipList
FloatingActionButton
SplitButton
ActionSheet
Barcode
QR Code
FlatColorPicker
Signature
BottomNavigation
BreadCrumb
StackLayout
Timeline
ListBox
ChunkProgressBar
Sparkline
FileManager
ArcGauge
CircularGauge
LinearGauge
ExternalDropZone
OrgChart
Sankey
VS Code Extension
InlineAIPrompt
SpeechToTextButton
Chart Wizard
Agentic UI Generator
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?