Telerik Forums
KendoReact Forum
2 answers
412 views

hi,

I am using KendoReact grid and paging and have a grid something like below. we have some filters outside the grid that are applied on grid. And we are using react-redux to preserve the filters state so that grid can be recreated again as per the filters selected on redirection.

can we also add the pagesize to redux so that its value can also be preserved and the same number of records remain selected or shown on redirection.

I am not sure if there is any event that we can use for this purpose. any help will be appreciated.

<Grid
          sortable
          filterable
          resizable
          reorderable
          pageable={{
            buttonCount: 4,
            pageSizes: [10, 20, 50, 100, formsList.length],
          }}
          data={process(formsList, dataState)}
          {...dataState}
          onDataStateChange={(e) => {
            setDataState(e.data);
          }}
          cellRender={customCellRender}
          headerCellRender={customHeaderRender}
        >
          {user && isAuthenticated && user.isAdmin && (
            <GridToolbar>{getFormFilters()}</GridToolbar>
          )}
          <GridColumn field="formNumber" title="Number" />
          <GridColumn width="300px" field="formTitle" title="Form Title" />
          <GridColumn
            width="200px"
            field="formattedRevisionDate"
            title="Revision Date"
            headerClassName="text-wrap"
            filter={"date"}
            format="{0:M/d/yyyy}"
          />
          <GridColumn field="formStatus" title="Status" />
          <GridColumn field="notes" title="Notes" />
          <GridColumn field="responsibleOffice" title="Office" width="175px" />
          <GridColumn
            field="procedureNumber"
            title="Procedure"
            cell={procedureCell}
          />
          <GridColumn
            title="Available Formats"
            field="attachmentTypes"
            cell={attachmentsCell}
            headerClassName="text-wrap"
          />
          <GridColumn
            filterable={false}
            sortable={false}
            title="Actions"
            cell={actionsCell}
          />
        </Grid>

 

Gaurav
Top achievements
Rank 1
 answered on 14 Jan 2021
6 answers
876 views
Hello, I am using react js , please take a look at my screenshots. The height value is not rendering in the webpage at all, I am not sure what value to use. Pls help in this case what value to use
Stefan
Telerik team
 answered on 14 Jan 2021
1 answer
168 views

Hello,

 

I'm trying to wrap GridColumn using high order component. I'd like to make reusable columns within our solution that are enhanced towards our needs.

However, I'm not able to get KendoReact Grid to display data when I try this approach.

I've put example of what I'm trying to do here:

 

https://stackblitz.com/edit/kendoreact-grid-hooks-pvhvv7?file=app/main.jsx

 

Thanks in advance for help!

Best regards,

Arek

Stefan
Telerik team
 answered on 13 Jan 2021
9 answers
354 views

I have the following script error while rendering Kendo react component with SyestemJS. I have attached the script error image below.

 

system.config.js

// map tells the System loader where to look for things
    map: {
      'react': 'https://unpkg.com/react@16/umd/react.production.min.js',
      'react-dom': 'https://unpkg.com/react-dom@16/umd/react-dom.production.min.js',
      'prop-types': 'https://cdnjs.cloudflare.com/ajax/libs/prop-types/15.7.2/prop-types.min.js',
      '@progress/kendo-date-math': 'https://unpkg.com/@progress/kendo-date-math@dev/dist/cdn/js/kendo-date-math.js',
      '@progress/kendo-drawing': 'https://unpkg.com/@progress/kendo-drawing@latest/dist/cdn/js/kendo-drawing.js',
      '@progress/kendo-react-intl': 'https://unpkg.com/@progress/kendo-react-intl@latest/dist/cdn/js/kendo-react-intl.js',
      '@progress/kendo-react-buttons': 'https://unpkg.com/@progress/kendo-react-buttons@3.14.0/dist/cdn/js/kendo-react-buttons.js'
    }

I have also attached a sample for your reference. Please help me react component using CDN links and SystemJS. Without kendo components, this project works fine. 

 

 

Aryan
Top achievements
Rank 1
 answered on 13 Jan 2021
11 answers
337 views

HI, 

I am working with the spreadsheet wrapper component. I found an issue where I was not able to insert a new row into s sheet.

I created a sheet with some data in it using a spreadsheet component, downloaded it and uploaded it into another spreadsheet component. Now after uploading it into the second component I am not able to insert a new row to that sheet.

I don't have data in the last row, but still it is throwing me an error saying "Cannot insert cells due to data loss possibility. Select another insert location or delete the data from the end of your worksheet."

Also to make it work, I have to delete rows from bottom of my sheet and then I can insert the same amount of rows anywhere in the sheet.

Please let me know if this is the expected behaviour or it's an actual issue.

If it's the expected behaviour is there a possible way so I don't have to remove all the rows from the bottom of the sheet and I can insert rows?

 

Thank you.

Stefan
Telerik team
 answered on 12 Jan 2021
7 answers
282 views

Hi,

 

Does the GridColumnMenuCheckboxFilter have virtual scrolling? Or is there a way to enable or add it?  Thanks.

 

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnMenuCheckboxFilterProps/

Thanks.

Stefan
Telerik team
 answered on 12 Jan 2021
1 answer
1.7K+ views

Hi Stefan,

Onclick event (when the user clicks on a date picker Icon) is not firing in DatePicker and DateTimePicker. i.e <DatePicker onClick={onClick} onChange={onChange} />

 

Stefan
Telerik team
 answered on 11 Jan 2021
1 answer
137 views

Hi,

I have a grid where column A takes the size of an array and, depending on if the status in column B is right, outputs the array's length. If the status is not right, the output is a -. When I sort, the underlying value from the field is sorted, whereas I want the cell's value to be sorted. The column may look like this:

5

3

-

6

-

4

and I would want it to sort to 

6

5

4

3

-

-

 

Currently it sorts to because the underlying value of the - is 6 and 4

6

-

5

4

-

3

 

Is there any way to sort by the cell and not the field? 

Stefan
Telerik team
 answered on 08 Jan 2021
1 answer
242 views

Hi,

I would like to ask about one thing on which I could not find exact answer. According to documentation, one of requirements for virutal scrolling is to set height property on grid. What about a case when I'd like to have dynamic height - take all space left(e.g. by flex: 1). From what I checked still height is needed(but can be set just to 100%, then flex can take care about filling remaining space). From what I checked with adjusting example from documentation it seems to work: 
https://stackblitz.com/edit/react-kgfbgg-risfhh?file=app%2Fmain.jsx

I would like to use this approach as base for all grids in application - is it correct way to go?

Stefan
Telerik team
 answered on 07 Jan 2021
1 answer
197 views

 

 

As I go through and implement + style the KendoReact controls for use in our dynamic forms, would you like me to report any "bugs" I may find in the forum or is there a better place?

What I found today was a styling issue. I noticed that the NumericTextBox didn't look the same as the other inputs when focused. At first, I figured it was because of some kind of SCSS shenanigans that I've been fighting, but then I realized that .k-state-focused wasn't applied.  As soon as I manually did it via Chrome DevTools, it looked exactly as expected.

Here's an example: https://stackblitz.com/edit/react-s8ugrr-vnxuc1?file=app/main.jsx

As you tab thru, you'll see that all controls except the NumericTextBox apply the box shadow.

 

Thanks again,
Kyle

Stefan
Telerik team
 answered on 07 Jan 2021
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
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
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?