Telerik Forums
KendoReact Forum
1 answer
193 views

I'm creating a  custom listNoDataRender for autocomplete.

I wanted to add link that either redirects or updates the state, see my code below.

Unfortunately, clicking the button doesn't trigger the  onClick handler, it only closes the suggestion list.

How do i trigger the onClick handler and not close the suggestion list? TIA!

 

import * as React from 'react';
import * as ReactDOM from 'react-dom';

import { DropDownList } from '@progress/kendo-react-dropdowns';

const App = () => {

const handleClick = () =>{
 // update state or redirect here... 
}

 const listNoDataRender = (element: React.ReactElement<HTMLDivElement>) => {
      const noData = (
        <h4 style={{ fontSize: '1em' }}>
 <span className="k-icon k-i-warning" style={{ fontSize: '2.5em' }} />
 <br /><br />
 <button onClick={handleClick}>Did you mean reco..</button>
 </h4>
 );

      return React.cloneElement(element, { ...element.props }, noData);
  }

  return (
    <DropDownList
      style={{ width: '300px' }}
      data={[]}
      listNoDataRender={listNoDataRender}
      />
 );
}

ReactDOM.render(
  <App />,
 document.querySelector('my-app')
);

Stefan
Telerik team
 answered on 02 Feb 2022
1 answer
1.3K+ views

Hi Team,

I am using select row using checkbox in grid using sample here. https://www.telerik.com/kendo-react-ui/components/grid/selection/

but i also enabled pagination, when i select header checkbox all the items in current page is getting selected, is there way to select all rows in all page in a grid?

 

Regards,
M. Seenuvasan

seenu
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 02 Feb 2022
1 answer
164 views
I am currently doing research and exploring the capabilities of the TimelineView component. Part of the requirements of a project I'm working on is that we can schedule events that span a period of weeks and view the scheduled events. In the attached screenshot the date headers I am referencing start with Jun 23. I have also attached a screenshot of the components I am working with. 
Konstantin Dikov
Telerik team
 answered on 01 Feb 2022
0 answers
515 views

Hi.

I use Column Menu Filter in my data grids and I wonder how can I use the DateTime filter on date fields?

Daniel
Top achievements
Rank 1
Iron
Iron
 asked on 31 Jan 2022
2 answers
93 views

I'm having issues in implementing date format on datagrid column. The problem is when the date is null it renders NaN/NaN/NaN. 

Is there way to customize this or at least hide the NaN when the date is null? TIA

 

here's my code

`<Column field="testDate" title="test date" filter="date" format="{0:dd/MM/yyyy}" />`

Filip
Telerik team
 answered on 31 Jan 2022
1 answer
72 views
Hello,

We are using kendo react excel export in our project
One of the header in grouped header column looks like "Arsenal & Arsenal". But when we export we are getting header as "Arsenal &amp; Arsenal".
"&" is replaced with "&amp;"
Is this the issue from telerik side?

Thank you
Konstantin Dikov
Telerik team
 answered on 31 Jan 2022
1 answer
59 views

I created an open/close toggle button on the grid using a custom cell props that triggers a new detail row on the row detail props in the Grid component, how do I use it? and parse setState from component detail row to component button?

and why if the toogle condition is in a false column in the table it always leaves a space? here's an example


Stefan
Telerik team
 answered on 31 Jan 2022
1 answer
66 views

Hi,

 

Can i disable weekends ... or maybe not show a day of a week in DateTime Picker.

For example i don't want my DateTime Picker to show FRI and SAT days

 

is that possible

Thank you

 

Konstantin Dikov
Telerik team
 answered on 31 Jan 2022
1 answer
74 views
In the Scheduler component I would like to use different forms depending on if there is already an entry in a day column or not. Meaning, if there is no event yet on a specific day, I would like to show a different form than if there is already an event.

I have put the code where I use the Scheduler component here:

https://stackblitz.com/edit/react-ts-kyjpoi

This doesn't work of course because of the missing dependencies but I wanted to show you what I've done. The important parts are:

Line 160: Here I hijack the double click event of the slot to determine if there is already an event in the column and depending on the answer, I set the variable isDayEmpty which I use in line 207 to determine the form.

The problem is, that as I have hijacked the double click event, nothing happens anymore when I double click in the Scheduler and the Dialog with the form does not open anymore. How can I trigger the standard double click behavior (open the dialog) using the correct form?
Stefan
Telerik team
 answered on 28 Jan 2022
1 answer
35 views
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?