Telerik Forums
KendoReact Forum
1 answer
96 views

Hi,

We use a mix of standard HTML inputs and KendoReact controls in forms in our application. Using v4.10.0 of kendo-react control and kendo-theme-bootstrap packages, we were able to apply the Bootstrap form-control class to both standard HTML inputs and KendoReact controls with no issues. We were also able to apply the Bootstrap is-invalid class for custom validation requirements, again with no issues.

After upgrading to v5 of bootstrap, kendo-react control and kendo-theme-bootstrap packages, the form-control class breaks the appearance of KendoReact controls. Please see the following example modified from the KendoReact ComboBox Overview so that package versions can be easily modified. 

https://stackblitz.com/edit/react-mintjh?file=app/main.tsx

I have left the package at their v4 versions that we were using without issue. If you bump all the kendo-react control, kendo-theme-bootstrap and bootstrap packages to the latest v5 versions in package.json you can see that the controls no longer render properly.

We are committed to the Bootstrap form layout, and we have more standard HTML inputs than KendoReact controls. Can you please suggest classes we can use as equivalents to form-control and is-invalid for the KendoReact controls we use in our forms? Or some other recommended way of using KendoReact controls in HTML forms using Bootstrap styling and custom validation? I can't find any clear documentation on it.

Kind regards,

David

Filip
Telerik team
 answered on 31 Mar 2022
1 answer
88 views

I'm having a strange formatting issue when exporting to PDF. I'm using column-count to divide text in a div into 2 columns. When I export to PDF, some of the text is pushed to the next page. There is plenty of space on the first page for all the text to fit.

I have put a sample of the issue out in StackBlitz that reproduces the formatting issue. I'm probably just overlooking something, but a little help would be much appreciated.

Thanks!

Edit on StackBlitz 

  
Filip
Telerik team
 answered on 30 Mar 2022
2 answers
157 views

I have a very weird behavior of the Scheduler Week view. As you can see on the screenshots the work hours on Sunday show a different timing as on the other days and the last row on the bottom only shows 6 columns instead of 7. And to make it even more weird: This only happens if the view is set to the current week. As soon as I navigate to a different week as the current one, it shows as expected.

Here is my setup of the scheduler itself:


<Scheduler
	data={calendarData}
	defaultDate={displayDate}
	height={calculateSchedulerHeight()}
	timezone="CET"
	slot={CustomSlot}
	onDataChange={handleDataChange}
	editable={{
		add: true,
		remove: false,
		drag: false,
		resize: false,
		select: false,
		edit: true,
	}}
	form={
		isColumnEmpty ? NewProfileForm : EditProfileForm
	}
	footer={(props) => <React.Fragment />}
	header={CustomSchedulerHeader}
	defaultView="month"
>
	<DayView
		slotDivisions={1}
		showWorkHours={false}
		workDayStart="06:00"
		workDayEnd="19:00"
		editItem={CalendarProfileItem}
	/>
	<WeekView
		// workWeekStart={Day.Monday}
		// workWeekEnd={Day.Friday}
		showWorkHours={false}
		workDayStart="06:00"
		workDayEnd="20:00"
		slotDivisions={1}
		editItem={CalendarProfileItem}
		currentTimeMarker={false}
		viewSlot={CustomSlot}
	/>
	<MonthView
		slot={CustomMonthSlot}
		itemsPerSlot={10}
		editItem={CalendarMonthItem}
		viewSlot={MonthSlot}
	/>
</Scheduler>

And here is the setup of my CustomSlot function, where I only add some different behavior on double click:

const CustomSlot = (props: SchedulerSlotProps) =>
	props.isAllDay ? (
		<SchedulerSlot
			{...props}
			style={{
				...props.style,
				backgroundColor: dropzoneColor,
				height: '35px',
			}}
		/>
	) : (
		<SchedulerSlot
			{...props}
			onDoubleClick={async (event) => {
				const eventColumn = event.target.props.col;
				const day = dateToWeekday(props.start);
				const emptyDay: boolean = isDayEmpty(props.start, day);
				setIsColumnEmpty(emptyDay);
				if (emptyDay === false) {
					const profileId = getProfileIdFromExceptions(
						props.start,
						day
					);
					if (profileId) {
						changeItem.current = {
							profile: profileId,
							column: eventColumn,
							startDate: props.start,
						};
						setSelectedProfile({ id: profileId, label: '' });
						setSelectedDay(eventColumn);
						setSelectedDate(props.start);
					}
				}
				props.onDoubleClick && props.onDoubleClick(event);
			}}
		/>
	);

So I guess nothing too weird here. There was even another issue because it showed a huge white area on the right of the Scheduler viewport and also showed the current time marker (both also only for the current week) but I could solve that by assigning the viewSlot and setting the CurrentTimeMarker to false.  If needed I can try setup something on StackBlitz but it's not so easy because my app is quite large... Any idea would be appreciated.

 

Stefan
Telerik team
 updated answer on 30 Mar 2022
1 answer
401 views

Please help me solve this case,

how to make a chart legend look like this ?

I'm using kendo react, and I'm having trouble customizing the legend to look like in the image, can someone help me?

 

Thank you 🙏

Stefan
Telerik team
 answered on 30 Mar 2022
1 answer
347 views

Hi team,

Just wanted to check if there are any props or attributes that can be used to change the number of visible items in the dropdown.

For example, I'm using a Kendo Multiselect (see below image for reference) and by default, it's showing me 7 items when I open the Region dropdown. It is possible to change this to 8 or 10 based on whatever input is given? Thanks!

Thanks!

Stefan
Telerik team
 answered on 30 Mar 2022
1 answer
101 views

I use a Datepicker with 'he' loclae. It works fine, but the week's days are displayed from left to right instead of right to left as expected.
I tried to add className = 'k-rtl' but it did not help.
Is there a way to change that?

Here is a demonstration of the problem:

https://stackblitz.com/edit/react-vkzwzo?file=app%2Fmain.jsx

Filip
Telerik team
 answered on 28 Mar 2022
1 answer
147 views

Hi.

I notice that when I put value in the filter input and then remove it the operator is deleted also. Is there any way to prevent that?

video attached.

Thanks

Filip
Telerik team
 answered on 28 Mar 2022
1 answer
256 views

Hi.

I'm trying to do a custom GridToolbar that will serve many data grids but it won't render, what is the problem and how I can do it?

stackblitz example

 

Thanks.

Filip
Telerik team
 answered on 28 Mar 2022
1 answer
72 views

Hi,

I have a virtual scrolling in my grid, it's unknow total data because it depend which user is connected and if there is filter applied, so I just set total to 10000 , because I didn't find any solution to change the total depending on data loading.

So first issue is :

Is it possible to have virtual scrolling without knowing the total data length?

Another problem that I'm struggling with is virtual scrolling with Filtering, after applying a filter on the data I have empty rows in my grid (because now the data length is less than 10000- the total data decaled before).

So the big question is : Is that possible to have virtual scrolling with Filtering and unknow total data length?

I'm adding my code, if this is not possible so what you recommend me to do?

 

Thank you

Stefan
Telerik team
 answered on 28 Mar 2022
1 answer
1.8K+ views

Hey there,

I've been having a tough time getting infinite scrolling to work with sorting and filtering. Because the infinite scrolling splices out of the array of data, I've set up an "original data" state to hold all of the unmutated data. However, this is not working well because the scroll location when you unfilter the data is causing more items to be loaded. I'm sure I'm dealing with a bug on my end, but is there any example of infinite scrolling with sorting and filtering? With a simplified example, I might be able to see what I'm doing wrong on my end.

 

Thank you!
Janki

Filip
Telerik team
 answered on 25 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?