Telerik Forums
Kendo UI for jQuery Forum
1 answer
109 views

We have check box as first column, there is no scope to resize the checkbox column so we planning to set column width constant.

If I resize or add a column by using column picker, the grid width got changed and all column width got resized based on auto-sizing. so can't maintain same width for first column(CheckBox column).

Is it possible to set fixed width for single column in kendo grid (Cascade/Locked grids)

Viktor Tachev
Telerik team
 answered on 10 Sep 2018
1 answer
1.0K+ views

Hi,
I'm using kendo datepicker in our application and I was thinking to remove the input field and makingthe calendar icon only visible. I did try some css but wasn't able to achieve the require result. Is it possible to show only the icon and if so can we change the icons as required?

 Here is datepicker html

<input kendo-date-picker ng-model="vm.dateModel" k-format="'MM/dd/yyyy'"/>

 

Thanks

Stefan
Telerik team
 answered on 10 Sep 2018
3 answers
87 views

Hello,

i made some changes for the german localisation in the telerik/kendo-ui-core on github.

I have two open pull requests and want to know in what time frame they are handled usually.

Sadly one of the requests failed with an timeout error(?) is there a way to get more details on the error?

We use git at the office all the time but i'm new to github an the hole pull request thing :) 

 

Kind Regards,

Marcus Labohm

Ivan Danchev
Telerik team
 answered on 10 Sep 2018
3 answers
114 views

I'm using DropdownList inside Grid cell. After changes in Grid its DataSource.parameterMap and transport are not called (console.log not printing logs).

allUsersDataSource.fetch(function() {
   allUsers = allUsersDataSource.data();
 })
 
 var assignedUsersDataSource = new kendo.data.DataSource({

    batch: true,

    // autoSync: true,

   transport: {
     read:{
       url: API+"nk/getassignedusers/"+documentId,
       dataType: "json"
     },
     create: {
       type: "POST",
       url: API+"nk/addusertodocument",
       dataType: "json"
     },
     update: {
       type: "POST",
       url: API+"nk/editusertodocument",
       dataType: "json"
     },
     destroy:{
       type: "POST",
       url: API+"nk/removeuserdocument",
       dataType: "json"
     },
     parameterMap: function(data, operation) {
       console.log ("parameterMap");
       if (operation === "destroy" ) {
         console.log("!!!!!!!!!!!!!!!destroy", data.models)
       }
 
       if (operation === "create" && data.UserID) {
         console.log("!!!!!!kendo.stringify(data.models)", kendo.stringify(data.models))
         console.log ("parameterMap: data.models: ",data.models);
         console.log("parameterMap: data.UserID: ", data.UserID)
         console.log("parameterMap: documentId: ", documentId)
         return {
           models: kendo.stringify(data.models),
           user_id: data.UserID,
           document_id: documentId,
           user: user
         };
       }
     }
   },
   change: function(e) {
     console.log("!!!!!!change: e.action:: " + e.action);
     console.log("!!!!!!change: e.action:: ", e);
     console.log("!!!!!!change: e.action:: ", e.models);
     console.log("!!!!!!change: e.action:: ", e.UserID);

     // if(e.action === "add"){
       // assignedUsersDataSource.sync();
       //

}

   },
   pageSize: 4,
   schema: {
     model: {
       fields: {
         UserName: { editable: false, nullable: true },
         Surname: { editable: false, nullable: true },
         UserID: { field: "UserID", defaultValue: 1 },
         GroupName: { editable: false, nullable: true },
       }
     }
   }
 });
 
 var _grid = $("\#grid-single-user-groups").kendoGrid({
   dataSource: assignedUsersDataSource,
   filterable: true,
   scrollable: false,
   // toolbar: ["create", "save"],
   toolbar: ["create"],
   pageable: true,
   columns: [
     {
       field: "UserID", width: "100%",
       editor: userDropDownEditor,
       title: "Agent",
       template: function(userID) {
         for (var idx = 0, length = allUsers.length; idx < length; idx++) {
           if (allUsers[idx].UserNameID == userID.UserID) {
             return allUsers[idx].Login;
           }
         }
       }
     },
     { command: [ "destroy"], title: " ", width: "250px" }
   ],
   editable: {mode: "incell"},
   save: function(e) {
 
     if (e.values.UserID !== "") {
       if (e.values.UserID !== e.model.UserID) {
         console.log("!!!UserID is modified");
       }
     } else {
       e.preventDefault();
       console.log("UserID cannot be empty");
     }
 
     if (e.values.UserName !== "") {
       if (e.values.UserName !== e.model.UserName) {
         console.log("!!!UserName is modified");
       }
     } else {
       e.preventDefault();
       console.log("UserName cannot be empty");
 
     }
 
 
   },
   saveChanges: function(e) {
     if (!confirm("Are you sure you want to save all changes?")) {
       e.preventDefault();
     }else{
       console.log("!!!!confirmeddddddd", documentId)
 
       $.ajax({
         url: API+"nk/removeuserdocument",
         type: 'POST',
         dataType: "json",
         data:
           user: user,
           documentId: documentId
         },
         success : function(response) {
           console.log("Pomyslnie usuniÄ™to wszystkich użytkowników.", response)
         },
         error: function(xhr, status, error) {
           alert(xhr.responseText);
           var err = eval("(" + xhr.responseText + ")");
           console.log("NIE usuniÄ™to użytkowników.", err.Message)
         }
       });
     }
   },
   remove: function(e) {
     console.log("!!!!!Removing", e.model.UserID);
   },
 
   cellClose: function(e){
     console.log('Closing Cell Edit e::', e);
     console.log('Closing Cell Edit e.type::', e.type);
     console.log('Closing Cell Edit e.container::', e.container);
     console.log('Closing Cell Edit e.model::', e.model);
     console.log('!!!! Closing Cell Edit e.model.UserID::', e.model.UserID);
     console.log('Closing Cell Edit e.model.isNew()::', e.model.isNew());
     console.log('Closing Cell Edit e.sender ::', e.sender );
     e.container.find("input[name=id]")
   }
 });
 
 function userDropDownEditor(container, options) {
   $('<input data-bind="value:' + options.field + '"/>')
   .appendTo(container)
   .kendoDropDownList({
     dataTextField: "Login",
     dataValueField: "UserNameID",
     filter: "contains",
     dataSource: allUsersDataSource,
     valuePrimitive:true,
     select: function(e) {
       if (e.item) {
         var dataItem = this.dataItem(e.item);
         console.log("event :: select (" + dataItem.Login + " : " + dataItem.UserNameID + ")");
       } else {
         console.log("nie jest dobrze");
       }
     }
   })
 }

I want to send data in real time and not using save changes button to entire grid.

Alex Hajigeorgieva
Telerik team
 answered on 07 Sep 2018
2 answers
501 views

I have hooked up a datasouce (with serverPaging: true) to both a listview and a pager.

The server returns the correct number of records (and an int indicating the total number of records) from the initial db query, however the pager's navigation buttons are disabled, as if the pager doesn't recognise the datasource.schema.total.

 

Is the combination datasource with serverPaging:true, listview and pager possible?

 

var ds = new window.kendo.data.DataSource({
    transport: {
        read: {
            type: "POST",
            url: url,
            data: function () {
                return {
                    country: 1
                };
            },
            dataType: "json",
            contentType: "application/json; charset=utf-8"
        },
        parameterMap: function (data) {
            return JSON.stringify(data);
        }
    },
    serverPaging: true,
    schema: {
        model: {
            id: "id",
            fields: {
                id: { type: "number" },
                field1: { type: "string" },
                field2: { type: "string" }
            }
        },
        total: 'total'
    },
    pageSize: 50
});

$("#list").kendoListView({
    dataSource: ds,
    template: window.kendo.template($("#tmpl").html())
});

$("#pictures-pager").kendoPager({
    dataSource: ds,
    numeric: false,
    refresh: true,
    messages: {
        display: "{0}-{1} / {2}",
        empty: "",
        itemsPerPage: ""
    },
    pageSizes: [10, 50, "all"]
});

 

Preslav
Telerik team
 answered on 07 Sep 2018
1 answer
217 views

Hi..

How to set multiline in a text message?

I have some texts as below:

Hello this is 1st message.
Hello this is 2nd message.
Hello this is 3rd message.

it shows on fulfillmentMessages like below:

Hello this is 1st message. Hello this is 2nd message. Hello this is 3rd message.

2. How to show youtube channel in a carousel? 

3. openUrl type in suggestionActions not working, below is the json format:

          "suggestedActions": [
            [
              {
                "type": "openUrl",
                "title": "Human Resource",
                "value": "https://youtu.be/FAioXDmZ99E"
              },
              {
                "type": "openUrl",
                "title": "Tour & Travel",
                "value": "https://youtu.be/K1BFaw99vkc"
              },
3. For multiple messages, we expect the chatbot's image on the first of message (see enclosed image, expecting location is on green cicle).
4. how to show typing indicator?

 

please help ..

 

thanks a lot

Win

Nencho
Telerik team
 answered on 06 Sep 2018
3 answers
111 views

Dear Telerik,

 

we have a Grid containing a lot of data.
The Columnfilters-suggestions-dropwdown-list is only showing 26 suggestions starting with 'AW', while there are more than 100 rows starting with 'AW' in the grid.
Please look at the attached screenshot png.

Is there a way to increase the number of suggestions shown in the Columnfilter-dropdown ?

 

Regards,

Henri

Stefan
Telerik team
 answered on 06 Sep 2018
5 answers
467 views
I'm using the KendoDropDown inside the KendoGrid component. I have been trying for three days to display the Text instead of the value. I've use a model and schema, tried with valuePrimitive, dataTextField, template, but anything seems to work... I'm tired of following examples which just don't work. I'm attaching a JavaScript file with the code I'm using.
Tom
Top achievements
Rank 1
 answered on 05 Sep 2018
7 answers
489 views

Hi,
how can I add x-axis labels and gridlines for every full 10 second in format "hh:mm:ss" for this chart: waveform chart ?

The start time is in variable t0, end in tend. The time for an sample n is: t0 + dt * n .

Peter

Tsvetina
Telerik team
 answered on 05 Sep 2018
1 answer
361 views

Hi,

I have a problem with kendo the edit grid popup, i cannot validate empty when i save a data, but popup has been closed Please give a solution about this problem

This is my code

01.if($scope.approveModel.notes == ""){
02. $rootScope.$broadcast(EVENTS.CLIENT.warningResponse, "Notes harus diisi");
03.                     
04.}else{
05. approvalService
06. .save($scope.approveModel)
07. .then(function (response, status, headers, config) {
08.    var grid = $("#approvalGrid").getKendoGrid();
09.    grid.dataSource.read();
10.  });
11.}

 

Thanks

 

*sorry for my bad english

Viktor Tachev
Telerik team
 answered on 05 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?