Telerik Forums
KendoReact Forum
1 answer
96 views

Hi all,

Please refer to this sample: https://stackblitz.com/edit/react-gfiaun?file=app/main.tsx

I am facing an issue whereby the controlled component does not update accordingly if the props are passed in via Field Prop. 

In Field test1, the controlled component works as intended.

In Field test2, the controlled component does not work as expected, even though onHandleChange2 is still being executed and the value is still been set as seen in console. 

I would like your advice on why this happens. Thank you!

Stefan
Telerik team
 answered on 21 Feb 2022
1 answer
346 views

I'm trying to prevent headerGroup rows from rendering based on certain conditions.

When I try to utilize rowRender for this purpose, I can't make it work because it controls only the render of cells within the row. Returning null and <td></td> don't work (the row still renders but with nothing in it or with empty cells).

Is there any way I can target the row instead of the cells? I would even take being able to simply add a class to the row to hide it from the user with CSS.

I can't target the row with the row:empty CSS selector because the groupHeader rows come with k-group-cell cells already rendered before the renderRow even starts rendering custom cells.

Did I overlook anything that Kendo offers? Thank you!

Konstantin Dikov
Telerik team
 answered on 21 Feb 2022
1 answer
583 views

Hi there,

Im trying to use custom headers, but column menus doesnt show, theres an exemple
 https://stackblitz.com/edit/react-egavx9?file=app/main.jsx
In older version (4.8.0) for exemplo this work perfectly, an exemple here : 
https://stackblitz.com/edit/react-egavx9-xur51f?file=app/main.jsx

Is it a bug?, or there are new way to do this ?

best regards,
Gabriel.

Konstantin Dikov
Telerik team
 answered on 18 Feb 2022
1 answer
135 views

After looking through all of the Scheduler documentation, every example shows the time slots being displayed vertically.

The only horizontal orientation appears to be when grouping, but is only on those grouped fields.

Is it possible to attain something like the picture attached?

Stefan
Telerik team
 answered on 18 Feb 2022
1 answer
330 views
Hey there,

I have a question related to Data Grid. 
I'm using mobx to store data for Data Grid, and also the store contains some computed values used by Data Grid Columns.
When I use DataGridColumn component as a direct child of DataGrid it works fine, but when I try to extract the column to separate component, the columns don't render properly.

import { provider, useInstance } from 'react-ioc';
import { observer } from 'mobx-react-lite';
import { Grid, GridColumn } from '@progress/kendo-react-grid';
import Store from './store';

const CustomDataGridColumn = observer(() => {
   const store = useInstance(Store);

   return <GridColumn title={`Title (${store.counter})`} />;
});

const CustomDataGrid = observer(({children}) => {
   const store = useInstance(Store);

   return (
      <Grid data={store.data}>
         {children}
      </Grid>
   );
});

const App = provider(Store)(() => (
   <CustomDataGrid>
      <CustomDataGridColumn />
  </CustomDataGrid>
));


The code above is simplified, but I hope that it is enough to explain the issue. Is there a way to make it work?
I've figured out that CustomDataGridColumn requires displayName = "KendoReactGridColumn", but it still doesn't work. My guess is that is caused by the observer because it wraps the component with the React.memo.

Stefan
Telerik team
 answered on 18 Feb 2022
1 answer
1,000 views
how to use click outside in dialog, please give an example
Konstantin Dikov
Telerik team
 answered on 17 Feb 2022
1 answer
722 views
I am trying to stop the NumericTextBox  Scroll Wheel from changing the value in the Text Box.  
Stefan
Telerik team
 answered on 16 Feb 2022
2 answers
962 views

Hello, I have a problem when using DatePicker in the dialog. In the small height screen devices, the DatePicker does not show fully. Please help me if you know how to fix it, thanks!

Khan
Top achievements
Rank 1
Iron
 updated answer on 16 Feb 2022
1 answer
155 views
I'm using react kendo dialog but why am I getting a dark background screen, even though if I inspect the element style of kendo react it's correct.
Please help with the solution
Stefan
Telerik team
 answered on 16 Feb 2022
1 answer
164 views

I'm looking for a usable pattern for putting a <Form> in a <Dialog>. the Submit button should be in the <DialogActionsBar> but I'm not sure how to get the Form's `valid` state outside the form...

Ideally you could do:


<Dialog>
  <Form render={({valid}) => {
      return (
        <FormElement>
          ... some form inputs here ...

          <DialogActionButtons>
            <Button type="submit" disabled={valid}>Submit</button>
          </DialogActionButtons>
        </FormElement>
      );
    }}
  />
</Dialog>

But of course that dos not work because the <DialogActionButtons> ends up being at the wrong place in the DOMso the styling doesn't work right.

-----

You can get the submit button working correctly by using the standard HTML `form` attribute on the `button` like this:


<Dialog>
  <Form render={({valid}) => {
      return (
        <FormElement id="formId">
          ... some form inputs here ...
        </FormElement>
      );
    }}
  />

  <DialogActionButtons>
    <Button type="submit" form="formId" disabled={???}>Submit</button>
  </DialogActionButtons>
</Dialog>

But now there is no way to get the `valid` form prop out to the Button's disabled prop.

 

-----

 

You may think to do:


const [formValid, setFormValid] = React.useState(false);

<Dialog>
  <Form render={({valid}) => {
      setFormValid(valid);

      return (
        <FormElement id="formId">
          ... some form inputs here ...
        </FormElement>
      );
    }}
  />

  <DialogActionButtons>
    <Button type="submit" form="formId" disabled={formValid}>Submit</button>
  </DialogActionButtons>
</Dialog>

but this is technically not valid and will produce a warning/error from React:

"Cannot update a component (`TestComponent`) while rendering a different component (`KendoReactForm`)."

Is there a known pattern for making this work

Konstantin Dikov
Telerik team
 answered on 15 Feb 2022
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?