Telerik Forums
Kendo UI for jQuery Forum
1 answer
129 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.1K+ 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
110 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
155 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
547 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
265 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
138 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
496 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
519 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
391 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
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?