Telerik Forums
Kendo UI for jQuery Forum
1 answer
440 views

Hi,

I encounter one issue while try to implement the grid to my project:

My current source:

01.skillsGrid_DS = new kendo.data.DataSource({
02.                transport: {
03.                    read:  {
04.                        url: skillsGrid_svc,
05.                        dataType: "json",
06.                        beforeSend: function (xhr) {
07.                            return Core.RESTFulSettings(xhr, site.sessionToken);
08.                        }
09.                    },
10.                    create: {
11.                        url: skillsGrid_svc,
12.                        dataType: "json",
13.                        type: "POST",
14.                        beforeSend: function (xhr) {
15.                            return Core.RESTFulSettings(xhr, site.sessionToken, "POST");
16.                        }
17.                    },
18.                    update: {
19.                        url: skillsGrid_svc,
20.                        dataType: "json",
21.                        type: "POST",
22.                        beforeSend: function (xhr) {
23.                            return Core.RESTFulSettings(xhr, site.sessionToken, "POST");
24.                        }
25.                    },
26.                    parameterMap: function(options, operation) {
27.                        if (operation !== "read" && options.models) {
28.                            return kendo.stringify(postData);
29.                        }
30.                    }
31.                },
32.                serverPaging: true,
33.                batch: true,
34.                pageSize: 20,
35.                schema: {
36.                    model: {
37.                        fields: {
38.                            SkillCode: { type: "number", validation: { required: true} },
39.                            Core: { type: "boolean" },
40.                            YearOfExperienceCodeId: { type: "number", validation: { required: true } }
41.                        }
42.                    }
43.                }
44.            });
45. 
46.$('#SkillsGrid').kendoGrid({
47.                    dataSource: skillsGrid_DS,
48.                    editable: "inline",
49.                    pageable: true,
50.                    toolbar: ["create", "save", "cancel"],
51.                    columns: [
52.                        {field: "ClassificationCode", editor: vm.editor_Classifications,  validation: { required: true } },
53.                        {field: "ElementCode", editor: vm.editor_Elements,  validation: { required: true } },
54.                        {field: "SkillRequired", title: "Skill Required", editor: vm.editor_SkillResource,  validation: { required: true } },
55.                        {field: "Core", width:"75px",  validation: { required: true }},
56.                        {field: "YearOfExperienceCodeId", width:"150px",  validation: { required: true }, editor: vm.editor_YrsExperience, title: "Yrs of Experience"},
57.                        {title: " ", width:"75px", command: "destroy"}
58.                    ]
59.                });

And the issues are:

 - As soon as I click on "CREATE" button, the row I entered gone and replaced by a blank row

 - I want to submit the batch in format below but the requested data is included all columns content

1.[{"SkillCode": "1", "Core": "true", "YearOfExperienceCodeId":"4"},
2. {"SkillCode": "132", "Core": "false", "YearOfExperienceCodeId":"1"}]

I'm looking a lot from the forum and cant find my answers. Could you please help me for more information about it.

Thank you and Best regards,

Daniel
Telerik team
 answered on 20 Jul 2016
1 answer
186 views

This look strange, but it is a requirement of a customer,

I'd like to add a kendo gird as a custom view in kendo scheduler. However, the grid is not involved with scheduler but it should be accessed form the scheduler toolbar and should be displayed inside the scheduler frame.

 

Any suggestions will be greatly appreciated.

Georgi Krustev
Telerik team
 answered on 20 Jul 2016
1 answer
1.0K+ views

I am putting onchange evet in grid option but when ı edit or add new row  the event doesnt fire

 

Daniel
Telerik team
 answered on 20 Jul 2016
3 answers
468 views

Hi all,

 

I'd like a report a bug I seem to be experiencing with the kendo grid when grouping with virtual scrolling.

When collapsing/expanding groups with virtual scrolling enabled, the scroll height of the grid content does not get updated, and this unfolds into all sorts of weird side effects.

 

Does anyone know of a workaround?

 

-Michael

Kiril Nikolov
Telerik team
 answered on 20 Jul 2016
3 answers
214 views

Hi,

Is there any proper way or functionality to transfer data between views. I think currently we can send only using sample.html?<param>=<value> method or need to store in some global variable. If need to send array of data then "?" method will not work. Any other solutions.

 

Thanks,

Velu

Petyo
Telerik team
 answered on 20 Jul 2016
1 answer
231 views

I have a Parent/Child grid and have 2 custom buttons (Show & Delete)

1. On Show button click, I need to get selected child rows data.

2. On Delete Button Click, I need to delete child rows from grid

Appreciate any help.

Best Regards,

Sanjay
Sanjay
Top achievements
Rank 1
 answered on 20 Jul 2016
2 answers
342 views

Hello, 

The endpoints that I'm using to save & remove files with the uploader is implemented as a restful service. The endpoints look something like this: 

POST : api/resource/{resourceId}/attachments 

DELETE api/resource/{resourceId}/attachments/{attachmentId}

The post works no problem. I'm having trouble with the DELETE however because I need to the URL called for each file to include the id of the attachment being deleted.

My config looks like this at the moment:

<input name="files" type="file" kendo-upload k-files="wiz.attachments" k-async="{withCredentials : false,saveUrl : attachmentUrl, removeUrl : attachmentUrl, removeVerb : "DELETE", autoUpload : true}" k-select="onSelect" k-multiple="true"/>

Is it possible for me to change the removeUrl based on the file selected? 

 

Thanks for your help

Dimiter Madjarov
Telerik team
 answered on 20 Jul 2016
9 answers
226 views

This (http://dojo.telerik.com/OpupU) is a Dojo example that prints the length of a remote DataSource's data. When I substitute in a different URL (one running on my local machine) but don't change anything else, nothing gets logged to the console. In particular, the change function is never called.

Here is information about the data I'm trying to pull in:

The JSON data:

[{
  "tradeVolume": "33454327",
  "numberOfTrades": "130498",
  "tradeSizeStdDev": 13048.15096724034,
  "quoteSizeStdDev": 1306.394869511115,
  "medianTrade": 100.0,
  "eightiethTradeSize": 200.0,
  "ninetiethTradeSize": 334.2000000000029,
  "ninetyFifthTradeSize": 334.2000000000029,
  "ninetyEighthTradeSize": 1100.0,
  "ninetyNinthTradeSize": 2000.0,
  "medianQuoteSize": 1000.0,
  "eightiethQuoteSize": 1550.0,
  "ninetiethQuoteSize": 2050.0,
  "ninetyFifthQuoteSize": 2050.0,
  "ninetyEighthQuoteSize": 4300.0,
  "ninetyNinthQuoteSize": 5600.0,
  "ninetyNinthFiveQuoteSize": 7850.0
}]

Screenshots of the Chrome DevTools Network Headers and Response are linked here: https://i.imgsafe.org/6d2625717d.png and https://i.imgsafe.org/6d29a5a600.png
 

Can someone explain why the Dojo example isn't working when I substitute in my url containing the above data and tell me how I could fix it? I wonder if it has to do with the "keep-alive" connection.

 

Thanks!

Gesly
Top achievements
Rank 1
 answered on 19 Jul 2016
1 answer
673 views

Hi,

Is it possible to get a reference to an existing toolbar (created by a template) on the grid and add a button to the toolbar? For clarity, just changing the toolbar template isn't an option for now.

Regards,

Pieter

Dimiter Topalov
Telerik team
 answered on 19 Jul 2016
1 answer
300 views

Hi,

I need to find a way to execute my code (adjust popup size) when panelbar finished to change its size.I currently use expand/collapse methods but they called before animation starts and size start changing. 

 

Thank you.

Dimiter Topalov
Telerik team
 answered on 19 Jul 2016
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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
LLM Kit
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?