Telerik Forums
KendoReact Forum
2 answers
315 views

Here's a demo: https://stackblitz.com/edit/react-yr7z7g?file=app%2Fmain.jsx

In the example, there are two different columns which are available for inline editing.

The first column "GridDataCell (Retains Focus)" is working as expected, and can be filled without issue.

The second column "ExternalDataCell (Loses Focus)" is not working as expected. After typing a character into the input, focus is lost and the user must refocus before typing another character.

The difference between the two is that the custom cell for the first column is updating the data state that is provided to the Grid, while the second column is using a separate state to store any Inedit data changes, and also reading the current value from that separate state.

Is there some way to achieve the setup of the second column without the behavior I'm seeing?

Micah
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 25 May 2022
1 answer
117 views

I have a same issue in a last question from someone.

last character is still missing when onChange is called.

ProseMirror that Shane said is not working for me.

 

Source code is simple

<Editor tools={[
        [Bold, Italic, Underline, Strikethrough],
        [Subscript, Superscript],
        [AlignLeft, AlignCenter, AlignRight, AlignJustify],
        [Indent, Outdent],
        [OrderedList, UnorderedList],
        FontSize,
        FontName,
        FormatBlock,
        [Undo, Redo],
        [Link, Unlink, InsertImage, ViewHtml],
        [InsertTable],
        [AddRowBefore, AddRowAfter, AddColumnBefore, AddColumnAfter],
        [DeleteRow, DeleteColumn, DeleteTable],
        [MergeCells, SplitCell],
      ]} contentStyle={{
        height: 320
      }}
        onChange={changeEventHandler}
     

/>

 const changeEventHandler = (e) => {
    if (e.target.view) {
      const view = e.target.view;
      if (view) {
        let htmlTxt = EditorUtils.getHtml(view.state);
        console.log(htmlTxt)
        // props.setContent(htmlTxt);
      }
    }
  }

 

 

 

"5" is missing!

How can I solve this?

 

Konstantin Dikov
Telerik team
 answered on 24 May 2022
2 answers
315 views

Hi,

I have 2 questions:

1) How can i set the checkIndeterminate property? I tried just setting item.checkIndeterminate  = true, but nothing happened. Please advise as i cannot find any docs that detail this attribute.

2) Is is possible to NOT render a specific tree node without removing it from the dataset. I looked at the TreeView.item but it doesnt control the entire node, just the text after the expand/checked elements.

Thanks in Advance,

Grant

Ina
Telerik team
 answered on 24 May 2022
1 answer
116 views

Hi.

I have a Scheduler component in my app and I have added a custom form for editing the values of the Scheduler events. This all works fine. The only thing I couldn't figure out is how to influence the "save" and "cancel" buttons of the Scheduler form (see attached screenshot from your example app).

What I would like to do:

- use a custom React context to influence the save button's disabled state (set it to disabled depending on a boolean value of the parent component)

- translate the "save" and "cancel" labels of the buttons.

Could you please give me an example on how I could do that?

Thanks,

Bernd

Ina
Telerik team
 answered on 24 May 2022
1 answer
65 views

I created a custom grid cell to preselect and disable some columns based on the state, but now I am unable to select any checkboxes.

Is there a way to use the custom cell to set the checkbox values and keep the selection and selection state working the same? 

      <td colSpan={props.colSpan} role={'gridcell'} aria-colindex={props.ariaColumnIndex}>
        <input
          disabled={ifAttached} // value from state
          type="checkbox"
          checked={ifAttached} // value from state
        />
     

</td>

Ina
Telerik team
 answered on 24 May 2022
1 answer
392 views

Hello,

Is there any easy and elegant way to fill remaining space with grid?
Imagine there's an AppBar at the top, a footer at the bottom and I want to fill entire middle space with grid that contains too many rows to display them without overflowing, so there has to be a working scrollbar.

Thank you for any help.

Filip
Telerik team
 answered on 23 May 2022
1 answer
135 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
880 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
108 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
114 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?