Telerik Forums
KendoReact Forum
1 answer
132 views

Just so you know I'm currently using version 3 of kendo react

I'm having an issue where I have a form, showing in a dialog box. When the screen size is smaller, and i click the date time picker on my form, the date time picker crops out of the page, so I can't see the bottom of the date time picker. I was thinking to use a class to reposition the datetime picker, but I'm unable to connect my KendoDateTimePicker popupcClass with the CSS class that I added. When i check the popup's class my css class isn't there. What's a good way to make it that my datetimepicker doesn't crop out of my page?

 

Filip
Telerik team
 answered on 23 May 2022
1 answer
870 views

Hi, 

I'm trying to use position-absolute for one element inside a <td> tag and try to position it outside of the table but unsuccessful. Is there a way to do it? I know it's stack order problem but I don't know how to solve it. Like in the photo below, I want to position the cell on top of the table.
the code is kind of like below.

	const patientCell = props => {
		return <td style={{position:'relative', 
                    overflow: "visible",
                }}>
			<div style={{position:'absolute', top: '-50px', Zindex: 10000}}>
				cell I want to position outside table
			</div>
		</td>
	}


 <Grid>
<Column
         title="Patient Name"
         field="fullName"
         columnMenu={ColumnMenu}
          cell={patientCell}
   />
 </Grid>

Filip
Telerik team
 answered on 20 May 2022
1 answer
104 views

Hello.

Is it possible to extend the pager (for grid)? With existing components for page number, page size, page info? I know of this example: https://www.telerik.com/kendo-react-ui-develop/components/grid/paging/#toc-custom-pager. But I just need to add one, two extra icons - before the info. Or change info text. We don't want to make our own components for page numbers and page size. I wanted to use the PagerNumericButtons and PagerPageSizes components, but it didn't work.

Well thank you.

Konstantin Dikov
Telerik team
 answered on 20 May 2022
1 answer
112 views

I everyone.

I counter a problem with the multi-checkbox selection, in my grid could be many items with the same Item ID this causes the selection of all the products with the same ID by just clicking on one of them.

how can I solve this problem?s

Filip
Telerik team
 answered on 19 May 2022
1 answer
120 views

Hi there. I am working with Kendo react forms and am rendering them via the map function. So, on render I call an api which returns a list of elements ( it can vary from 0 to 100+) and then I put it in a state. After that I do  a map function and depending on the element id I render a Form Field like this:


component={ tada.tpodatka_id === 1 ?Input: tada.tpodatka_id === 2 ?Input: tada.tpodatka_id === 3 ?DatePicker: tada.tpodatka_id === 4 ?DropDownList: tada.tpodatka_id === 5 ?TextArea : // MultiLine tada.tpodatka_id === 6 ?DropDownList: tada.tpodatka_id === 7 ?DropDownList: tada.tpodatka_id === 8 ?MultiSelect: tada.tpodatka_id === 9 ?MultiSelect: Input

}

That API, along with the element type, returns their current values. How can I assign on-render values to, for example, a dropdown or input in a Form? I tried this for a Input element but it didn't show the tada.txt_value on render:

<Field
          required={tada.obavezan === 1 ? true : false}
          name={tada.naziv}
          component={ Input }
          label={tada.naziv}
          value={ tada.txt_value }
/>

What am I doing wrong?

 

Konstantin Dikov
Telerik team
 answered on 19 May 2022
1 answer
144 views

I have added the Globalization and IntlProvider to the Grid and it works but for the Column options there is one entry missing in the documentation and that's the "Columns" entry (see screenshot). Is there a possibility to add a translation for this item?

 

Konstantin Dikov
Telerik team
 answered on 19 May 2022
1 answer
84 views

Hi!
I have been using validation properties (required, max length, validationMessage etc) for the forms.

Is there any way to have the same functionality for Grid component to have validations in the  Columns?

As they are free inputs for the users too, 
would be nice if you can provide some examples to know how to handle them.

Thanks for your time,
Rebeca.

Filip
Telerik team
 answered on 19 May 2022
1 answer
270 views

Hi, I'm trying to combine many functionality on kendo react data grid.

I want to allow multiselect, custom cell, custom menu filter, contextual menu and double click managing.

I tried like in following project:

https://stackblitz.com/edit/react-tcu25m

 

I started from following examples:

https://stackblitz.com/edit/react-7mz85d (double click managing)

https://stackblitz.com/edit/react-fx9xkl (multiselect)

But, combining the 2 way the double click fires only sometimes. Maybe because the click was consumed by selection?

How can I get all my needs?

Konstantin Dikov
Telerik team
 answered on 18 May 2022
1 answer
82 views

Hello,

 

I am trying to localize my entire application but I cannot get this example working; https://www.telerik.com/kendo-react-ui/components/intl/l10n/reacting-to-language-changes/

My code is below.

import { Message } from '../../common/Message';

loadMessages(messages["es"], "es");

const DetailComponent = (props: any) => {

    const locales: LocaleInterface[] = [
        {
          language: "en-US",
          locale: "en",
        },
        {
          language: "es-ES",
          locale: "es",
        },
      ];
    const [currentLocale, setCurrentLocale] = React.useState<LocaleInterface>(
        locales[0]
    );
const defaultMessages = {
  [yesterdaysMessageKey]: "Yesterday was a good day!",
  [todaysMessages]: "Today is a good day as well!",
  [tomorrowsMessageKey]: "Tomorrow will be even better!",

};

 

return (

<LocalizationProvider language={currentLocale.language}>
<IntlProvider locale={currentLocale.locale}>
<p>
 <strong> <Message messageKey={yesterdaysMessageKey} defaultMessage={defaultMessages[yesterdaysMessageKey]}/>:</strong> {dataItem.nickname}

</p>

</IntlProvider>
</LocalizationProvider>
  );

};

 

import * as React from "react";
import { useLocalization } from "@progress/kendo-react-intl";
interface MessageProps {
  messageKey: string;
  defaultMessage: string;
}
export const Message = (props: MessageProps) => {
  const localization = useLocalization();
  return (
    <span style={{ display: "block" }}>
      {localization.toLanguageString(props.messageKey, props.defaultMessage)}
    </span>
  );

};

 

export interface LocaleInterface {
    language: string;
    locale: string;
  }
 
Filip
Telerik team
 answered on 17 May 2022
1 answer
99 views

Hi.

I have a Data Grid which includes two TimeInput fields, onTime and offTime and I want to make sure that when the user hits the update button of the row that offTime is always bigger than onTime. My problem is not the calculation, it's more like: What is the best way to check the values of the 2 fields and how do I set the focus on the offTime field when it is lower than the onTime? It would also be possible to not check it on the update button click but when the field is blurred or so. Not sure how to handle this best.

I have used one of your Grid-Examples and manipulated it a bit so that the 2 fields are already in there but there are of course a couple of things missing like a form for example. Maybe you can direct me at least in the right direction how to handle this best.

https://stackblitz.com/edit/react-nq2pkf?file=index.js

Thanks!

Greetings,

Bernd

Konstantin Dikov
Telerik team
 answered on 17 May 2022
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?