Telerik Forums
KendoReact Forum
1 answer
55 views

HI,

I have implemented a button to clear all filters . On click i clear the filters object in data state and this does not clear the values entered in filter text box and clear filter button which is based on props.value .

Expected behavior : Once clear button is clicked - all filters should be reset with the filter textbox/ dropdown/Datepicker should be cleared and clear filter button in individual filter should be reset .

https://stackblitz.com/edit/react-aldgy2?file=src/app/main.js

https://react-aldgy2.stackblitz.io

 

Help me in achieving this

Konstantin Dikov
Telerik team
 answered on 24 Nov 2021
1 answer
631 views

Hello,

I'm inserting multiple row to add values. my two cell of a grid is having cascading dropdown i.e. based on one dropdown's selected value other dropdown will be populated. As I'm adding multiple row hence I want to pass the props (i.e. selected value) so that I can populate the other dropdown within that particular row. But I don't see any option to pass props from the cell. Here is my grid code snippet

 return (
    <StudyListContext.Provider value={studyList}>
      <SelectedStudyList.Provider value={studyListValueContext}>
        <ExcelExport data={orderBy(filterBy(data, filter), sort)} ref={_export}>
          <Grid
            data={orderBy(filterBy(data, filter), sort)}
            onItemChange={itemChange}
            editField={editField}
            dataItemKey={'STUDYNAME'}
            filterable={true}
            filter={filter}
            onFilterChange={(e) => setFilter(e.filter)}
            sortable={true}
            sort={sort}
            onSortChange={(e) => {
              setSort(e.sort);
            }}
          >
            <GridToolbar>
              <button
                title="Add new"
                className="k-button k-primary"
                onClick={addNew}
              >
                Add new
              </button>
              {' | '}
              <button
                title="Export Excel"
                className="k-button k-primary"
                onClick={excelExport}
              >
                Export to Excel
              </button>
            </GridToolbar>
            {}
            <Column
              field="STUDYNAME"
              title="Study Name"
              width="200px"
              cell={StudyListDropdown}
            />
            <Column
              field="CRFVERSION"
              title="CRF Version"
              width="200px"
              filterable={false}
            />
            <Column
              field="VERSION_CNT"
              title="PUBLISHED VERSION"
              width="200px"
              filterable={false}
            />
            <Column cell={CommandCell} width="200px" filterable={false} />
          </Grid>
        </ExcelExport>
      </SelectedStudyList.Provider>
    </StudyListContext.Provider>
  );

I want to pass the the selected value within the row.. something like this :

            <Column
              field="STUDYNAME"
              title="Study Name"
              width="200px"
              cell={<component props={seleted_value}/>} 
            />

but this is not working. 

Is there a way to pass the selected value ? OR how to control / customize the cell / column ? 

Thanks!

 

Konstantin Dikov
Telerik team
 answered on 23 Nov 2021
1 answer
125 views

For Multiselect dropdown we have given the autoclose property to false , but the dropdown closes once we select a item 

Below is the code used

 

 <MultiSelect
            id='ddlf4'
            // className='k-dropdownstate'
                  data={result.result}
                  itemRender={itemRender}
            autoClose={false}
                  value={selval} //{this.props.value || ""}
            filterable={true}
            onChange={onChange}
                  onFilterChange={onFilterChange}

            clearButton={false}
            textField='text'
                  dataItemKey='id'

            //onBlur={this.onLeave}
            tags={[]}

          />

 

Attached the full file also

                                        
Stefan
Telerik team
 answered on 23 Nov 2021
1 answer
95 views

I use a TreeView in my app and whenever I click on one of the triangles to open another tree layer, I get the attached warning in the console. This also happens when I use a Tree in a dropdown. Is there anything I can do about this? Here is the data that I use with it:


[
    {
        "id": 1,
        "text": "Hessen",
        "items": [
            { "id": 2, "text": "Mannheim" },
            { "id": 3, "text": "Frankfurt" }
        ]
    },
    {
        "id": 4,
        "text": "Rheinland-Pfalz",
        "items": [
            {
                "id": 5,
                "text": "Mainz",
                "items": [
                    { "id": 50, "text": "Gebäude A" },
                    { "id": 51, "text": "Gebäude B" },
                    { "id": 52, "text": "Gebäude C" }
                ]
            },
            { "id": 6, "text": "Kaiserslautern" },
            { "id": 7, "text": "Zweibrücken" }
        ]
    },
    {
        "id": 8,
        "text": "Bayern",
        "items": [
            { "id": 9, "text": "München" },
            { "id": 10, "text": "Rosenheim" }
        ]
    },
    {
        "id": 11,
        "text": "Saarland",
        "items": [
            { "Id": 12, "text": "Saarbrücken" },
            { "id": 13, "text": "Neunkirchen" }
        ]
    }
]

Filip
Telerik team
 answered on 23 Nov 2021
1 answer
2.2K+ views

Hi forums,

I wonder is there any way for me to have a year-only datepicker. Without month or date. How can I customize the component to suit my need?

 

Thanks!

Konstantin Dikov
Telerik team
 answered on 18 Nov 2021
1 answer
168 views

Hi Telerik Team,

when using the simple example below, there few warnings/errors apear in console

can you check if this is an issue with Typescript definition or some bug ?

 
const items: DataModel[] = [
    {
        id: "home",
        text: "Home",
        iconClass: "k-i-home",
    },
    {
        id: "profile",
        text: "User Profile",
    },

];

 

<Breadcrumb data={items}/>

 

 

Warning: Failed prop type: KendoReactBreadcrumb: prop type `breadcrumbOrderedList` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.

react_devtools_backend.js:2540 Warning: Failed prop type: KendoReactBreadcrumb: prop type `breadcrumbListItem` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.

Warning: Failed prop type: KendoReactBreadcrumb: prop type `breadcrumbDelimiter` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.

react_devtools_backend.js:2540 Warning: Failed prop type: KendoReactBreadcrumb: prop type `breadcrumbLink` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.

 

Stefan
Telerik team
 answered on 17 Nov 2021
1 answer
91 views

Hi Team,

I need to implement IN condition filter for Data Grid Column.

For Example:

User tries to apply filter on "Country" Column in Grid with values like "INDIA, USA, CHINA"

 

--

Thank You

Karthikeyan Rajakumar

Konstantin Dikov
Telerik team
 answered on 16 Nov 2021
2 answers
185 views

Hello!

I want to perform the following: load MS Word (.rtf) file content using internal API (the format is {content: binaryArray, contentType: 'application/octet-stream'}) and insert the file content as a value for RTE for the read\update\save.

It is some kind of replacement for manual copy\paste from the opened .rtf file in MS Word.

Currently, when I receive the rtf file in the aforementioned format, I see the rtf specific text in RTE editor (screen in attachments).

I am able to receive a content and create a BLob based on it to download the file, but that's all what i have for now and i am looking at the control that may embed MS Word content with styling\formatting "on the fly".

Is there a case for this? Can I dynamically read\set such kind of content?

 

Regards,

Andrey

Gizmo
Top achievements
Rank 1
Iron
 answered on 16 Nov 2021
1 answer
72 views

As you have described on this page, I have added a DropDownButton. The only difference that is on my end is that I placed the button on a Dialog component in a form. Unfortunately now, when I click the button, the dropdown opens "under" the Dialog (see attached screenshot). Can I influence that behavior somehow so that it appears above it?

Thanks for all your help!

Stefan
Telerik team
 answered on 16 Nov 2021
2 answers
93 views
I have a Grid setup and some of the fields are boolean. I have added a filter to the columns. For the boolean fields the filter now shows "Is true" and "Is false". Is it possible to change these labels to something else?
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
 answered on 15 Nov 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?