Telerik Forums
KendoReact Forum
1 answer
699 views

I have a Form and I'm entering some data to the fields and submitting data to backend using OnSubmit method, After submission I wanted to see my page with already submitted data. Instead page is reloading with previous item. I tried to pass new object with all the latest values to form in the Key attribute. But Form is not reloading with the new data that I supplied.

my code like this.

//submit method

var option;

const SubmitData = async (request, e) => {

option = request;

try{

await postData(request).unwrap().then(() => )

}

}

 

// Form

return (
    <Page>
      <Form
        initialValues={workProgramDetailsResponse}
        onSubmit={SubmitData }
        key={option}
       

render={(formRenderProps) => (

<div><FormElement>------</FormElement></div>)}

I'm creating a global variable and trying to pass it in the key. IS this a correct approach? Or key value should match with initialValues(varibale names) - data structure inside both are same.

 

Please help

 

Konstantin Dikov
Telerik team
 answered on 02 Dec 2022
1 answer
159 views

Hi,

I want to ask if is there any way to export grid to excel with a cell's format as a hyperlink.

I tried to use Excel function HYPERLINK but it's only text, not a real hyperlink.

Thanks.

Filip
Telerik team
 answered on 02 Dec 2022
1 answer
771 views

Hi,

I have a numeric input cell in a grid which should accept only integer.

Is it possible to restrict user from entering decimal values?

 

Konstantin Dikov
Telerik team
 answered on 02 Dec 2022
0 answers
417 views

I was asked to look at an existing application and I have exactly zero React experience...  The main form has a KendoReact grid on it, and when clicking on a button on the form, a small modal window pops up (it's not a Dialog, it's Window).

The problem is that clicking the X  to close the popup doesn't do anything at all. Maximize and minimize work, but not the X. It only goes away by refreshing the page.

This is the popup:

    

import { Window } from '@progress/kendo-react-dialogs';

...

public exportCSVFile() { let window = <Window style={{ position: "fixed", marginTop: "-100px", width: "380px", height: "355px", zIndex: "10003" }} title={"REPORT PARAMETERS"}

onClose={this.closeDialog} modal >

<div>..... </div>

</Window> return (<div>{window}</div>)

This is supposed to close it:

    closeDialog() {
        this.setState({
            visibleForm: false,
        });
        this.props.closeDialog()
    }

The line "this.props.closeDialog()" goes deeper to a few other functions, but ultimately it doesn't do anything.

As I said, I don't really know React, but from looking at the code it looks like there should be a relationship between the popup and the main form, and something there is not quite right.

I've seen the sample implementations of Window, but the form I work with creates the window differently than the samples.

Any ideas? I'm not even sure if this could work the way it's done... maybe it wasn't done right initially.

 
nickb
Top achievements
Rank 1
 updated question on 01 Dec 2022
1 answer
396 views

Sometimes the icons of the components do not load correctly, I am using the latest versions of all kendo react packages, below is an example with the dropdown and dateTimePicker.

 

Filip
Telerik team
 answered on 28 Nov 2022
1 answer
117 views

Hello,

I'm looking for a way to lock the column that opens/closes the detail row in a Master-Detail Grid. I can probably use css however I have the next column also locked which dynamically puts it sticky at left: 0, Which would overlap the open/close column. 

 

Any thoughts on how to accomplish this?

 

Thanks,

Bill

Filip
Telerik team
 updated answer on 25 Nov 2022
1 answer
1.0K+ views

I've added a kendo license to our CI service.

I've activated it locally and it I don't see the console logs telling me that I'm missing a license.

The build runs successfully and the logs show the following:

+ echo 'Activate Kendo UI License'

Activate Kendo UI License

+ npx kendo-ui-license activate

(INFO) Kendo UI: Reading license from KENDO_UI_LICENSE environment variable...

(INFO) Kendo UI: License imported successfully.

But when I run the app, I see this in the browser console:

License activation failed for @progress/kendo-react-charts
No license found.

Should there have been an activation success message after 'License imported successfully'?

Filip
Telerik team
 answered on 25 Nov 2022
2 answers
67 views

Hello! I want to define a custom post parameter in react, not just a get parameter.

https://stackblitz.com/edit/react-5u4erk?file=app%2Fmain.tsx

 

now :

 

 

I want payload :  recently, isDeleteList  send.

How can I do it? Thank you!

n/a
Top achievements
Rank 1
Iron
Iron
 answered on 23 Nov 2022
1 answer
60 views
I have a smooth series with lots of points, by default I don't want to show all markers but only a selection. For e.g. I iterate over an array to add markers but there's no way to compose this into the same series item. I've tried using a line/scatterLine with a scatter point on top but this creates two series. Is there a way to make only some markers in a series show? 

Would a hack/option be to provide some outliers
Vessy
Telerik team
 answered on 23 Nov 2022
0 answers
328 views

Hi,

Is it possible to disable the keyboard shortcuts on an ExpansionPanel? I am having a form inside, and every time I fill in a space, the ExpansionPanel is collapsing

Speedy
Top achievements
Rank 1
 asked on 23 Nov 2022
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?