Telerik Forums
KendoReact Forum
1 answer
17.0K+ views

Hi, I have my license on

https://www.telerik.com/kendo-react-ui/my-license/

and trying to add KendoReact to an existing react application.  When following instructions and running "npm install --save @progress/kendo-licensing", I get this error: "Unable to authenticate, need: Basic realm="Artifactory Realm""

PS C:\Users\NBKVCNE\source> cd pcoe
PS C:\Users\NBKVCNE\source\pcoe> npm install --save @progress/kendo-licensing
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\NBKVCNE\AppData\Roaming\npm-cache\_logs\2022-01-21T16_29_56_327Z-debug.log

Stefan
Telerik team
 answered on 24 Jan 2022
1 answer
115 views

I have a standard HTML input with the following configuration.

<input type='file' placeholder='Select file' onChange={handleChange} />

The input is processed by a button click with event handlers attached.

I want to replace this element with a KendoReact component that can restrict file types uploaded. Is the Upload component with autoUpload disabled the best option? 

     <Upload
     autoUpload={false}
     onChange={handleChange}
     onClick={uploadFile}
     batch={false}
     restrictions={{ allowedExtensions: ['.jpg', '.png'] }}
     defaultFiles={[]}
     withCredentials={false} />

How do I expose the onClick event for the Upload component's submit button?
Stefan
Telerik team
 answered on 24 Jan 2022
1 answer
104 views

Hi, 

I have an Excel and PDF export over my grid using the following:

<ExcelExport data={data} ref={_export}>{grid}</ExcelExport>
<GridPDFExport ref={(pdfExport) => (gridPDFExport = pdfExport)}>
{grid}
</GridPDFExport>

I have a multiple page grid and all pages export. However if I apply a sort to the grid and export, the sort does not retain on the export. If I instead use dataResult.data (which has the sorted order), it only shows the first page.

How do I export all pages but retain the sort, column order etc?

Filip
Telerik team
 answered on 21 Jan 2022
1 answer
1.1K+ views

Is there an elegant way of integrating dateinput with formik?

My code below works however it's  tedious (not DRY :( ) to implement. It will require a state for every date input.  I hope you don't mind sharing your code. Thanks

 

const ClaimsForm = () => {
    const [value, setValue] = React.useState<Date | null>(new Date());
    const changeDate = (event: DateInputChangeEvent) => {
      setValue(event.value);
    };
    
    const initialValues = {
        decisionDate: value
    };

    const handleSubmit = (values: any) => {
        console.log(values)
    }

  return (
        <Formik
            initialValues={initialValues}
            onSubmit={handleSubmit}
            enableReinitialize={true}
            >
        
        {({ isSubmitting }) => (
            <Form>  
                <DateInput name='decisionDate' value={value} onChange={changeDate}  />
            </Form>
        )}
  )
}


Stefan
Telerik team
 answered on 21 Jan 2022
1 answer
611 views

Do we have the ability to remove the clear button on combo boxes? Currently hacking around it with css.

.k-combobox .k-clear-value { display: none !important; }

In situations where IsRequired = true this would be nice to remove.

Thanks

Stefan
Telerik team
 answered on 21 Jan 2022
1 answer
544 views

Hi,

I have logic in cellRender to format the cell styles such as changing background colours (for example if age is > 20 change the cell background colour to green).

Exporting to PDF the styles persist - the PDF looks exactly as the grid with the cell styling.

With Excel, all cell styling is lost. Is there any way I can persist the cell styling on export?

Thanks.

Stefan
Telerik team
 answered on 20 Jan 2022
1 answer
212 views

Ok, this is a little more complex issue with multiple questions.

1.) I have setup a Splitter Component in a Window Component. In one of the Splitter-Windows I have buttons which I have "enhanced" with the Drag&Drop functionality and that works only inside the same Splitter window, meaning I can't move them from one Splitter window to another. Is it possible to use the DragAndDrop over multiple Splitter windows? See attached screenshot. I have currently put the <DragAndDrop> around the <Splitter> Component like below but it doesn't seem to help.

<DragAndDrop>
    <Splitter
        style={{ height: '100%' }}
        panes={outerPanes}
        orientation="horizontal"
        onChange={splitterOuterChange}
    >
        <WeekCalendarProfiles program={props.item} />
        <Splitter
            style={{ height: '100%' }}
            panes={innerPanes}
            orientation="vertical"
            onChange={splitterInnerChange}
        >
            <WeekCalendar program={props.item} />
            <WeekCalendarChannels program={props.item} />
        </Splitter>
    </Splitter>
</DragAndDrop>
2.) As you can see, in the main Splitter Window I have a Scheduler instance. I have added the drop target for the drag&drop to a CustomViewSlot like this:
    const CustomViewSlot = (props: SchedulerViewSlotProps) => {
        return (
            <>
                <DroppableBox onDrop={handleDrop} id={guid()} selected={selected}>
                    <SchedulerViewSlot {...props} style={{ ...props.style }} />
                </DroppableBox>
            </>
        );
    };

My issue is: How would I be able to get access to the data of the slot where there box would be dropped and trigger an add dialog for an event?

3.) The CustomViewSlot will automatically get assigned to all slots of the calendar view. Is it possible to assign the CustomViewSlot to the 'all day' slots only?

Thanks!

Filip
Telerik team
 answered on 20 Jan 2022
1 answer
138 views

Hi Team, 

Looking at this example, the width and height are set, but how can I configure the window to auto-size to wrap its content? Similar to the jQuery version.

Thanks,
Grant

Stefan
Telerik team
 answered on 20 Jan 2022
2 answers
159 views
Do You have any designer (architect) tool for creating your component?
Zarko
Top achievements
Rank 1
Iron
 answered on 18 Jan 2022
1 answer
168 views

Hi, 

So the new PropsContext features look great, but I need some clarification, can they be overridden in the component?

eg:
<DatePickerPropsContext /> contains a min (date) value of today, which is generally fine, however in one instance of the datepicker, I want the min (date) to be tomorrow.I've noticed that any field set in the props context cannot be overridden, am I using this incorrectly, is the props context not meant to be used for default values app-wide?

See example: https://stackblitz.com/edit/react-hba3r8?file=app%2Fmain.jsx

 

Thanks,
Grant

Konstantin Dikov
Telerik team
 answered on 17 Jan 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?