Telerik Forums
Kendo UI for jQuery Forum
4 answers
683 views

When a web page zoom is different from 100%, the grid column's seems to loose their resize cursorpreventing the user from resizing them.

When the zoom is set back to 100% the user a able to resize the grid again.  Can you confirm if this is a bug?  You can reproduce the problem in the Column Resize Demo

NerdBrick
Top achievements
Rank 1
 answered on 18 Apr 2018
3 answers
538 views
Hi All,

I am using custom commands in a Grid column (provided as array of buttons), which works until I use the standard 'text' attribute captioned buttons. To reduce the column size I am trying to replace the standard button appearance with the Kendo provided icons (seen here), the definition starts like this:
columns: [
    {
        command: [
            { name: "decreaseIndent", click: decreaseIndent, template: "<a class='k-button'><span class='k-icon k-i-arrow-w'></span></a>" },
with CSS override of:
<style type="text/css">
    .k-grid tbody .k-button {
        min-width: 28px;
        width: 28px;
        padding: .1em .4em .3em;
    }
</style>
The column appears properly, however the decreaseIndent function does not get triggered. Can not add the call to the template by onclick either, as the event arguments are lost that way, therefore loosing the vital info of the current row position, so the following does not work anymore:
function decreaseIndent(e) {
    var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
Could someone please advise on the proper approach to have Kendo icons as command buttons and on the same time having a click function with proper event arguments? Tried to find similar topics, but could not find any.

Saif
Top achievements
Rank 1
 answered on 18 Apr 2018
8 answers
852 views
Hi,

I am hooking into the error event to handle errors returned from server.

The server currently sends to client, in case of errors, something like this:
{"errors":[{"id":"b128083a-4027-431b-a04b-7485530e347a","errorMessage":"Account failed to update"}]}

As for the Data Source configuration:
schema: { errors: "errors" }
error: function(e) {console.log(e.errors);}

However, the error event doesn't fire.
Is there something I am missing?

Regards
Bilal
Alex Hajigeorgieva
Telerik team
 answered on 18 Apr 2018
3 answers
904 views

I'm calling options.error() in my destroy function but the row is removed anyway. How to prevent that ?

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Untitled</title>
 
 
<body>
  <div class='grid'><div>
    <script>
      $(".grid").kendoGrid({
        editable:
        {
          mode: "inline",
          confirmation: false
        },
        dataSource:
        {
          transport:
          {
            read: options =>
            {
              options.success([{test: "test", id: 1}]);
            },
            destroy: options =>{
              options.error("error")
            }
          },
          schema:
          {
            model:
            {
              id: "id"
            }
          }
        },
        columns:
        [{
          field: "test"
        },
         {
           command: ["destroy"]
         }]
      })
    </script>
</body>
</html>
Stefan
Telerik team
 answered on 18 Apr 2018
2 answers
307 views

Hi All!

 

There is a UI issue with kendo grd's vertical scroll width into different browsers.

Vertical scroll's width into Safari/Edge is more narrow than into Chrome for example.

I've seen an idea for removing vertical scroll but I can't use this approach because I have a custom icon-button in the very right-top angle of the grid for 'expand all columns' function (see attachment).

Please help, is it possible to set the same vertical scroll width for Edge/Safri browsers as we have for Chrome browser?..

I've attached two screenshots to visualize my question.

Vladimir
Top achievements
Rank 1
 answered on 18 Apr 2018
4 answers
1.1K+ views
I'm trying to control the width of the options displayed in the page sizes part of the pager (used in conjunction with a listview). Right now they seem to be driven by the width of the k-input holding the page-sizes value. The problem is that we have customized the design of our dropdowns to be wider and more spacious, but the options for the page sizes do not reflect that width (yet, this works for explicit dropdownlist widgets) and I can't seem to find a way to control their width. Can you recommend a way (css classes or other properties) to control that?
Chris
Top achievements
Rank 1
Iron
 answered on 17 Apr 2018
1 answer
7.0K+ views

I'm giving custom templates option in kendo select drop down where I need to sort the values ie., here names in ascending or descending order.

Here is my code in customOptions

 

            $scope.customOptions = {
                placeholder: "Select employee...",
                valuePrimitive: true,
                autoBind: false,
                 itemTemplate: '<span class="k-state-default">' +
                '<img src="#:data.imagePath#" alt="edit" width="24px" height= "24px" /></span>' +
                '</span>&nbsp;&nbsp;' +
                '<span class="k-state-default" >#: data.name #</span>',
                tagTemplate: '<span class="selected-value">' +
                '<img src="#:data.imagePath#" alt="edit" width="24px" height= "24px" /></span>' +
                '</span>' +
                '<span>#:data.name#</span>'
            }

 

I tried to give k-sort='asc' in my select dropdown but it didn't worked out..

 <select class="employeeMultiSelect " kendo-multi-select k-ng-model="selectedEmployees" k-data-text-field="'name'"
                k-data-value-field="'id'" k-data-source="employeeList" k-options="customOptions" k-sort='asc'
                k-rebind="customOptions"></select>

 

Tom Daria
Top achievements
Rank 1
 answered on 17 Apr 2018
3 answers
330 views

I'm trying to create an event on right click and drag.

I was able to create an event on right click itself but not able to do so while clicking and dragging of the right mouse button 

I have also applied restriction to events that no event can overlap each other. The problem I'm facing is whenever I click the first right click doesn't create event "Maintenance" from next click onward the event multiplies itself on click and event the right click event doesn't go with the restriction of overlapping also.

My Example

I did try referencing this example also
Refrence Example

Plamen
Telerik team
 answered on 17 Apr 2018
1 answer
303 views

Here is my example code(Delete):

destroy: {
type: 'post',
url: base_url + "delete",
dataType: "json",
contentType: 'application/json; charset=utf-8',

complete: function (jqXhr, data) {

if (jqXhr.responseJSON.success) {
}
else {
}

alert(jqXhr.responseJSON.msg)

console.log(jqXhr, data)

return false;

}

My response json : {"id":null,"success":false,"msg":"操作失败!","response":null}

 

PLS help.

 

Konstantin Dikov
Telerik team
 answered on 17 Apr 2018
5 answers
390 views

Hello:

We are currently evaluating Kendo UI. Our application displays data to end users in two views - a tile view and a tabular view. Users have the ability to slice and dice data using filters in the tile view. We have a use case where users switch from grid view to tabular view and expect that the filters set in the tile view are persisted to tabular view.

We envision tabular view to consist of KendoGrid with multi-select controls as the column headers where users can filter the data. When initializing the grid, we would like to parse the query string variables and convert them to filter object and apply them to multi-select controls and the grid. My question: is it possible to initialize multi-select control and set its value at the time of initialization programmatically? 

Thanks,

James

Neli
Telerik team
 answered on 16 Apr 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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?