Telerik Forums
Kendo UI for jQuery Forum
2 answers
137 views

Hi,

Our Pie Chart Label Path become zigzag and difficult to read after using v2018.1.221. (Before v2013.1.319)

Is there any option to adjust it, thank you ?

 

Regards,

Davis

 

C.F.
Top achievements
Rank 1
 answered on 02 May 2018
9 answers
783 views

Hi

I have a TabStrips that gets the tabs from external source (dynamic) and the scrollable property is not working for me. Here is part of the code, I will appreciate any help.

$("#tabstrip").kendoTabStrip({
tabPosition: "top",
scrollable: true,
dataTextField: "ItemId",
dataContentUrlField: "ItemUrl",
dataSource: dataSourceItem
dataBound: function () {
var tabStrip = $("#tabstrip").data("kendoTabStrip");
tabStrip.select(0);
},
activate: onItemSelect,
});

 

Thank you!!!

Ivan Danchev
Telerik team
 answered on 01 May 2018
5 answers
186 views

Hi support team. 

We are developing an offline application with use of angular 1.6 & kendo ui & jQuery 3.1.1.
We've tried to update a kendo to newest version, but we've hit issue #3446 so we've decided to use latest version, that handles dropdowns correctly - 2015.3.1111. 

I have a following tabstrip control:

1.<div id="tabstrip1" class="tabstrips" kendo-tab-strip k-on-activate="onTabActivate(kendoEvent)" k-content-urls="[ 'NGViews/First.html', 'NGViews/Second.html', 'NGViews/Third.html' ]" k-animation="{open:{effects:false}}" ng-show="contentDisplay">
2.<ul>
3.  <li id="firstTab" class="k-state-active" ng-click="doSmth(0)" >First</li>
4.  <li id="secondTab" ng-click="doSmth(1)" >Second</li>
5.  <li id="thirdTab" ng-click="doSmth(2)" >Third</li>
6.</ul>
7.</div>

When I use Kendo.Ui ver v2014.2.903 Ajax calls from TabStrip looks like that: ".../NGViews/First.html", but when I switch to 2015.3.1111 they starts looking like this: "....NGViews/First.html?_=1501840674365 - this number at the end is increased with every call. So caching mechanism can't read page from cache.

According to documentation this can be overrided in 2017 releases.

Do you know a way to bypass this problem in 2015.3.1111? For us it is critical issue.

I've tried to make $.ajaxSetup({ 'cache': true }); just after referencing jQuery, but it gave me nothing.

Joana
Telerik team
 answered on 30 Apr 2018
1 answer
862 views

Hi, 

We are moving our javascript files to typescript for a number of reasons, but one issue that I have is the calling of this.dataitem whilst inside a class, because the this object refers to the class rather than the calling object. 

 

The current code that was inside the partial is 

function onSelect(e) {

            var dataItem = this.dataItem(e.item.index());
            window.document.getElementById($('summary').val()).innerHTML = dataItem.Summary;
            window.document.getElementsByName($('#id').val())[0].value = dataItem.Id;
        }

 

the code in the typescript class is 

namespace myNamespace{ 

   export class myClassObject

 

   ... other methods

    onSelect(e) {
            var dataItem = this.dataItem(e.item.index()); // This is the line that I am having issue with because of 'this'
            (window as any).document.getElementById(this.spnSummary).innerHTML = dataItem.Summary;
            (window as any).document.getElementsByName(this.nameOfIdField)[0].value = dataItem.Id;
        }

    }

}

 

The Razor that is calling this is (minus bits that are not necessary to this question

 

@(Html.Kendo().AutoComplete()
                          .Name(Model.Name)
                          ...

                          ... 
                          .Value(Model.Value)
                          .Events(e => e.Change("onChange").Select("onSelect")) // <=== these are the methods I need to call. 

 

I am going to need to do this on a number of items in the site, so any and all help would be gratefully received. 

Alex Hajigeorgieva
Telerik team
 answered on 30 Apr 2018
2 answers
372 views

Hi!

I'm having a hard time using the jQuery spreadsheet  to give me a date value in javascript.

after a button click I need to get the value of a cell as a date object. However the range.value() returns a number (not epoch or milliseconds.)

 

//set the value
currentSpreadsheet.activeSheet().range("A1").value(new Date('01/01/2018')) // no problem here
 
var cellValue = currentSpreadsheet.activeSheet().range("A1").value() // in this case, cellValue returns 43101. I need the date. (01/01/2018 in this case)

 

 

How do I convert cellValue to a javascript date?? ... or how do I access the cell so it gives me the date value? I'm not familiar how to convert this number to a Date object.

 

Cell definition (all of this works fine. I only want to get the value and convert it to date):

{
format: kendo.culture().calendar.patterns.d,
transform : function(val){
  if (!val) return '';
     return (new Date(val));
 }
validation :{
                             dataType: "date",
                             showButton: true,
                             comparerType: "between",
                             from: 'DATEVALUE("1/1/1900")',
                             to: 'DATEVALUE("1/1/2100")',
                             allowNulls: !esRequerido,
                             type: "reject",
                             titleTemplate: " bla bla",
                             messageTemplate: "Bla bla"
                         }

 

Any help will be appreciated.

Armando

Dimitar
Telerik team
 answered on 27 Apr 2018
2 answers
128 views
I have two issues.
The first is, when I am using the 'inline' or 'popup' editing, the row I am editing gets deleted on cancel click. I know I need to add an "Id" to the Model in my schema but I'm not sure how to do that using remote data. The data coming over does not have any unique identifiers unless you use and AccountNumber and FeeTypeID together.
Second is I am trying to have the UpdateFunction to just do an AJAX call to send the 4 variables to my controller as JSON. I searched and searched but I cannot edit the Update functionality to only send the current editing row to the controller. It sends every row. 
Here is my Schema,
schema: {
                model: {
                    fields: {
                        AccountNumber: { type: "string", nullable: false, editable: false },
                        Description: { defaultValue: { ID: 1, Description: "Recurring Annual Unified Plan Fee" } },
                        FeeTypeID: { type: "number", editable: false },
                        FeeValue: { type: "string", validation: { required: true } }
                    }
                }
            }

and here is the update click function
function updateCustomFee(e) {
        e.preventDefault();
        var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
        var AccountNumber = dataItem.AccountNumber;
        var Description = dataItem.Description;
        var FeeTypeID = dataItem.FeeTypeID;
        var FeeValue = dataItem.FeeValue;
        alert(AccountNumber);
        $.ajax({
            type: 'POST',
            url: '/Four08b2/EditCustomFeeList',
            data: { "accountNumber": AccountNumber, "description": Description, "feeTypeID": FeeTypeID, "feeValue": FeeValue },
            dataType: 'json',
            success: function (result) {
                alert(result);
            }
        });
    }
Austin
Top achievements
Rank 1
 answered on 27 Apr 2018
1 answer
132 views

Official documentation stays that Kendo UI is compatible with JQuery 3.1.1. However on scheduler there are still issues with that, see example:

https://dojo.telerik.com/AmeGiHAV

 

server filtering is not working when using JQuery 3.1.1.The view is not available because of Deferred changes in JQuery. 

Veselin Tsvetanov
Telerik team
 answered on 27 Apr 2018
1 answer
135 views

Hi, in the following code I am using a sample grid, setting the rowTemplate, altRowTemplate and detailInit properties.

I tested these code with 2016.3.914 in Dojo and the detail button of grid doesn't work. 

The versions in next list we show where code works and not.

 2018 R1 SP1    - 2018.1.221     DOESN'T WORK
 2016 R3 SP1    - 2016.3.1028   DOESN'T WORK
 2016 R3            - 2016.3.914     DOESN'T WORK
 2016 R2 SP2    - 2016.2.714     WORKS WELL
 2016 R2 SP1    - 2016.2.607     WORKS WELL
 2016 R2            - 2016.2.504     WORKS WELL

Currently I updated to 2016.3.914 version so the grid doesn't work.

Could are you tell me why does that occur?  and How could I solved this problem?

<div id="grid"></div>

  // 2018 R1 SP1    - 2018.1.221    DOES NOT WORK
  // 2016 R3 SP1    - 2016.3.1028   DOES NOT WORK
  // 2016 R3        - 2016.3.914    DOES NOT WORK
  // 2016 R2 SP2    - 2016.2.714    WORKS WELL
  // 2016 R2 SP1    - 2016.2.607    WORKS WELL
  // 2016 R2        - 2016.2.504    WORKS WELL
     
var parentObj = this,
rowTemplateString = '<tr class="k-master-row row" data-uid="#: uid #">' +
           '<td class="k-hierarchy-cell"> '+
             '<div class="baseBttn button-expand-schedules #:DeactivatedAll === "0/0" ? '+
          ' \"iconGreyBttn disabledBttn\" : \"iconYellowBttn\"#"><a class="k-icon k-plus" tabindex="-1"></a>'+
                                          '</div> </td>' +
           '<td>#: name #</td>' +
           '<td>#: DeactivatedAll #</td>' +
       '</tr>';
   
  var altRowTemplateString = rowTemplateString.replace('tr class="', 'tr class="k-alt ');
   
$("#grid").kendoGrid({
  columns: [
    { field: "name" },
    { field: "Deactivated"}
  ],
  rowTemplate: rowTemplateString,
  altRowTemplate: altRowTemplateString,
  dataSource: [
    {
      name: "Beverages",
      DeactivatedAll: "0/0",
      products: [
        { name: "Tea" },
        { name: "Coffee" }
      ]
    },
    {
      name: "Food",
      DeactivatedAll: "1/1",
      products: [
        { name: "Ham" },
        { name: "Bread" }
      ]
    }
  ],
  detailTemplate: 'Products: <div class="grid"></div>',
  detailInit: function(e) {
    e.detailRow.find(".grid").kendoGrid({
      dataSource: e.data.products
    });
  }
});


Thanks.

Viktor Tachev
Telerik team
 answered on 27 Apr 2018
1 answer
137 views

Hi,

 

I have a DateTime Picker, but when click, only shows time, not calendar for date show up.

 

This is the script:

 

$("#ItemAuctionDetail_dpScheduleTime").kendoDateTimePicker({ format: "yyyy/MM/dd HH:mm" });

 

The screenshot is attached.

 

Please help me to solve the problem.

 

 

Thanks,

Viktor Tachev
Telerik team
 answered on 27 Apr 2018
8 answers
729 views

Hello, I'm new to Telerik and I wanted to know how I could create a filter pop up with both multi check box filter with the default filter below it. After browsing some examples, I know we can customize a filter for a particular column

filterable: {
  ui: function(element){
    element.<kendo library>{}
  }
}

This only allows one filter mechanic, I was looking for functionality something similar to RadGridView for Silverlight like the image attached. 

 How could I customize my filter pop up to work with two filter mechanics?

 

Thanks,

C

Amreena
Top achievements
Rank 1
 answered on 27 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?