Telerik Forums
KendoReact Forum
3 answers
194 views

I am using the GridPDFExport in my application. While doing so , I am facing following queries : 

1. The background of the grid is by default shown in the fashion that white and grey colors get applied to the alternate rows. I have customized the background color for the grid but that styling disappears on Export PDF.

2. Unable to change the Font and Color while exporting the Grid in PDF document. Increasing the scaling property doesn't work for my scenario as there are large number of columns i want to export. Thus my scale is set to 0.3. I have to increase the Font as well change the font color while exporting the Grid.
Even after using PageTemplate , it didn't work for me.

Kindly suggest the suitable solution.

 

Stefan
Telerik team
 answered on 04 Apr 2019
1 answer
3.4K+ views

Hi,

 

 I am trying to set maxLength property to NumericTextBox, but it is not working. Is it not supported?

 

example 

maxLength="5"

 

Regards,

Parag

Stefan
Telerik team
 answered on 26 Mar 2019
1 answer
442 views

Hi,

I have a chart with radio buttons above that switch between "month" and "day" data. When I change the data set to monthly by updating the categories and series of the chart, the x-axis is still displaying the daily labels. I searched the documentation and don't see a "refresh" method like the one available for the jQuery version. Can you please provide a React example of how to update a chart with a new data set?

Your help is appreciated,

Mihai

Stefan
Telerik team
 answered on 26 Mar 2019
9 answers
910 views
My Editor component is in a form, and I'm trying to serialize the value. How can I get the rich text value (with all the HTML markup included)?
John
Top achievements
Rank 1
 answered on 25 Mar 2019
1 answer
174 views

As of v2.0.0 for the Dropdown components, the valueField prop was removed. An example of how to re-implement the feature is provided here:

https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/common-scenarios/#toc-using-data-fields-for-values

 

The thing for me was that I am using TypeScript and needed a type safe withValueField HoC so I copied the existing HoC and added some type safety. I figured it would be helpful for any of those that are looking for the same thing.

 

Check it out here: https://gist.github.com/Weffe/c69304a00e5f955a13cae65bbcb0a86d

 

Enjoy!

Stefan
Telerik team
 answered on 22 Mar 2019
1 answer
1.0K+ views

In another thread named: "", it was discussed how to set the focus to a grid cell in a KendoReact Grid control. Here's the example provided from that thread:

>>

"This can be done by selecting the desired element based on a query selector and calling its focus method:
      https://stackblitz.com/edit/react-lthy76?file=app/main.js"

<<

That's a pretty good example, however in real UX it doesn't work that way....

Under a normal use case for UX, you would not want the user to have to press a button such as "Focus Input" or "Focus Textbox" prior to then selecting an inline Edit button. What users would more likely want to see is when they press the inline grid Edit button that the focus immediately appears on the particular column that starts the editing.

Thus, in my use case, I have a single editable textfield inside a Grid, and using the code from the example in stackblitz above,

i.e. >>

    let firstInput = document.getElementsByClassName('k-textbox')[0];

    if (firstInput) {

      firstInput.focus();
   }

<<

inside an enterEdit(dataItem) function called from an Edit command cell (from code grabbed from the KendoReact Grid documentation)

the result is that firstInput is always "undefined" and focus is never given to that cell.

BTW, Here's the full enterEdit() routine:

enterEdit = (dataItem) => {
   this.setState({
     originalItem: dataItem
   });
   this.updateGridData(this.state.data, dataItem).inEdit = true;
   this.setState({
     data: this.state.data.slice()
  });
  let field = document.getElementsByClassName('k-textbox')[0];
  if (field) {
    field.focus();
  }
};

Is there a reason why the field is always "undefined"? Could this be a timing issue? Does the focus need to be preset prior to a call for editing?

Can anyone shed some light on this issue?

Thanks,

Jim Minnihan

SKF, Inc.

Stefan
Telerik team
 answered on 22 Mar 2019
1 answer
923 views

I find that I must explicitly set a width in order for a Kendo React Chart to fill the parent's width if it is inside a Kendo React TabStrip.

 

This is true for any version of kendo-react-layout newer than 1.2.0-dev.201806281338.

 

This  demonstrates the issue: https://stackblitz.com/edit/react-armuz6

Notice the chart outside of the TabStrip takes up the available width but the chart inside the TabStrip does not.

Also worth noting that other components that I nest inside of the TabStrip do not exhibit this. They take up the full width as expected. 

Stefan
Telerik team
 answered on 21 Mar 2019
3 answers
152 views

When you add a KendoReact Editor component as a child of a Form component, the toolbar buttons submit the form. This is actually a defect in my opinion, so I filed a bug on it. The buttons are rendered as html button elements without a type attribute, which means they default to submit buttons.  I would still like to use this Editor, so until that is fixed is there currently a way of overriding how toolbar buttons are rendered?

Here's the bug I filed: https://github.com/telerik/kendo-react/issues/219

John
Top achievements
Rank 1
 answered on 20 Mar 2019
1 answer
1.1K+ views

I have products.json file with all categories as object. It works fine if the data format is in the below link but it fails if categories in that json is an array. I am trying to create a react grid with one column from array of category items.

Example: https://stackblitz.com/edit/react-txwobq?file=app/products.json
It works fine with categories block as

<Column field="Category.CategoryName" title="CategoryName" />

in grid code with the below json object

"Category" : {"CategoryID" : 1,"CategoryName" : "Beverages","Description" : "Soft drinks, coffees, teas, beers, and ales"}

But I get the external api in array format for categories like

"Category" : [{"CategoryID" : 1,"CategoryName" : "Beverages","Description" : "Soft drinks, coffees, teas, beers, and ales"}]

I tried reading this value in react kendo grid like this but no luck. What was the mistake I am doing?

<Column field="Category[0].CategoryName" title="CategoryName" />     

 

Stefan
Telerik team
 answered on 20 Mar 2019
6 answers
131 views

Hi,

I see no way to modify the group header template. I don't want to have to alter our data (which I've seen as a proposed solution) or use HeaderCell's, but instead display the total of items grouped in the header. Even better is a way to change the group header title to whatever title we like.

For example, if our dataset contained customers and their orders, we would want to group by customer name and have the number of their grouped orders in brackets in the header title, e.g.:

Customer 1 (3)

Order 1

Order 2

Order 3

Customer 2 (2)

Order 4

Order 5

 

etc. Is this possible?

Ricky
Top achievements
Rank 1
Iron
 answered on 20 Mar 2019
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?