Telerik Forums
KendoReact Forum
1 answer
232 views

 

let gridPDFExport;

constexportPDFss= () => {

 
    if (gridPDFExport) {
      gridPDFExport.save();
    }
  };

 

 <PDFExport
paperSize="A4"
forcePageBreak=".page-break"
pageTemplate={PageTemplate}
margin={{
top: "6.5cm",
left: "1cm",
right: "1cm",
bottom: "3.5cm",
}}
ref={(pdfExport) => (gridPDFExport = pdfExport)}
>

 

I am using this type of code, but I have some conditions that can be applied. I am clicking the save print button. The PDF background colour is red. After saving is completed, it can be set to a green colour. How to fix these issue  beacuse I am prrint a PDf is always set a Green color in print time 

Konstantin Dikov
Telerik team
 answered on 17 Jan 2024
1 answer
172 views

Greetings,

I found out that the External filter allows the user to type in the first DropDownList to search for the column name before selecting it.
Is it possible to change the first DropDownList onChange function to delay an action until the user stops typing before triggering the search?

Please help, thanks!

 

Jason

Vessy
Telerik team
 answered on 16 Jan 2024
1 answer
121 views

Hi,

 

Is there a way to sort the checkboxes when using GridColumnMenuCheckboxFilter? Please see the attached image.

 

Thanks,

Jie

Wissam
Telerik team
 answered on 15 Jan 2024
1 answer
218 views

Hello,

After updating to 7.0.2 all my kendo react packages i have noticed that my form don't reset  values in fields when calling formRenderProps.onFormReset(). Previously on versions 5.19.0 it worked like a charm, i would just call onFormReset and all values would be cleared in all the fields.

I have managed to solve the issue with the key state but it feels like a hack and a workaround since that triggers a rerender and there is a function built in to solve that. I also don't like the ref approach because I can't type the ref in TS. All in all, the best would be if formRenderProps.onFormReset would work like before and clear all the values in all the fields.

Here is demo from your page with all 7.0.2 and it doesn't clear the values:

Form 7.0.2

Here is same example i just changed the @progress/kendo-react-form to version: 5.19.0 and it clears the values:

Form 5.19.0

Best regards.

Wissam
Telerik team
 answered on 15 Jan 2024
0 answers
125 views
I'm currently trying to implement an excel export feature, and while it is very easy to implement for a singular grid, I've seen no demonstrations with this being done with nested grids/expandable rows. I currently have grids nested within each other with Kendo's expandable rows feature.

The implementation of these grids are spanned across multiple files, and I'm wondering if it would be possible to export the data from all of them into a singular excel sheet. 
Jonathan
Top achievements
Rank 1
 asked on 15 Jan 2024
0 answers
82 views

So here i am after 3 days of struggling with kendo excel sheet, i have this use case that i want to apply. 

I have data that i am showing on kendo spreadsheet. there is the one column under the name values and other columns are disabled,  that values column can be changed and applied at the same time in another column right by its side that is also disabled. 

Also the change in the value column and the new data that has been now modified with the new values in the excel i want it to be saved with me so i can use it.

is it possible in kendoReact spreadsheet ?

if yes, than can any one explain it step wise to me with proper basic code example of the kendoReact spreadsheet that will be great and appreciated. Also i am working on react.


Thanks

naveed
Top achievements
Rank 1
 asked on 12 Jan 2024
3 answers
146 views

Hello,

I recently asked a question about an infinite form re-render, and I was able to track it down to a problem misusing the Field component's validator prop.  Unfortunately, I'm struggling to achieve the desired functionality using kendo-react's recommended usage.

We'd like to be able to have a set of reusable and minimally customizable validators, for example, a length validator with a configurable maxLength value.

Here's what we have so far:


importReactfrom'react';
import { Field, FieldArray, Form, FormElement, FormRenderProps, FormSubmitClickEvent, FormValidatorType, KeyValue } from'@progress/kendo-react-form';
import { lengthValidator } from'./validators.tsx'exportconstUserForm = (props: UserFormProps) => {

    return (
        <Form
            render={() => {
                console.log("Form Render");
                return (
                    <FormElement>
                        <div className="form-content-container" style={{ overflowY: "scroll" }}>
                            <Field
                               name="test"
                               component={FormInput}
                               validator={lengthValidator(10)}
                           />
                        </div>
                    </FormElement>
                );
            }}
        />
    );
};


export const lengthValidator = (maxLength: number) => {
    return (value: any, _valueGetter: (name: string) => any) => { 
        if ( value ) {
            const valueStripped: string = value.replace(stripMaskRegex,""); 
            if ( valueStripped.length > maxLength ) {
                return  " Cannot exceed length " + maxLength;
            }
        }
        return undefined;
    };
};


Here is a stackblitz session demonstrating what we're wanting to do.  As you can see, it causes an infinite loop, as demonstrated by the re-render log in the Form's render function.

https://stackblitz-starters-oys53t.stackblitz.io

Obviously we are not doing this in the correct way, but I'm hoping someone can show me that there is a way to correctly create reusable validators that can take configuration arguments like this maxLength on a per-field basis.

Thanks!

Ronald
Top achievements
Rank 1
Iron
 answered on 12 Jan 2024
0 answers
73 views

Hi

I'm using a line chart in my project, but I don't want to show or hide the corresponding line by clicking on the legend. I blocked the default click event, but the hand pointer still remains when the mouse is over the legend. Is there any way to solve this?

Looking forward to your reply, thank you.

Regards,
Sunny

Hu
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 11 Jan 2024
1 answer
112 views
When we hover one of the lines, the other lines will become translucent. However, when our mouse moves out of the chart from below, the lines in the chart cannot be highlighted again. you can check in B3sr7l (forked) - StackBlitz
Wissam
Telerik team
 answered on 08 Jan 2024
1 answer
187 views

Greetings,

Is there a way to implement a search column text functionality inside the dropdown from the external filter?

The user can easily find their column name instead of scrolling through it one by one.

I have attached an image for the example. Thanks!

 

Jason

Filip
Telerik team
 updated answer on 04 Jan 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?