Telerik Forums
KendoReact Forum
2 answers
477 views

Hi all,

I'm just starting out with my trial, so am very much a beginner, hope this isn't a daft question.

I'd like to be able to drag items from a TreeView into some ListBoxes and back out again. The idea is that drag onto list box adds the item to that list, drag from listbox to the treeview will remove the item from the list.

I have got TreeView -> ListBox working by catching the TreeView.onDragEnd event and using document.elementFromPoint() to work out where the item is being dropped. (Perhaps there is a better way to do this too?)

I can't figure out how to detect the drop of a ListBox item outside of the ListBoxes though. There is an onDrop event but it only fires if dropping on a ListBox. If I drag anywhere outside the ListBox I get the "can not drop here" mouse icon".

Is there a way to achieve this?

Thanks for any help!

Colin

Colin
Top achievements
Rank 1
 answered on 10 Mar 2021
6 answers
929 views

 

Based on the Dataset of Objects example in https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/binding/, I understand that the combobox value will be the selected object. 
For example, if I selected "Football", the value is 
 {"text":"Football","id":2}



On the submit, is there a way for the values collection to have the "id" value and not the selected object?  

Presuming my combobox name is 'sport', I have to use values.sport?.id  

That's not horrible, but the part I don't like is initializing the component with a previously selected value.


Is there a way to pass the value of id as a separate prop and have the component find the matching object in the {data} object.


The way I got it to work to  have a function that takes the id as an input parameter filter for the matching item.  This is passed as the {value} prop.  

 

Thanks

Anthony

Krissy
Telerik team
 answered on 10 Mar 2021
5 answers
297 views

Hi there. It looks like the Kendo Grid generates its own tbody element. I have a situation where I'd like to use multiple tbody elements to define a row. W3C says using multiple tbody tags within a table is the correct way to do this. Here is their example: https://www.w3.org/WAI/tutorials/tables/irregular/#table-with-headers-spanning-multiple-rows-or-columns

Is there a way to accomplish this type of thing?

Stefan
Telerik team
 answered on 10 Mar 2021
1 answer
1.0K+ views
So we have a nested array in our json object that I'm trying to update using Kendo React Forms (See Below).

I've mapped the array and have tried to use name={ExampleArray[index].date} yet can't seem to pull the values in or update them. Is it possible? If so how do I go about doing it?

Thanks.

 
{
    "createdOn": "2007-11-15T17:14:01.763",
    "lastUpdatedOn": "2007-11-15T17:14:01.763",
    "color": "Green",
    "ExampleArray": [
      {
        "name": "Date Name",
        "id": 1,
        "date": null
      },
     {
        "name": "Date 2 Name ",
        "id": 2,
        "date": null
      },
  {
        "name": "Date 3 Name",
        "id": 3,
        "date": null
      },

]

}

Stefan
Telerik team
 answered on 09 Mar 2021
11 answers
903 views

When virtualizing the grid, all cells remount during scroll, causing a serious performance issue. How can I stop this from happening?

Here's and example I forked showing the remounting behavior: https://stackblitz.com/edit/react-mu6rlr-ssbgc9?file=app/main.jsx

Stefan
Telerik team
 answered on 09 Mar 2021
13 answers
1.9K+ views

Hi

I have a use case with a straightforward Grid where my users would like to have actions bound to a double click and a popup-menu on right click.

I only found the onClick handler which of course works, but my users would prefer a double click. The reason they name is that they commonly select and copy data from the grid, which interferes with the onClick behaviour.

Is there some description how to achieve double click and right click behaviour on the Grid?

Thanks!

Franklin
Top achievements
Rank 1
 answered on 08 Mar 2021
1 answer
94 views

Hi,

I am looking for a feature where I can add more than one cascading Comboboxes in a cell as editor. Provide me an example or a pointer.

 

 

Stefan
Telerik team
 answered on 05 Mar 2021
2 answers
1.4K+ views

Hi,

GridColumnProps has an editable prop which accepts boolean values only. Is it possible to conditionally set the editability of a column based on values in other columns?

Kind regards,

David

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 04 Mar 2021
4 answers
1.1K+ views

 

 

I would like to expand on the example in the docs: https://www.telerik.com/kendo-react-ui/components/form/

When the form is submitted, I want to post the form data to an api end point which may "clean/update" the data and return back to client for additional input.  Once the response is returned, I want to update the corresponding fields; however, I don't see how I would be able to update the Form's fields using some like the following:

formRenderProps.onChange('city', { value: 'Philadelphia' });

Is there a better appro

xiao
Top achievements
Rank 1
 answered on 02 Mar 2021
5 answers
162 views
ComboBox autocomplete is not working
Anthony
Top achievements
Rank 1
Veteran
 answered on 01 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?