Telerik Forums
KendoReact Forum
1 answer
101 views

Hi folks,

I'm trying to use the Kendo React Drawing API to draw an Image at its' native dimensions. The Image source will be a URL and could be an image not known at code-time but instead specified at run-time.

The documentation found here shows that I first need to specify the Image dimensions before I know what they will be.

const imageRect = new geom.Rect([5, 5], [50, 50]);
const image = new Image('../assets/diego.jpg', imageRect);

 

My issue is that `diego.jpg` may not be 50x50 for example.

How can I use `Image` while also allowing it to be the native image dimensions?

Thanks

Konstantin Dikov
Telerik team
 answered on 06 Apr 2022
1 answer
107 views

Hi, I am new here..

 

I am having trouble on how or what is the best way to render data on _HTML, can anyone help me on this problem?

 

 

this is the current code:

 


Report = (() => {
    let attendance = "";
    const init = async ()=> {
      _HTML.onload();
      _BIND.onload();
    };
    const _HTML = {
      onload : ()=>{
          _UI.renderReport();
      },
      renderReport: () => {
        $("$chart").kendoChart({
          ....
        series:[{
          name: "Total Persons",
          data: counts //dont know why not working
         }]
        ...,
        categoryAxis:{
         categories: parents, //dont know why not working
        }
        ...,
        });
        attendance = $("renderReport").data("kendoChart");
      };
    }
    const _BIND = {
        onload: async () => {
            const _ = _DATA;
            const {parents, counts} = await _.getParents();
            console.log(parents, counts)
            attendance.setDataSource({parents, counts})
            
        }
    }
 })

// the result of console.log(parents, counts) are

 


{
    "parents": [
        "Jokha Alharthi",
        "Vasdev Mohi"
    ],
    "counts": [
        1,
        2
    ]
}

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 04 Apr 2022
1 answer
92 views

is it possible if I use kendo UI's drawer but not for navigation, but a component such as chart like this design :

and make this button to expanded function ?

Filip
Telerik team
 answered on 04 Apr 2022
2 answers
569 views

Hi team,

I'm using React Grid, and I wanted to know if I can add a dropdown list to certain columns header of the grid. Refer to the below example:

 

Here, the last 4 fields (Supp., Lead Plan, Alt Plan, LPG) have a dropdown list that can have Yes/No or some other values. If we select any value from this dropdown, all the rows only for that column will be auto-populated with the selected value. Is there a way to achieve this?

Thanks

Konstantin Dikov
Telerik team
 answered on 04 Apr 2022
2 answers
411 views

Is it possible to use GridColumn and the footerCell prop and have the footer row export in the Excel export?

I see this example, but it's utilizing the ExcelExportColumn, which doesn't have all of the extra things I want (footerCell, custom cell, header class name, filter, etc) - is there a workaround I'm missing?

Thank you!

Janki
Top achievements
Rank 4
Bronze
Iron
Iron
 answered on 01 Apr 2022
1 answer
108 views

Hi Team,

I am using Kendo Grid React. I want to disable weekend on my Datepicker. Please let me know the property to disable weekend on my Datepicker.

Stefan
Telerik team
 answered on 01 Apr 2022
1 answer
76 views

I am generating a bubble chart in my React app, but all items are the same color. Is there any way to have each category automatically show as a different color? I see the colorfield prop, but I don't want to have to manually generate colors, and the number of categories can vary.

Also I've set the legend visible: true, but the legend doesn't appear. Is it possible to have a legend on a bubble chart?

Stefan
Telerik team
 answered on 01 Apr 2022
1 answer
186 views

Hi.

I have setup this test page:

https://stackblitz.com/edit/react-gpfhk9?file=app/main.tsx

The page shows 2 issues:

1) I implemented an external button that should collapse the "Sub Content" pane to the bottom. But instead of collapsing the "Sub Content" pane by moving the divider to the bottom, the divider stays where it is and the "Sub Content" pane gets collapsed to the top.

2) When you just reload the page in its initial state and then click on the triangle button on the divider to collapse the "Sub Content" pane, it shows the same behavior which I described above. But if you just move the horizontal divider a bit up or down and then click the triangle, the divider moves to the bottom as expected.

Is this a bug or am I doing something wrong and can somehow implement a setting so that the behavior will work as expected?

Thanks!

Greetings,

Bernd

Filip
Telerik team
 answered on 31 Mar 2022
1 answer
104 views

Hi,

We use a mix of standard HTML inputs and KendoReact controls in forms in our application. Using v4.10.0 of kendo-react control and kendo-theme-bootstrap packages, we were able to apply the Bootstrap form-control class to both standard HTML inputs and KendoReact controls with no issues. We were also able to apply the Bootstrap is-invalid class for custom validation requirements, again with no issues.

After upgrading to v5 of bootstrap, kendo-react control and kendo-theme-bootstrap packages, the form-control class breaks the appearance of KendoReact controls. Please see the following example modified from the KendoReact ComboBox Overview so that package versions can be easily modified. 

https://stackblitz.com/edit/react-mintjh?file=app/main.tsx

I have left the package at their v4 versions that we were using without issue. If you bump all the kendo-react control, kendo-theme-bootstrap and bootstrap packages to the latest v5 versions in package.json you can see that the controls no longer render properly.

We are committed to the Bootstrap form layout, and we have more standard HTML inputs than KendoReact controls. Can you please suggest classes we can use as equivalents to form-control and is-invalid for the KendoReact controls we use in our forms? Or some other recommended way of using KendoReact controls in HTML forms using Bootstrap styling and custom validation? I can't find any clear documentation on it.

Kind regards,

David

Filip
Telerik team
 answered on 31 Mar 2022
1 answer
93 views

I'm having a strange formatting issue when exporting to PDF. I'm using column-count to divide text in a div into 2 columns. When I export to PDF, some of the text is pushed to the next page. There is plenty of space on the first page for all the text to fit.

I have put a sample of the issue out in StackBlitz that reproduces the formatting issue. I'm probably just overlooking something, but a little help would be much appreciated.

Thanks!

Edit on StackBlitz 

  
Filip
Telerik team
 answered on 30 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?