or
GET http://localhost:3223/DataServices/Application-myDomainService.svc/JSON/UpdateDATA?AUTOID=1&CODE1=code1&CODE2=code2 HTTP/1.1Host: localhost:3223Connection: keep-aliveX-Requested-With: XMLHttpRequestUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11Accept: application/json, text/javascript, */*; q=0.01Referer: http://localhost:3223/Pages/Home.aspxAccept-Encoding: gzip,deflate,sdchAccept-Language: en-US,en;q=0.8Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3Cookie: ASP.NET_SessionId=dl1a5qkkzbsaur0o5qlhuvhf[Authorize] [HttpPost] public String AddFile(int Id, IEnumerable<HttpPostedFileBase> attachments) { Response.ContentType = "text/plain"; return @"{""status"": 0, ""data"": [{""DocumentId"": ""5""}]}"; }
$("#attachments").kendoUpload({ async: { saveUrl: saveURL, removeUrl: removeURL, autoUpload: true }, upload: attachOnUpload, success: attachOnSuccess, error: attachOnError });function attachOnUpload(e) { e.data = { Id: '@Model.Id' } } function attachOnSuccess(e) { var hiddenField = $("#DocumentId"); hiddenField.val(e.DocumentId); } function attachOnError(e) { debugger; //always fires no matter what is returned from controller }
$("#testing_listview").kendoMobileListView({ ...
function testing_show() {
$("#testing_listview").kendoMobileListView({
dataSource: kendo.data.DataSource.create({ data: data_testing_list(), group: "letter" }),
template: $("#testing_listview_template").html(),
headerTemplate: "${value}"
});
}
Thanks for your help
Matt
<script> $(document).ready(function () { $("#netflixTable").kendoGrid({ dataSource: { type: "odata", serverFiltering: true, filter: [{ field: "Name", operator: "contains", value: "Star Wars" }, { field: "BoxArt.SmallUrl", operator: "neq", value: null }], transport: { } }, sortable: true, rowTemplate: kendo.template($("#rowTemplate").html()), height: 200 }); }); </script><input id="slider" class="balSlider" /> <script> $(document).ready(function(){ $("#slider").kendoSlider({ increaseButtonTitle: "Right", decreaseButtonTitle: "Left", min: 0, max: 10, value: 1, smallStep: 1, largeStep: 1, tickPlacement:"both" }).data("kendoSlider"); var slider = $("#slider").data("kendoSlider"); slider.enable(); }); </script>$(document).ready(function () { var crudServiceBaseUrl = '/participant', dataSource = source, batch: true, pageSize: 30, schema: { model: { id: "id", fields: {"id":{"editable":false,"type":"number","label":"ID"},"first_name":{"type":"string","label":"First Name"},"last_name":{"type":"string","label":"Last Name"},"birthdate":{"type":"date","label":"Birthdate"},"social_security_number":{"type":"string","label":"Social Security Number"},"smoker":{"type":"boolean","label":"Smoker"},"vegetarian":{"type":"boolean","label":"Vegetarian"},"miscelaneous":{"type":"string","label":"Miscelaneous"},"active":{"type":"boolean","label":"Active"},"blacklist_comment":{"type":"string","label":"Blacklist Comment"}} } } }); $("#grid").kendoGrid({ dataSource: dataSource, width: 1000, toolbar: ["create"], columns: [{"title":"ID","field":"id"},{"title":"First Name","field":"first_name"},{"title":"Last Name","field":"last_name"},{"title":"Birthdate","field":"birthdate"},{"title":"Social Security Number","field":"social_security_number"},{"title":"Smoker","field":"smoker"},{"title":"Vegetarian","field":"vegetarian"},{"title":"Miscelaneous","field":"miscelaneous"},{"title":"Active","field":"active"},{"title":"Blacklist Comment","field":"blacklist_comment"},{"command":"destroy","filterable":false},{"command":"edit","filterable":false}], editable: "popup", selectable: "row", pageable: true, sortable: true, groupable: true, filterable: true, });});function createGridMission(a){ var element = $("#gridF01").kendoGrid({ dataSource: { data: a, pageSize: 6, serverPaging: true, serverSorting: true }, height: 450, sortable: true, pageable: true, detailInit: detailInit, columns: [ { field: "mission", title: "Mission" } ] }); function detailInit(e) { $("<div/>").appendTo(e.detailCell).kendoGrid({ dataSource: { transport: { read: { url: "/Mob/Client/Tableau?mission=" + a + "&id=" + $("#hidCodeClient").val(), dataType: "json" } }, serverPaging: true, serverSorting: true, serverFiltering: true, pageSize:6, filter: { field: "mission", operator: "eq", value: e.data.mission } }, scrollable: false, sortable: true, pageable: true, columns: [ { field:"periode", title:"Période" }, { field:"debut", title:"Début" }, { field:"fin", title:"Fin" }, { field: "quantite", title:"Quantité" }, { field:"production", title:"Production" }, { field:"facturation", title:"Facturation" }, { field:"solde", title:"Solde" }, { field:"dateSolde", title:"Date solde" } ] }); }}