Telerik Forums
Kendo UI for jQuery Forum
1 answer
119 views

 

Hi. I want to show a basic grid and I could bring json data but I can't show my data on the page.

My sample data set is here.

{
  "elapsedTime" : 0,
  "status" : "OK",
  "errors" : [ ],
  "message" : "",
  "timestamp" : "2021-11-24 09:50:29",
  "bodyType" : "ARRAY",
  "body" : [ {
    "id" : 88,
    "bloodSugar" : "86"
 
  }, {
    "id" : 89,
    "bloodSugar" : "86"
 
  } ]

}

 

My JS code is here.

$(document).ready(function(){

        $("#grid").kendoGrid({
            dataSource: {
                transport: {
                    read: {
                        url: "my json call url",
                    }
                },
                schema: {
                    model: {
                        fields: {
                            id: {type: "string" },
                            bloodSugar: {type: "string"}
                        }
                    }
                },
                pageSize: 0,
                serverPaging: true,
                selectable: true,
                serverSorting: true
            },
            height: 550,
            sortable: true,
            filterable: true,
            pageable: true,
            columns:  [
                {field: "id", title: "id"},
                {field: "bloodSugar", title: "bloodSugar"}
            ]
        });
    });

I could see the json data at my chrome network console but I can't see the data at html view.

I want to know what is the problem...

please help me. Thank you.

Neli
Telerik team
 answered on 26 Nov 2021
1 answer
191 views

Hello,

I would like to know if I can add a dropdown list for some cells that users can select instead of plain text.

For example, consider the below demo

https://demos.telerik.com/kendo-ui/spreadsheet/datasource

 

Can we have some fixed dropdown values to UnitPrice and Discontinued columns to the same example?

 

Thanks

Neli
Telerik team
 answered on 26 Nov 2021
1 answer
167 views

Hi,

Not a question but more of a comment/bug report:

I use Kendo for Jquery, version kendoui.for.jquery.2021.3.1109. There seems to be a typo in the message file for en-GB. It says:

...options.messages=e.extend(!0,kendo.dataviz.ui.Map.prototype.optionss.messages,{tileTitle:"Map title"}))}(window.kendo.jQuery)

where it should say:

...options.messages=e.extend(!0,kendo.dataviz.ui.Map.prototype.options.messages,{tileTitle:"Map title"}))}(window.kendo.jQuery)

This prevented kendo from working in my localised application. The other languages I use (nl-NL and de-DE) do not contain this typo.

Regards,

Henk

Neli
Telerik team
 answered on 24 Nov 2021
2 answers
232 views

Like subject says - I build in a rangeslider. Now I want it drawn to "scale" => width: 780px ... but every attempt so far has failed 

I tried style= in the <div  it self, then I found you api description , so I build the exact same code from the api-description in my document.ready() function .. only to be greeted with the subject line "rs.resize() is not a function ...

As the remaining Kendo ui stuff is working and also the rangeslider does "everything else" .. conforms to the properties I set in the definition ... 
I'm at the moment without any clue what could lead to the described error message

 

Every help is welcome

my js-code for that matter 
$(document).ready(function () {
$("#rangeslider").kendoRangeSlider({ change: rangeSliderOnChange, slide: rangeSliderOnSlide, min: 0, max: 780, smallStep: 1, largeStep: 10, tickPlacement: "both", }); var rs = $("#rangeslider").getKendoRangeSlider(); rs.wrapper.css("width", "780px"); rs.resize();
});

Sven
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 24 Nov 2021
1 answer
314 views

Hi,
I have an observable array of observables which is linked to a kendo grid as datainput. I am trying to sort it by clicking on column header. I have made the sortable : true. But the issue is when the array is 

self.array = ko.observableArray([{ Cabin: 'eco' }, { Cabin: 'taper' }]); The sorting works

But If the array is 
self.AllocArray = ko.observableArray([{ Cabin: ko.observable('eco') }, { Cabin: ko.observable('taper') }]); then the sorting doesn't work.

Is there any possible solution around this?

Many thanks,

Jason

Veselin Tsvetanov
Telerik team
 answered on 23 Nov 2021
2 answers
413 views

Hello,

 

I am working with diagrams and I need to replace connection textbox for a link.

I tryed setting content, template and visual, but nothing worked.

That does not work, the id I set to the group doest not appear in the HTML :/

Is there anyway to do it?

 

Thanks!

MaiK
Top achievements
Rank 1
Iron
 answered on 23 Nov 2021
1 answer
216 views

I am trying to remove the default upload and clear button using mvvm ?

 

<input id="files" name="files"
           type="file"
           data-role="upload"
           data-async="{ saveUrl: '@Url.Page("/FADT")?handler=FileUpload',  autoUpload: false, multiple:false }"
           data-bind="visible: isVisible,
                            enabled: isEnabled,
                            events: { select: onSelect,  cancel: onCancel, complete: onComplete, success: onSuccess, upload: onUpload }">

 

how do I do that ? Can I use a template with MVVM if so how ?

 

Martin
Telerik team
 answered on 23 Nov 2021
0 answers
147 views

Hi,

 

I am trying to add row level filter textbox while generating dynamic columns and models.

 But, I am not able to make the row level filter while generating the dynamic columns and models.

If I add filterable: {mode: "row"} this is code in my project, the grid is not loading and showing some error.

I used below code for this issue.

Please help me to resolve this issue.

 

 

var model = self.generateModel(gridData);
            var filter = self.filterdateFN(gridData);
            var grid = $(ele).kendoGrid({
                toolbar: ["excel"],
                excel: {
                    allPages: true,
                    fileName: kendo.toString(kendo.date.today(), 'yyyy-MM-dd') + ".xlsx",
                },                
                dataSource: {
                    data: gridData.Data,
                    model: model,
                    pageSize: 50
                },
                resizable: true,
                batch: true,
                pageable: true,
                pageable: {
                    pageSizes: [10,20, 50, 100],
                    numeric: false
                },
                sortable: {
                    compare: customCompare
                },
                groupable: true,
                scrollable: true,
                filterable: {mode: "row"},
                detailInit: grid_detailInit,
                columns: ColumnGeneration(gridData.Data[0]),
                excelExport: _VM_Layout.excelExport,
                dataBound: function (e) {
                    if (self.loadonPannelClick() == 1) {
                        $('.k-grid-content').height(350);
                    }
                    else {
                        $('.k-grid-content').height(150);
                    }          
                   var grid = this;                
                    var dataSource = $(ele).data("kendoGrid").dataSource;
                    if (!dataSource.data()[0].HierarchyData) {
                        grid.wrapper.find('table colgroup col.k-hierarchy-col').width('0px');
                        grid.table.find('colgroup col.k-hierarchy-col').width('0px');
                        grid.tbody.find("td.k-hierarchy-cell a").removeClass("k-icon k-i-expand");
                    }

                    $(".lnkPanelDocument").click(function (e) {
                        
                        e.stopImmediatePropagation();
                        var grid1 = $(ele).data("kendoGrid");
                        var row = $(this).closest("tr");
                        var dataItem = grid1.dataItem(row);
                        self.ViewFile(dataItem);

                    });
                }
            }).data('kendoGrid');

 

Mohan
Top achievements
Rank 1
 asked on 22 Nov 2021
3 answers
261 views

Hi,

In Gantt Chart Day mode, when I scroll timeline part in Day mode, I can't see the Date, hours are only visible (as you can see in attached screenshot).  Can I fix this issue any way?? Fix date after scrolling or something else?? 

 

Thanks in advance.

Neli
Telerik team
 answered on 22 Nov 2021
0 answers
117 views

Hello,

In my solution, I use AngularJs and package @progress/kendo-ui@2018.2.704.

Today I updated the package to latest version and I encountered weird issue regards to kendo dropdownlist.

In place where we use brackets and property name like {{property}}, kendo instead of displaying property value shows {&zeroWidthSpace;{property}&zeroWidthSpace;}.

omegle, cps test

Does anyone know what was changed and produced that issue and how I can fix that?

Jacob
Top achievements
Rank 1
 updated question on 22 Nov 2021
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?