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,
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.
I am putting onchange evet in grid option but when ı edit or add new row the event doesnt fire
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
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
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,
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
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!
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
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.