Telerik Forums
Kendo UI for jQuery Forum
1 answer
231 views

Hello All,

I have a gird with several columns, whose data source is a json(RepProjectData) with more than 500 records. with 7 checkboxes in each row.

I need to implement select all feature. In this when a user checks the checkbox on header then all the below checkboxes(in same column) must get selected.

 headerTemplate: "<span class='title-vertical'><input type='checkbox' class='chkheaderBC'> Business Case</span>",

 template: function (e) {
                if (e.RepBusinessCase == true) {
                    return dirtyField(e, 'RepBusinessCase') + '<input type="checkbox" checked class="chkbxBusinessCase1" />';
                }
                else {
                    return dirtyField(e, 'RepBusinessCase') + '<input type="checkbox" class="chkbxBusinessCase1" />';
                }
            }

 

For this, I have written below code on data bound

   $('.chkheaderBC').change(function (e) {

                   checkAll(e, "RepBusinessCase")

  });

chekAll function-

 function checkAll(e, FieldName) {
        displayLoading();
        var checked = e.target.checked;
        var currentGrid = $("#gridGenerateDocument").data("kendoGrid");
        var data = currentGrid.dataSource.view();
        var rowCnt = RepProjectData.length;   
            for (var i = 0; i < data.length; i++) {
                data[i].set(FieldName, checked);
            }
    }

This code is working and solve the purpose when there are <100 records. But when there are >200 records then it is taking longer than expected. Is there any other way to perform this action with minimum time?

Thanks in Advance :)

 

Nikolay
Telerik team
 answered on 01 Nov 2021
1 answer
506 views

Hi Team,

is it possible to show the sort icon to tell user that "column can be sorted by clicking here" when none of the column is sorted.

thanks

Georgi Denchev
Telerik team
 answered on 28 Oct 2021
1 answer
96 views

How can I render a currency when all I have is a number in cents? I've tried with factor set to 0.01 but this only works for the input once it's selected. When not selected it shows 8999,00 while when I select it, goes to 89,99.

I have a reproducer here: https://dojo.telerik.com/uDUdErOG

      $(".currency").kendoNumericTextBox({
        value: 8999,
        format: "c2",
        factor: 0.01,
        min: 0,
        max: 8999,
        step: 1,
        restrictDecimals: true,
        decimals: 2,
        spinners: false,
      });
    });

Hetali
Telerik team
 answered on 27 Oct 2021
1 answer
173 views
I have a grid where the date is being displayed in "MM/dd/yyyy" format. When the Edit button is clicked, a pop up opens up and the data is read into a date picker. The issue is date is displaying in the format "Wed Dec 18 2019 00:00:00 GMT-0600 (Central Standard Time)". How can I format the date to display in dat picker.
Hetali
Telerik team
 answered on 27 Oct 2021
1 answer
150 views

Could you please help me to change the default design of kendo file upload.

I want to display my custom design on the web page for users. Also , I want to give both functionalities like below

 

---------------------------------------------------------

 

Drag and Drop File or Browse File

 

----------------------------------------------------------

Martin
Telerik team
 answered on 27 Oct 2021
1 answer
125 views

Hi,

I'm trying to avoid dragging column in treelist to very first position, since it's kind of checkbox column and must be the first all the time. I wanted to handle columnReorder event (which i handle anyway) and cancel it, but this approach simply does not work. 

Something like

if (e.newIndex === 0)
            {e.preventDefault();}

Have you got any tips, what to try next, please?

 

Regards, Jaroslav

Georgi Denchev
Telerik team
 answered on 27 Oct 2021
1 answer
339 views

Scroll of  Dropdown tree  is not working when navigate through keyboard's down arrow.

We have similar implementation like below link. and in the provided link scroll bar is also not working when we navigate trough keyboard.

Link: https://dojo.telerik.com/oVoboJeq 

Please  let us know solution/workaround for it. 

 

Thanks!!

Martin
Telerik team
 answered on 27 Oct 2021
1 answer
632 views

Hi

I have implemented Kendo Grid with requirement as below.

Overflow-y should always be set to auto despite of number of rows. This is causing the grid row & header misalignment

Can you suggest how to avoid this misalignment with overflow-y: auto style is retained, is there any way to achieve it?

Dojo here : https://dojo.telerik.com/UqAqAGOw

Screenshot below: Page size is 5 with overflow-y set to auto which distorts the alignment 

Georgi Denchev
Telerik team
 answered on 25 Oct 2021
1 answer
252 views

I'm trying to do a excel type filtering for a list of items on the front end. I was able to do it for a text field using data.fieldName but how can this be done for a list of objects? Here is the syntax:

({
                field: "nationalProductId", title: "National Product", values: data.getCachedData(`api/nationalProducts/getDropDown/${sotSummary.region}`), width: 250, filterable: {
                    multi: true, itemTemplate: () => {
                       `<form><label style='padding-right: 8px'>#= data.nationalProductId|| data.all #</label><input type='checkbox' value='#= data.nationalProductId#'/></form>`;
                    }
                }
            }),

In the above nationalProductId is a text value pair list of objects with a count of 9. When executing the code, I get a list of 9 checkboxes that are all undefined. The value of each checkbox = undefined.  Is there a way to get the list of values in my filter?

Dimitar
Telerik team
 answered on 22 Oct 2021
1 answer
213 views

How to add a tool tip to the category label on axis in a chart?

Nikolay
Telerik team
 answered on 22 Oct 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?