Telerik Forums
Kendo UI for jQuery Forum
1 answer
112 views
This might be obvious to some of you, but I was hoping you could help me.  I've been making some changes to my code and noticed that the grid's navigation/pager now has a "G" on the buttons that should have arrows and an "R" on the refresh button (see attachment).  What typically causes this to happen.  I assume it is a js or css library, but I could be wrong.
Viktor Tachev
Telerik team
 answered on 14 Aug 2017
2 answers
264 views

Hi everyone! Mission is to make donut in donut using local data. I can make one donut by using local, for example:

var data = [{
                "category": "2000",
                "value": 100
            }, {
                "category": "2001",
                "value": 250
            }];

 

dataSource: {
                    data: data
                },
                series: [{
                    type: "donut",
                    field: "value",
                    categoryField: "category"
                }],

how i can insert another donut?
Georgi
Telerik team
 answered on 14 Aug 2017
7 answers
760 views

Hi,

I am rather new to javascript and kendo ui and I try to build a sharepoint solution but came across with 2 issues.

1.) I want to populate a TreeView with the following layout

|_{Fix:Root}

|__{Fix:Lists and libraries}

|___{REST: Library 1}

|____{Fix:Fields}

|_____{REST: Field A}

|_____{REST: Field B}

|___{REST: Library 2}

|___{REST: Library 3}

|___{REST: Library 4}

|--{Fix:Site Columns}

 

Fix: Fix names of the node

REST: nodes received via REST

 

So this means that my ROOT node has 2 fix child nodes. "Lists and libraries" and "SiteColumns". When I expand "Lists and libraries" it should load data from REST URL "A" and if I expand "Site Columns" it should load data from a different URL. How can this be achieved? From what I have read I only can assign one child!?

 

2.) When I click for example on the node "Field A" I want to show a ListView with all fields from the datasource beloning to this node. Is this possible?

 

Thanks for your support.

 

best regards,

Lutz

Nencho
Telerik team
 answered on 14 Aug 2017
6 answers
1.2K+ views
I'm working with the upload feature of Kendo with Angular 4. I have two questions:

1) Is there any way to completely hide any info. messages/remove & re-upload actions that appear after uploading the file?

2) Is there any way to change the "Select" button to just a font-awesome upload icon (with no text)?

Thanks!
Divyesh
Top achievements
Rank 1
 answered on 11 Aug 2017
4 answers
222 views
Hello I have the following simplified scenario written in JSFIDDLE:


In the following example I'm trying to:
1. remove the first item from the main panels collection (works well).
2. remove the first sub panel from panel1 only (not working).

It's interesting to note that i saw this working on an earlier Kendo version number v2012.1.322 but not on the later ones.
Milena
Telerik team
 answered on 11 Aug 2017
2 answers
209 views

Hi,

Am new to Kendo UI Grid, am trying to integrate Kendo with Domino API. Well for updating my backend doc i kind of need to use PATCH, but am trying to use this in Kendo the backend document are getting updated but not reflecting in frontend unless i do a refresh. Below is my sample code. Can someone please help me with this.

 

function loadKendoGrid(){
 $(document).ready(function () {  
var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "/testDB/sample.nsf/api/data/collections/name/locWiseAllNew",
                        dataType: "json"
                      },                    
                    update: {
                        url: function(options) {
                            return "/testDB/sample.nsf/api/data/documents/unid/" + options["@unid"]
                        },
                        contentType: "application/json",
                        type: "PATCH",
                        dataType: "json"
                      },                        
                    destroy: {
                     url: function(options) {
                          return "/testDB/sample.nsf/api/data/documents/unid/" + options["@unid"]
                      },
                      type: "DELETE"
                      },
                    parameterMap: function(options, operation) {                      
                        if (operation == "update" && options) {  
                        var sendData = {};
                        sendData["Charge"] = options["Charge"];
                        sendData["FMNO"] = options["FMNO"];
                        sendData["CSS"] = options["CSS"];
                            return kendo.stringify(sendData);
                            }       
                       }
                    },
                    error: function(r){
                    console.log(r)
                    },
                    schema: {
                    model: {
                    id: "unid",
                        fields: {
                      unid : {type: "string", editable: false, nullable: true },
                      $39: { type: "string", editable: false },
                      $83: { type: "string", editable: false },
                      $91: { type: "string", editable: false },
                      Charge: { type: "string" },
                      $53: { type: "string", editable: false },
                      FMNO:{ type: "string" },
                      $94: { type: "number", editable: false },
                       $95:{ type: "number", editable: false },
                       CSS: { type: "string"}
                        }
                    }
                },    
                pageSize: 20
            });
$("#grid").kendoGrid({
dataSource: dataSource,
            height: 300,
            filterable: true,
            sortable: true,
            pageable: true,
            editable: "inline",
            columns: [ {
                    field: "$39",
                    title: "Day"
                },
                {
                    field: "$83",
                    title: ""
                },
                {
                    field: "$91",
                    title: "CSS"
                },
                {
                    field: "Charge",
                    title: "Charge"
                },
                {
                    field: "$53",
                    title: "VA"
                },
                {
                    field: "VAincharge_FMNO",
                    title: "FMNO"
                },
                {
                    field: "$94",
                    title: "RT"
                },
                {
                    field: "$95",
                    title: "OT"
                },
                {
                    field: "CSS",
                    title: "CSS"
                },
                { command: ["edit", "destroy"], title: " ", width: "250px" }
            ]
        });
 });  
}
Mukilan
Top achievements
Rank 1
 answered on 11 Aug 2017
3 answers
282 views

Hi, 

How to set DataSource's handlers through k-on Attribute? Is there a way to achieve it like this:

k-on-request-start="onRequestStart($kendoEvent)"

k-on-request-end="onRequestEnd($kendoEvent)"

Dimitar
Telerik team
 answered on 11 Aug 2017
3 answers
720 views

Hello, we have a Knedo UI for Angular 2 grid with custom kendoPagerTemplate iin grid footer. the grid data is bound to Observable<GridDataResult>. in additon the grid supports deletion throught grid command. then item is deleted we reload the observable. Interesting part of pager template:

<ng-template kendoPagerTemplate let-totalpages="totalPages" let-currentpage="currentPage" let-pagesize="pageSize" let-total="total">

current page is {{}}

.</ng-template>

 

The issue is that when the totaliItem returned by observable results in change in currentpage variable in footer,, it get set to undefined.

Example;

we have a grid with 10 items per page, and initially observable returned 11 items (GridDataResult.total = 11).so grid footer pagervariables are:

pagesize=10
total=11
totalpages = 2
currentpage=1

we switch to second page, the footer variables are still correct, the only change is:that currentpage is 2 now. All fine.

Now we delete the single item on this second page, and reload the observable. the grid data is correctly  The pager variables become:

pagesize=10
total=10 (updated correctly)
totalpages = 1 (updated correctly)
currentpage=2 (not updated, there are not 2 page anymore)

one would expect currentpage to drop to 1

Currently there is no way of fixing this on our side as those variable are in kendo grid control

 

Dimiter Topalov
Telerik team
 answered on 11 Aug 2017
7 answers
721 views

I am using  The Parent object is set as kendo.Observable . Inside there is Complex object SegmentInfo which is Array of Complex type.

 

1) What would be way to add Item/remove

           I tried below code for adding but worked :
             this..SegmentInfo.push(new this.AirVMList.SegmentInfo());

 

2) I want the first item of SegmentInfo Array not to have Remove button while if length is more than 1 then should render Remove button. How can achieve that?


Below is Template code: 

AirRequestViewModel = kendo.observable({
    AirItem: {
        AirVMList: @Html.Raw(Json.Encode(Model)),
        FlightDestinationSource: new kendo.data.DataSource({
            transport: {
                read: {
                    url: rootUrl("GetData/GetCountry"),
                    dataType: "jsonp"
                }
            },
            serverFiltering: true
        }),
        AddSegment: function(e) {
            debugger;
            this.AirVMList.SegmentInfo.push(new this.AirVMList.SegmentInfo());
        },
        ToggleShowSegmentOptions: function(e) {
            debugger;
            
        },
       SaveAirSegment: function(e) {
            debugger;
            
        }
    }
    
});

 

 

Here is JSON stringified of that object :

"{"AirVMList":{"RequestID":30852,"ReservationRequestItemID":0,"SegmentInfo":[{"Pnr":null,"IsEnable":false,"IsHidden":false,"FareBasis":null,"MiniRuleXML":null,"FullRuleXML":null,"NewClass":[],"lkpStatus":null,"ArriveDepartDetails":{"DepartureDate":null,"ArrivalDate":null,"ArrivalTime":null,"TimeType":"-1","DepartureTime":null,"NumberOfStops":null,"Origin":null,"ViaAirports":[],"via":[],"Destination":null,"ArrivalTerminal":null,"DepartureTerminal":null,"WeekDayNumber":null,"DepartureTimeToDisplay":"","DepartureDateToDisplay":"","ArrivalTimeToDisplay":"","ArrivalDateTime":"/Date(-62135596800000)/","DepartureDateTime":"/Date(-62135596800000)/"},"ID":0,"Note":null,"CabinClass":null,"NewCabinClass":null,"ClassDescription":null,"ClassCodeId":null,"Alliance":null,"isFlown":false,"PCCInfo":{"BookingPccId":0,"BookingPCCCode":null,"CurrencyCode":null,"PricingPccId":null,"PricingPCCCode":null},"BookingOfficeID":0,"BookingOfficeCode":null,"ValidatingCarrierCode":null,"FlightNumber":null,"FlightDuration":null,"MarketingCompanyCode":null,"OperatingCompanyCode":null,"AirlinesFilter":[],"AirlineIds":[],"OperatingCompany":{"AirlineID":null,"airline_value":null,"airline_name":null,"airline_text":null,"AllianceID":null},"ValidatingCompany":{"AirlineID":null,"airline_value":null,"airline_name":null,"airline_text":null,"AllianceID":null},"MarketingCompany":{"AirlineID":null,"airline_value":null,"airline_name":null,"airline_text":null,"AllianceID":null},"SortOrder":0,"SegmentNumber":null,"isSelectedToPrice":true,"Connected":0,"ReservationRequestItemID":0,"ReservationRequestID":0,"OfficePNRTSTID":0,"TstReferenceNumber":null,"Equipment":null,"Quantity":null,"AirlineLocator":null,"Status":null,"TypeDetail":null,"ChangeOfEquipment":false,"OfficePNRID":null,"Qualifier":null,"SegmentName":null,"LineNumber":null,"SegmentDetailsToDisplay":"                 ","SegmentDetailsToDisplayPricing":"    "}]},"FlightDestinationSource":{"options":{"data":null,"schema":{},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":true,"serverGrouping":false,"serverAggregates":false,"batch":false,"transport":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetCountry","dataType":"jsonp"}}},"_map":{},"_prefetch":{},"_data":[],"_pristineData":[],"_ranges":[],"_view":[],"_pristineTotal":0,"_destroyed":[],"_group":[],"_shouldDetachObservableParents":true,"_events":{"change":[null,null],"progress":[null],"error":[null]},"transport":{"options":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetCountry","dataType":"jsonp"}},"cache":{}},"reader":{},"_online":true,"select":null,"table":null},"FlightOriginSource":{"options":{"data":null,"schema":{},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":true,"serverGrouping":false,"serverAggregates":false,"batch":false,"transport":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetCountry","dataType":"jsonp"}}},"_map":{},"_prefetch":{},"_data":[],"_pristineData":[],"_ranges":[],"_view":[],"_pristineTotal":0,"_destroyed":[],"_group":[],"_shouldDetachObservableParents":true,"_events":{"change":[null,null],"progress":[null],"error":[null]},"transport":{"options":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetCountry","dataType":"jsonp"}},"cache":{}},"reader":{},"_online":true,"select":null,"table":null},"ViaSource":{"options":{"data":null,"schema":{},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":true,"serverGrouping":false,"serverAggregates":false,"batch":false,"transport":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetCountry","dataType":"jsonp"}}},"_map":{},"_prefetch":{},"_data":[],"_pristineData":[],"_ranges":[],"_view":[],"_pristineTotal":0,"_destroyed":[],"_group":[],"_shouldDetachObservableParents":true,"_events":{"change":[null,null],"progress":[null],"error":[null]},"transport":{"options":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetCountry","dataType":"jsonp"}},"cache":{}},"reader":{},"_online":true,"select":null,"fields":[{"field":"Code"},{"field":"Code"}],"table":null,"_requestInProgress":false},"AirlineIdsSource":{"options":{"data":null,"schema":{},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":true,"serverGrouping":false,"serverAggregates":false,"batch":false,"transport":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetAirLines","dataType":"jsonp"}}},"_map":{},"_prefetch":{},"_data":[],"_pristineData":[],"_ranges":[],"_view":[],"_pristineTotal":0,"_destroyed":[],"_group":[],"_shouldDetachObservableParents":true,"_events":{"change":[null,null],"progress":[null],"error":[null]},"transport":{"options":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetAirLines","dataType":"jsonp"}},"cache":{}},"reader":{},"_online":true,"select":null,"fields":[{"field":"airline_value"},{"field":"AirlineID"}],"table":null,"_requestInProgress":false},"ClassSource":{"options":{"data":null,"schema":{},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":true,"serverGrouping":false,"serverAggregates":false,"batch":false,"transport":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/Get_Air_Class_Details","dataType":"jsonp"}}},"_map":{},"_prefetch":{},"_data":[],"_pristineData":[],"_ranges":[],"_view":[],"_pristineTotal":0,"_destroyed":[],"_group":[],"_shouldDetachObservableParents":true,"_events":{"change":[null,null],"requestStart":[null],"requestEnd":[null],"error":[null]},"transport":{"options":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/Get_Air_Class_Details","dataType":"jsonp"}},"cache":{}},"reader":{},"_online":true,"select":null,"table":null,"_requestInProgress":false},"AllianceSource":{"options":{"data":null,"schema":{},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":false,"serverGrouping":false,"serverAggregates":false,"batch":false,"transport":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetAlliance","dataType":"jsonp"}}},"_map":{},"_prefetch":{},"_data":[],"_pristineData":[],"_ranges":[],"_view":[],"_pristineTotal":0,"_destroyed":[],"_group":[],"_shouldDetachObservableParents":true,"_events":{"change":[null,null],"requestStart":[null],"requestEnd":[null],"error":[null]},"transport":{"options":{"read":{"url":"http://localhost:59581/(S(pg0arg24gujfart2pao3owg5))/GetData/GetAlliance","dataType":"jsonp"}},"cache":{}},"reader":{},"_online":true,"select":null,"table":null,"_requestInProgress":false},"TimeTypeSource":{"options":{"data":[{"Text":"None","Value":"-1"},{"Text":"Departs","Value":"D"},{"Text":"Arrives","Value":"A"}],"schema":{},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":false,"serverGrouping":false,"serverAggregates":false,"batch":false},"_map":{},"_prefetch":{},"_data":[{"Text":"None","Value":"-1"},{"Text":"Departs","Value":"D"},{"Text":"Arrives","Value":"A"}],"_pristineData":[{"Text":"None","Value":"-1"},{"Text":"Departs","Value":"D"},{"Text":"Arrives","Value":"A"}],"_ranges":[{"start":0,"end":3,"data":[{"Text":"None","Value":"-1"},{"Text":"Departs","Value":"D"},{"Text":"Arrives","Value":"A"}],"timestamp":1501735038827}],"_view":[{"Text":"None","Value":"-1"},{"Text":"Departs","Value":"D"},{"Text":"Arrives","Value":"A"}],"_pristineTotal":3,"_destroyed":[],"_group":[],"_total":3,"_shouldDetachObservableParents":true,"_events":{"change":[null,null],"requestStart":[null],"requestEnd":[null],"error":[null]},"transport":{"data":[{"Text":"None","Value":"-1"},{"Text":"Departs","Value":"D"},{"Text":"Arrives","Value":"A"}]},"reader":{},"_online":true,"select":null,"table":null,"_requestInProgress":false,"_aggregateResult":{}}}"
Joana
Telerik team
 answered on 11 Aug 2017
3 answers
493 views

Hello,

we use Kendo Ui for ANgualr 2 grid with sorting. Out of the box the column with sorting enabled can be in 3 possible states: sorted asc, sorted desc or not sorted. chages in grid sorting update boutd sort property wit current array of SortDescriptors. When column is sorted  SortDescriptor is added to array of Sortdescriptors and specifies the field and direction of sort.

If column is not sorted it should not be present in SortDescriptor array. However if column is clicked until it is unsorted again, its SortDesriptor stays in array with direction 'undefined'. This is incorrect, it should disappear from array. Also according to Kendo type definition direction can only have value 'asc' or 'desc' but not 'undefined' 

Dimiter Topalov
Telerik team
 answered on 11 Aug 2017
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
ContextMenu
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
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?