Telerik Forums
KendoReact Forum
1 answer
82 views

Hi there, 

 

Is it possible to have landing pad of dragging row on treeview along with the animation of other rows moving to provide space. please see in the attached video.

Thanks

Filip
Telerik team
 answered on 08 Sep 2022
1 answer
167 views

Hi,

When we are trying to enter decimal values all as zeros in the numeric input cell of grid, with scale 10 and precision 18 ,
i.e., if in the numeric column enter "5.00" in one row, "5.500" in another row.
Upon Save or Reload (some postback), the trailing zeros are removed, which shouldn't. and the values are shown as 5 , 5.5 respectively, instead of 5.00 and 5.500

Could you suggest any way to achieve this, or is there an example on this grid numeric cell, as this is working in textbox outside the grid.

Thanks,

Seetha

Konstantin Dikov
Telerik team
 answered on 08 Sep 2022
1 answer
112 views

I need to overwrite the default escape key keymap. I want to call my own function to cancel the editor when the user presses escape. I have a keymap for handling the Ctrl+s key. Escape doesn't seem to work the same way. Any ideas?

keymap({
'Ctrl-s': (e) => {
if (onCtrlSave) {
let value = getHtml(e.doc);
onCtrlSave({
sender: 'kendoEditor',
value: value
});
}
return true;
}
}),
Konstantin Dikov
Telerik team
 answered on 08 Sep 2022
1 answer
132 views

Dear Kendo Team,

I have added a custom resource to the scheduler and it automatically recognizes the resource and shows it as a dropdown like I desired which is great. Now, all I want is to do the following:

1. Simply move the dropdown to the top of editor (is this possible without having to create an entirely custom template from scratch) 

2. Make the resource selection required

3. Disable the selection of time zone information 

Here is all the work I have been able to accomplish so far:

I ran into this article (https://www.telerik.com/kendo-react-ui-develop/components/scheduler/customization/form/editor/) and have the code working to the point where I have a custom validator function checking the field value and raising an error. Although the red highlight is shown underneath the custom resource, the error message ' field is required' is not shown.

My code is shown below:    

import { SchedulerForm, useSchedulerFieldsContext, SchedulerFormProps } from '@progress/kendo-react-scheduler';
import { CustomFormEditor } from './custom-form-editor';

export const FormWithCustomEditor = (props: SchedulerFormProps) => {
    const fields = useSchedulerFieldsContext();

    const requiredValidator = React.useCallback(
        (value) => (!value
            ? 'Field is required.'
            : undefined),
        []
    );  

    const customValidator = React.useCallback(
        (_dataItem, formValueGetter) => {
            let result: any = {}

            result[fields.title] = [
                requiredValidator(formValueGetter(fields.title))
            ].filter(Boolean).reduce((current, acc) => current || acc, '')

           //custom resource related field called 'customerId' validation below

            result['customerId'] = [
                requiredValidator(formValueGetter('customerId')),
            ].filter(Boolean).reduce((current, acc) => current || acc, '')

            return result;
        },
        [fields, requiredValidator]
    )

    return (
        <SchedulerForm
            {...props}
            validator={customValidator}
            editor={CustomFormEditor}
        />)
}

What is left:

1. Have the 'Field is required' validation message show up in the current approach

2. Move the resource selection dropdown higher up in the editor that opens (using the current approach or through the full editor customization approach)

3. Disable time zone selection completely (using the current approach or through the full editor customization approach)

For full editor customization, I was reading in the documentation here (https://www.telerik.com/kendo-react-ui/components/installation/source-code/) which states that licensed customers can download the source code of the Kendo React product. I would be interested in confirming that I can this approach with your technical sales team before proceeding further. 

Many thanks! 

 

Konstantin Dikov
Telerik team
 answered on 07 Sep 2022
1 answer
78 views

Hello,

Does Kendo React offer a 'slide in' drawer component, that can slide in from either side of the screen and that can hold e.g. a form (like an extended dialog component)? 

I found a question on the forum from 2020 where the same question was asked: https://www.telerik.com/forums/non-navigational-drawer

In one of the answers, an example was given how to 'convert' the drawer component to offer this functionality. Does Kendo not offer a particular component for this?

Filip
Telerik team
 answered on 31 Aug 2022
1 answer
273 views
Can use Kendo React UI Input Element with React Hook From and yup validator?
Filip
Telerik team
 answered on 30 Aug 2022
1 answer
2.0K+ views

Hi,

I am using the KendoReact grid with checkbox selection as outlined here: https://www.telerik.com/kendo-react-ui/components/grid/selection/#toc-customizing-the-selection

I was hoping for some help on the best way to selectively hide the checkbox for certain rows based on row data while still using default Grid selection behaviours i.e. Grid selectedField, onSelectionChange and onHeaderSelectionChange.

I know that I can use a custom cell template to selectively hide or show the checkbox, but if I do this is there any way to still use the Grid onSelectionChange handler for the checkboxes that are shown? Or do I have to use the Grid onItemChange event to change the selected field instead?

Kind regards,

David

Konstantin Dikov
Telerik team
 answered on 26 Aug 2022
1 answer
94 views
I need a function that can drag the selected item and arrange the order, can the component support it?
Filip
Telerik team
 answered on 26 Aug 2022
2 answers
219 views
I'm using DropDownList virtualization (no filtering) and while it works well, I was hoping that there was a configuration that would allow me to control the specificity of the skip requested. Right now, it requests in increments of 1. I would like for it to be more generic such as requesting in increments of 10. E.g., right now if you have a 1,000 items with a page size of 20, the skip value can be anywhere from 1-999. I am considering overriding what is sent to my service as part of onPageChange. However, in order to do this I have a few questions. Let's assume you have a list of 1,000 and the page size of 100. If a user drags the scroller to 50%, what is requested? skip of 500? or split the difference and request 450? This will help me decide how to round out the skip # requested.
Mo
Top achievements
Rank 1
Iron
 answered on 25 Aug 2022
1 answer
103 views

as you can see the first item (and the last one), does not start from the most right/left, how can I get rid of that space?

 

 


 

Vessy
Telerik team
 answered on 25 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?