Telerik Forums
Kendo UI for jQuery Forum
1 answer
377 views

Hi, I'm working with the Kendo jQuery OrgChart widget and for some reason it is blowing up to a huge size and I haven't had any luck adjusting it. Here is a dojo of the data I'm working with (https://dojo.telerik.com/ibiniBuW). It doesn't seem to have many more nodes than the demos but it automatically takes up a huge amount of space. The dimensions seem to default to height: 2413px and width: 10399px no matter the size of the parent div.

I have tried resizing the div itself and then using styling on the k-orgchart-container class and neither method changed anything. I have also tried setting height, width, and chartArea from within the widget and none of those changes made any difference either.

Any help would be much appreciated, thanks!

Lyuboslav
Telerik team
 answered on 18 Jul 2022
1 answer
158 views
Hi,

I want to create the kendo multi-select using jquery ajax. Using ajax I have sent the request to the server every time when a user types a letter in multi-select. So for that, I have created this Script that is attached below :-

var searchTerm = params.term && params.term != "" ? params.term : islNewsArticle2LastSearchTerm;

var payload ={
  "valueFilters": [
    {
      "field": "preDistLocationIds",
      "values": [
        "2787"
      ]
    },
    {
      "field": "distLocationIds",
      "values": []
    },
    {
      "field": "createdByLocationLevelId",
      "values": []
    },
    {
      "field": "taskLevelId",
      "values": [
        "118"
      ]
    }
  ],
  "rangeFilters": [
    {
      "greaterThanOrEqual": "2022-06-11",
      "field": "startDate"
    },
    {
      "lessThanOrEqual": "2022-07-11",
      "field": "endDate"
    }
  ],
  "sorts": [],
  "limit": 50,
  "q": '+searchTerm+ '
};


var new1 = new kendo.data.DataSource({
  transport: {
                    read: function(s) {
                        $.ajax({
                             delay: 350, // wait 250 milliseconds before triggering the request
                             url: "https://"+'@Session.OrgUrl~'+"/searchapi/taskviews/tasklist",
                             type: "post",
                             data: JSON.stringify(payload),
							 dataType: 'json',
							 contentType: "application/json",
							 beforeSend: function(req) {
           req.setRequestHeader('Authorization', "Bearer @Session.AuthToken~");
       },           
        processResults: function (data) {   
                //console.log("results: "+data.results.length);
                var res = [];
                if(data && data.results){
                    for(var i  = 0 ; i < data.results.length; i++) {
                        res.push({id: data.results[i].objectId, text: data.results[i].title});
                    }
                }
                return {
                    results: res
                }
            },
			complete: function(){
            }
                        });
                    }
                }
});
$("#islTasks").kendoMultiSelect({
        placeholder: "Select Tasks...",
        filter: "contains",
        autoBind: false,
    dataValueField: "objectId",
    dataTextField : "title",
    dataSource : new1
});

Now I am not able to select the value that which user types in multi-select.  So Can anybody help me with this how can I get the multi-select value using jquery and pass it to the variable payload inside "q" 

The basic functionality I want is that when a user searches any term a request sends to the server. This is the payload data that i have to passv i.e,
{
  "valueFilters": [
    {
      "field": "preDistLocationIds",
      "values": [
        "2787"
      ]
    },
    {
      "field": "distLocationIds",
      "values": []
    },
    {
      "field": "createdByLocationLevelId",
      "values": []
    },
    {
      "field": "taskLevelId",
      "values": [
        "118"
      ]
    }
  ],
  "rangeFilters": [
    {
      "greaterThanOrEqual": "2022-06-11",
      "field": "startDate"
    },
    {
      "lessThanOrEqual": "2022-07-11",
      "field": "endDate"
    }
  ],
  "sorts": [],
  "limit": 50,
  "q": '+searchTerm+ '
}
Here q in the last include the value that which user search. Can anybody help me with this 
Lyuboslav
Telerik team
 answered on 18 Jul 2022
0 answers
89 views
Hello,

I am using jQuery Kendo Grid Group and I want to achieve selection and Deselection of all child Records of group when particular group is selected .
qukol
Top achievements
Rank 1
 asked on 16 Jul 2022
0 answers
81 views
kendo.all.min.js:9  multi-select cannot read property 'style' of undefined at init._adjustListwidth
Rajesh
Top achievements
Rank 1
 asked on 16 Jul 2022
2 answers
1.0K+ views

Using Kendo UI for ASP.MVC with jQuery, version 2022.1.301. Here are the steps:

  1. Click in multi select
  2. Drop down appears
  3. Select any item
  4. Drop down closes - This is the issue
  5. Click in the multi select again
  6. Drop down appears
  7. Toggle any item(s) on or off and it will now stay open and work perfectly fine!
  8. Click outside the multiselect and it closes as expected

The issue is step 4. I have been debugging through kendo.all.js and I can provide a small bit of inside. The issue lies at line 64,761 which is a function called _inputFocusout. When I click in the multiselect in step 1, the input box is focused and the cursor is blinking. When I click in it the second time the cursor doesn't show, rather "1 item(s) selected" is showing. So the focus out event doesn't happen now, and it works.

Oddly this works in the demos but I can't see anything I am doing wrong.

@(Html.Kendo().MultiSelectFor(m => m.SelectedEmployees)
   .AutoBind(true)
   .AutoClose(false)
   .BindTo(employeesSmall)
   .DataTextField("NameFirstLast")
   .DataValueField("Id")
   .Name("employees")
   .TagMode(TagMode.Single)
)

Paul
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 15 Jul 2022
1 answer
129 views

Hi,

Reordering rows using the draggable column might seem a bit buggy, as you have to move the cursor to the right before dropping to reorder the rows successfully, as can be seen in the following example https://dojo.telerik.com/ipOyacoH . It would be nice if dragging and dropping directly above and below (inside the draggable column) would work without moving the cursor to the right, but I can't seem to make this work. Could somebody please help me with this?

Thanks in advance!

user192
Top achievements
Rank 1
 updated question on 15 Jul 2022
1 answer
106 views

Hi,

     Like Demo : https://dojo.telerik.com/ExuQuSoT

     Field title and description validation require is set true.

     I have a business need :

     When I choose Meeting Room 201 for Field RoomId, I hope that I can mask or turn off the validation and submit it normal.

     How to realize it?

     Thank you very much for your help. 

     

      

Martin
Telerik team
 answered on 14 Jul 2022
1 answer
97 views

hi

i set  all days in workDays

workDays: [1,2,3,4,5,6,7]
now previous date button not work!

sample

thank you

Lyuboslav
Telerik team
 answered on 14 Jul 2022
1 answer
97 views

hi

i need use MVVM  (dateHeaderTemplate) but can not show anything sample

thank you

Lyuboslav
Telerik team
 answered on 14 Jul 2022
1 answer
108 views

hi

i need use MVVM  (eventTemplate)  but not work sample

thank you

Lyuboslav
Telerik team
 answered on 14 Jul 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?