Telerik Forums
KendoReact Forum
0 answers
151 views

I want to change the upload icon in Drag&drop component  to    before uploading the file. 

 

&   after uploading the file

Abhishek
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 12 Mar 2024
1 answer
172 views

Before I was using

@use '~@progress/kendo-theme-default/scss/variables' as variables;

 

but recently after updating packages, I got jumped by a couple of errors saying there are no color variables in said file.
I found them in the dist folder but all those files also have

@import "all.scss";

 

at the end making me import whole scss files multiple times destroying all my overrides in previous files.

Is there any way I can import all Kendo theme variables to my scss files?

Zhuliyan
Telerik team
 answered on 12 Mar 2024
0 answers
130 views

I am having trouble navigating the grid with a screen reader using table navigation commmands. I think the problem might be my custom cells. Is there anything else that needs returned bessides tds? Here is an example of my grid.

```

<Grid data={transactions}>
        <Column field="name" title="Name" />
        <Column field="amount" title="Amount" format="{0:c2}" />
        <Column
          field="date"
          title="Date"
          cell={(props: GridCellProps) => (
            <td>{new Date(props.dataItem["date"]).toDateString()}</td>
          )}
        />
        <Column field="description" title="Description" />
        <Column
          title="Actions"
          cell={(props: GridCellProps) => (
            <td>
              <button
                onClick={() => {
                  setShowEditTransaction(true);
                  setEditTransaction(props.dataItem);
                }}
              >
                Edit
              </button>
              &nbsp;
              <button
                onClick={() => {
                  setShowDeleteTransaction(true);
                  setTransactionToBeDeleted(props.dataItem);
                }}
              >
                Delete
              </button>
            </td>
          )}
        />
     

</Grid>

```

Thanks in advance.

Chris
Top achievements
Rank 1
 asked on 10 Mar 2024
1 answer
102 views

Using the FontSize editor tool in the Editor I need the user to be able to select a value for the FontSize and retain that value after the user hits the enter key to go to a new line in the ediitor. Right now if you select anFontSize value it retains it till the user clicks enter then the FontSize dropdown value resets to unselected.

Thanks,

   Matt Heuerman

 

Vessy
Telerik team
 answered on 07 Mar 2024
1 answer
118 views

I have a kendo react grid. I am doing in-cell editing.  I have option to upload a file & the file might contain wrong data. when i do the upload i have to show the error highlight on each cell. i have done the upload part & showing the new row on the grid. I am facing issue while highlighting the cell with red color. i have already added custom cell for each columns. Please help

Filip
Telerik team
 answered on 06 Mar 2024
1 answer
155 views

I am trying to set the button themeColor attribute to a variable such as:

let themeColor: string = 'dark';

themeColor={themeColor}

but I get the error:

 

Type 'string' is not assignable to type '"base" | "dark" | "success" | "error" | "warning" | "info" | "primary" | "secondary" | "tertiary" | "light" | "inverse" | null | undefined'.ts(2322)
Button.d.ts(70, 5): The expected type comes from property 'themeColor' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Button> & Pick<Pick<Readonly<ButtonProps>, "form" | ... 283 more ... | "onTransitionEndCapture"> & Pick<...> & Pick<...>, "form" | ... 279 more ... | "onTransitionEndCapture"> & InexactPartial<...> & InexactPartial<...>'
(property) themeColor?: "base" | "dark" | "success" | "error" | "warning" | "info" | "primary" | "secondary" | "tertiary" | "light" | "inverse" | null | undefined
Patrick
Top achievements
Rank 1
Iron
 answered on 06 Mar 2024
1 answer
333 views

    Seeing this bug locally, and was able to reproduce it in CodeSandbox:

    1. Open this demo in CodeSandbox https://www.telerik.com/kendo-react-ui/components/grid/pdf-export/#toc-getting-started (original sandbox link: https://codesandbox.io/p/sandbox/proud-snow-z89k2q?)
    2. Ensure Dependencies includes React 18
    3. Make these changes to the bottom of main.jsx:
    • Comment out this line:

    ReactDOM.render(<App />, document.querySelector('my-app'));

    • Add these three lines in place of the above one:

    const container = document.querySelector('my-app');
    const root = createRoot(container); // createRoot(container!) if you use TypeScript
    root.render(<App />);

    A finished Sandbox in case it saves you some time -- https://stackblitz.com/edit/react-epnjnd?file=app%2Fmain.jsx

     

    • Notice that the first sandbox on page load gives the React 17/18 react-dom.render() issue. In contrast, the finished sandbox doesn't give the React 17/18 issue. This behavior is to be expected.
    • Click on "Export PDF" button. You now get the React 17/18 error on both sandboxes. You'd expect the error not to show up on the finished sandbox, as the parent code no longer utilizes the "old way of rendering React".
    Wissam
    Telerik team
     answered on 06 Mar 2024
    1 answer
    218 views

    I have a feature to add display a numeric textbox in the grid while doing in-cell editing. & it depends on a checkbox value.  If the check box in another column is  selected then only the the numeric textbox should be editable in. Kindly help me with a numeric textbox as a custom component in incell grid editing.

    I tried to create a numeric textbox as custom component. But i am facing couple of issues.

    1)If i add the editor as numeric then the checkbox condition is not matching.

    2)if i add editor as text, the cursor in the numeric textbox is not showing if i tryto add more than 1 digit.

                                                                                <GridColumn

    width='120px'
    field='Max'
    title='Max'
    columnMenu={ColumnMenu}
    headerClassName={
    isColumnFiltered(Max')
    ? 'filter-active'
    : 'filter-inactive'
    }
    editable
    cells={{
    edit: {
    text: MaxRecurring,
    },
    }}
    editor='numeric'
    />
    Konstantin Dikov
    Telerik team
     answered on 06 Mar 2024
    2 answers
    130 views

    Hi,  I've created a drop-down list for my react application. However, when I set the initial value, the required validator is triggering even though a selection has been made. Is there something else I need to be doing?

    <Field
    name={'site'}
    component={FormDropDownList}
    textField="title"
    dataItemKey="id"
    data={sites}
    // label={'Select the site you are attending.'}
    defaultItem={sitesReducer.nearestSite ? sitesReducer.nearestSite : {
    title: 'Select...',
    }}
    validator={requiredValidator}
    />
    Lee
    Top achievements
    Rank 1
    Iron
     answered on 03 Mar 2024
    1 answer
    585 views

    Hi,

    The older versions of grid had three dots as the grid column header filter icon. The new versions have a different filter icon. How to use the three dots in new version (@progress/kendo-react-grid@^7.2.3)?  Please see the attached image for the three dots icon.

     

    Thanks,

    Jie

    Wissam
    Telerik team
     answered on 01 Mar 2024
    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
    Miljana
    Top achievements
    Rank 2
    Iron
    Iron
    Joel
    Top achievements
    Rank 3
    Bronze
    Bronze
    Bronze
    Cynthia
    Top achievements
    Rank 1
    John
    Top achievements
    Rank 1
    Iron
    Mozart
    Top achievements
    Rank 1
    Iron
    Veteran
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Miljana
    Top achievements
    Rank 2
    Iron
    Iron
    Joel
    Top achievements
    Rank 3
    Bronze
    Bronze
    Bronze
    Cynthia
    Top achievements
    Rank 1
    John
    Top achievements
    Rank 1
    Iron
    Mozart
    Top achievements
    Rank 1
    Iron
    Veteran
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?