Telerik Forums
KendoReact Forum
5 answers
3.7K+ views

Hi,

The KendoReact Grid renders both general (G) and custom date formats including AM/PM (e.g. dd/MM/yyyy hh:mm:ssa) with lowercase am/pm values. This is in contrast to Kendo documentation e.g. https://github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md. Is there any way to render a datetime value with uppercase AM/PM in a KendoReact grid without using a custom cell and date formatter? We are already using IntlProvider.

Kind regards,

David

Stefan
Telerik team
 answered on 24 Mar 2021
2 answers
1.3K+ views

Kendo's Form element has an initialValue prop which I can assign an object to. Inputs will use their "name" field to bind to the initialValue object however I am having trouble getting this to work with DropDownLists. 

Do DropDownLists work with a form's initial value if indeed the props (data, dataItemKey, textField, and name) are all set. The value of the binded field should match the dataItemKey's field.

 

Thanks

Stefan
Telerik team
 answered on 24 Mar 2021
2 answers
345 views

FloatingLabel returns the k-state-empty class when value is 0. This is a bug as 0 is a valid value, likely due to a conditional on numericValue.

My temporary fix is editorValue={numericValue !== undefined && numericValue !== null ? 1 : 0}

You can see the bug in action if you set the numeric value to 0 in this example:  https://www.telerik.com/kendo-react-ui/components/inputs/floating-labels/

Thanks.

Krissy
Telerik team
 answered on 23 Mar 2021
5 answers
551 views

I've implemented a Kendo React Grid and Tooltip. I can filter the grid without issues, however the tooltip is not updating to match the filtered grid. The tooltip is showing the information for the item that was previously in the row before the grid was filtered. 

I can see that moving the cursor over the grid cell clears the tootip from the source <td title>some data</td>

Lines 01 to 23 show how my grid is implemented and lines 31 to 38 show my Tooltip component.

How can I get the cell tootip to respond to the filtering?

01.<Tooltip openDelay={100} position="bottom">
02.   <Grid
03.        data={process(this.state.gridData.map((item) => ({...item, selected: item["id"] == this.state.selectedID})  ), this.state.gridDataState)}
04.        {...this.state.gridDataState}
05.        onDataStateChange={this.handleGridDataStateChange}
06.        pageable={true}
07.        sortable={true}
08.        selectedField="selected">
09.         
10.        <Column
11.            field="id"
12.            title="id"
13.            filter={'text'}
14.            cell={Tooltip}
15.            columnMenu={ColumnMenu} />
16.        <Column
17.            field="name"
18.            title="name"
19.            filter={'text'}
20.            cell={Tooltip}
21.            columnMenu={ColumnMenu} />
22.    </Grid>
23.</Tooltip>
24. 
25.handleGridDataStateChange = (e) => {
26.    this.setState({gridDataState: e.data})
27.}
28. 
29. 
30. 
31.export const Tooltip = (props: GridCellProps) => {
32.    const {field} = props;
33.    return (
34.        <td title={props.dataItem[field]}>
35.            {props.dataItem[field]}
36.        </td>
37.    );
38.}
Stefan
Telerik team
 answered on 18 Mar 2021
3 answers
465 views

I was trying to trigger filter in GridColumMenuFilter using Enter instead of manual click. I have checked this post https://www.telerik.com/forums/using-enter-key-for-grid's-columnmenufilter but I can't make it work. I'm not sure what was tweaked on that code.

 

Thanks

-Josh

Stefan
Telerik team
 answered on 18 Mar 2021
5 answers
1.9K+ views

Hi There,

We are using the Kendo React Form library. Is it possible to reset a single field to the initial value that the form supplies? I see the way to reset the entire form, but we are looking to include a reset button next to each input field that would reset the field to it's initial value and also inform the form that it has not been modified.

Stefan
Telerik team
 answered on 17 Mar 2021
2 answers
234 views

We use a button in multiselect header to select several items.

This does not work in v4+ (with autoClose set to false). Any elements within do not get clicks registered it just onBlurs out and closes. This was introduced in 4.x somewhere as when I revert back to 3.x its not happening. 

 

https://stackblitz.com/edit/react-7vxshz?file=app/main.jsx

Tarjei
Top achievements
Rank 1
 answered on 12 Mar 2021
6 answers
740 views

Hi,

I am using a React Grid to display some data where one of the underlying fields is a collection of objects. At present we join this into a comma-separated string server-side, and use the standard GridColumnMenuCheckboxFilter implementation with a text filter type. However, the resulting list of items in the filter menu is just a distinct list of the combination of underlying object names which can be quite long and doesn't take into account each object. Consider the following dataset:

[
    {
        "ProductID": 1,
        "ProductName": "Product A",
        "Categories": [
            {
                "CategoryID": "1",
                "CategoryName": "Category A"
            }
        ]
    },
    {
        "ProductID": 2,
        "ProductName": "Product B",
        "Categories": [
            {
                "CategoryID": "1",
                "CategoryName": "Category A"
            },
            {
                "CategoryID": "2",
                "CategoryName": "Category B"
            }
        ]
    },
    {
        "ProductID": 3,
        "ProductName": "Product C",
        "Categories": [
            {
                "CategoryID": "1",
                "CategoryName": "Category A"
            },
            {
                "CategoryID": "2",
                "CategoryName": "Category B"
            },
            {
                "CategoryID": "3",
                "CategoryName": "Category C"
            }
        ]
    }
]

 

This would give us a Category column with three checkbox filter items: "Category A", "Category A, Category B" and "Category A, Category B, Category C" etc.

I would like to know if it's possible to generate a GridColumnMenuCheckboxFilter that contains the entire set of discrete categories from all product records such that selecting one category will return all product rows that have that category. Using the example above, the three checkbox filter items would be "Category A", "Category B" and "Category C". Selecting Category A would return all rows, selecting Category B would only return Product B and C, selecting Category C would only return Product C.

Assuming this is possible, would it also be possible to customise the sort behaviour?

Kind regards,

David

Stefan
Telerik team
 answered on 11 Mar 2021
2 answers
228 views

Hi all,

Was wondering if anyone could point me to an example of using the Kendo jQuery Map widget in a React application. I looked at the available list of controls available for Kendo UI for React and didn't see a native control for maps there.

Thank you!

Jennifer
Top achievements
Rank 1
 answered on 11 Mar 2021
1 answer
545 views

Hi,

It doesn't seem to be possible to clear the value of a KendoReact MaskedTextBox. This can be seen here: https://stackblitz.com/edit/react-xnkrec?file=app/main.jsx

Once you have set a value, it isn't possible to clear it. Deleting everything in the input sets the value to the full mask. This is different behaviour to the jQuery MaskedTextBox which clears the value if the raw value is empty.

Is this intended behaviour?

Kind regards,

David

Krissy
Telerik team
 answered on 11 Mar 2021
Narrow your results
Selected tags
Tags
General Discussions
Grid
Wrappers for React
Charts
Scheduler
Filter 
DropDownList
Form
DatePicker
Styling / Themes
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
LLM Kit
OTP Input
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?