Telerik Forums
KendoReact Forum
3 answers
440 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.8K+ 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
216 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
714 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
215 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
525 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
2 answers
458 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
902 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
275 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
987 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?