Telerik Forums
KendoReact Forum
0 answers
167 views

Hello,

I am facing an issue with the Scheduler. When I add a new event in the Scheduler , the resulting event is not displayed properly. For example, if I create a new event between 9:00 AM and 10:00 AM , it will be displayed on my scheduler between 8:30 AM and 9:30 AM. Then , if i click on the event, change view or reload the page , it will display properly between 9:00 AM and 10:00 AM.

I have noticed that the "display gap" is linked to the slotDuration of the view. I have tried to change the slotDuration from 30 min  to 15 min and then the "display gap" was 15 min.

Note that the "display gap" does not appear if i use the default date value when i create an event with 30 min duration for the event. But if i add programmatically a logic like endDate= startDate + 1 hour , then the display gap appears. 

What can i do to solve my problem ?

Dev Stack:

- NextJS : 12.0.10

- Kendo-React-Scheduler : 4.12.0

Here is a gif that show the wrong display at first and then when i click on it , it goes back to proper display  :

Thank you in advance.

Guillaume
Top achievements
Rank 1
 asked on 24 Mar 2022
1 answer
76 views
Our app uses a custom date picker that is not from Kendo (better matched the UI our designers were going for). When I try to create a custom filter menu I can get the menu and then the calendar to open. When I go to select a date I think the filter menu see that as a click outside of menu and it closes.

Also suspect part of the issue is that the date picker uses moment to format dates so there could be a possible mismatch there, although I think I have done what I can to convert this format as needed.
Filip
Telerik team
 answered on 24 Mar 2022
1 answer
68 views

I am trying to highlight the text in a combobox so that I can highlight the text when a user clicks in the combo box.

 

Here is a sample of what I am trying to do:

  <ComboBox
                            className='k-combobox'
                            placeholder='Select Center'
                            data={this.state.centerAccessFiltered }
                            textField="centerDisplayName"
                            value={this.state.selectedCenter}
                            filterable={true}
                            onFilterChange={this.filterChange}
                            onChange={(e) => this.changeCenter(e.target.value.centerID.toString())}
                            clearButton={false}
                            onFocus={this.handleFocus}
                        />

 

    handleFocus = (e) => {
        e.target.element.select()
    }

 

 

This works on the Input Control but not on the ComboBox.  Is there a way to select the current text when as user clicks on the control?

 

 

Konstantin Dikov
Telerik team
 answered on 24 Mar 2022
1 answer
90 views

Are there any React code samples for displaying a grid drop down editor but with multiple columns?

Thanks

Filip
Telerik team
 answered on 23 Mar 2022
1 answer
114 views

Is it possible to have two X axis, one on the top, and one on the bottom?

I'm aware you can have 2 Y axis, but how would you go about doing it for X axis?

Filip
Telerik team
 answered on 22 Mar 2022
1 answer
334 views

Hello,

 

I'm having trouble using the onblur in an input because it is not being triggered on loosing focus of the element but on change of the data entered. My code is below for further referene, I was thinking may be the validator is triggering this behavior? some help would be appreciated.

 

const MyContext = React.createContext({
  updateCompNickname: (value: any) => { },
  updateCompSerialNo: (value: any) => { },
  postCompressorSave: (value: any) => { }
});
/**
* Validator
*/
const inputRegex = new RegExp(/^([a-zA-Z\d\.,%/\-_ ].*)/);
const inputValidator = (value: any) => inputRegex.test(value) ? "" : "Please enter a valid value.";
const NicknameInput = (fieldRenderProps: any) => {
  const { validationMessage, visited, onChange, ...others } = fieldRenderProps;
  const currentContext = React.useContext(MyContext);
  return (
    <div>
      <label htmlFor="nickname-name" className="text-info, label-add-compressors">Nickname</label>
      <Input type="text" name="nickname" placeholder=""
        style={{ height: "30px" }}
        onBlur={currentContext.postCompressorSave}
        onChange={e => {
          fieldRenderProps.onChange(e) // call the Form onChange and then execute any custom logic
          currentContext.updateCompNickname(e.value);
        }}
        {...others} />
      {visited && validationMessage && <Error>{validationMessage}</Error>}
    </div>
  );

};

constAddCompData = () => {

  return (
    <div >
      {<MyContext.Provider
        value={{
          updateCompNickname: updateCompNickname,
          updateCompSerialNo: updateCompSerialNo,
          postCompressorSave: postCompressorSave
        }}
      >
<fieldset className={"k-form-fieldset"}>
                <div className="mb-3">
                  <Field
                    name={"nickname"}
                    component={NicknameInput}
                    validator={inputValidator}
                  />
                </div>
    </div>
  )
}
export default AddCompData
Stefan
Telerik team
 answered on 22 Mar 2022
1 answer
304 views

Hi.

I use the Day, Week and Month view in the Scheduler component. Unfortunatley the component doesn't support a year view which I need so I would like to include that myself from a different source. Question: Is it possible to add a "Year" button to the Scheduler buttons (see screenshot) that would show a custom component in the Scheduler view port when pressed?

Thanks!

Bernd

 

Filip
Telerik team
 answered on 21 Mar 2022
1 answer
246 views

I use the sidebar toggle but why does the kendo reaction chart always break or leave a space if the sidebar is enabled or closed

please give me a solution or code sample

Konstantin Dikov
Telerik team
 answered on 21 Mar 2022
1 answer
98 views
0

I am trying to display a scatterplot from a variable called datadata should contain the x and y values for the scatterplot. The method below is what I am attempting to do to insert the x and y values, however the graph is showing up blank.


let data = []
for(var i = 0; i < sixth_x.length; ++i){

  data.push({xField: sixth_x[i], yField: sixth_y[i]})

}

x is a string, and y is a number. I realize that x is non-numeric, although upon converting to an int, it still fails to display on a scatterplot. Any suggestions would be helpful

This is my method to display the graph


  <ChartSeriesItem type="scatter" data={data} xField="sixth_x"
    yField="sixth_y"/>
</ChartSeries>
Filip
Telerik team
 answered on 18 Mar 2022
1 answer
100 views
how can generate drawer item route for add/edit page and list page.please any one can explain me
Filip
Telerik team
 answered on 18 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?