searchGrid = $("#SearchGrid").kendoGrid({ scrollable: false, selectable: "multiple row", autoBind: false, dataBound: gridDataBound, select: rowSelected, columns: [ { field: "Book.Code", title: "Kitap", width: 60 }, { field: "No", title: "Poz No", width: 100 }, { field: "Description", title: "Tanım" }, { field: "Unit", title: "Birim", width: 60 }, { field: "UnitPrice.Value", title: "Birim Fiyat", template: '#= kendo.format("<b>{0:yyyy}</b> : {1:c}", new Date(UnitPrice.Date), UnitPrice.Value) #', width: 120 } ], dataSource: new kendo.data.DataSource({ serverFiltering: true, serverPaging: true, transport: { read: { url: "/Api/Item", cache: true }, parameterMap: function () { var searchText = searchSuggest.data("kendoAutoComplete").value(); var bookID = books.data("kendoDropDownList").dataItem().ID; var searchField = searchFields.data("kendoDropDownList").dataItem().Value; var priceYear = priceYears.data("kendoDropDownList").dataItem(); return { searchText: searchText, bookID: bookID == "" ? "null" : bookID, searchField: searchField, priceYear: priceYear == "Tüm Yıllarda" ? "null" : priceYear }; } } }) });In the last few days, whenever I try to enter http://dojo.telerik.com/ I get an error page from http://my.modules.io/ saying the application dojo.telerik.com was not found.
Is this a local problem on my end (and if so - how do I fix it?), or is it a global issue (in which case - is there an expected time for this to be fixed?)
Thanks.
Hello,
I noticed that the grid doesn't perform validation when the user click on the save button, when the grid has incell editing activated. The validation only occurs when the user modifies one cell.
If you create a new row and then click the save button, you save the row without validation.
You can see the problem here, just add row and then click save:
http://dojo.telerik.com/UNIgi
look at the field "productName".
There is any way to solve this?
Thank you.
Hi,
I am working on kendo grid where i have a scenario in which i want a grid to show record based on batch of record ( i mean, if there are 300 records in a database then when a grid loads i want to show 10 records at a time, i have an working api for this and grid is responding well to that). I need next batch of data to be shown by hitting the next or last button in pager nav in the grid but it is disabled by default (if have set pagesize for grid is set to 15).
I am trying to remove k-state-disabled class for grid-pager div for next and last button, which is not working for me (may be i am missing something).
( $('.k-grid-pager').find('a.k-pager-last').removeClass("k-state-disabled"); ). I tried changing the class name as well but that also doesn't work.
Can you suggest a way to enable pager-nav's next and last button by default, irrespective to the records in the grid?
Hi,
i have a problem with passing value with k-on-save event.
this is the html code:
<div kendo-grid
id="LineGrid"
k-data-source="lineCtrl.linesList"
k-editable="'inline'"
k-selectable="'single'"
k-on-save="lineCtrl.OnSaveEventHandler(e)"
k-toolbar="['create']"
k-sortable="true"
k-scrollable="false"
k-filterable="true"
k-pageable="{ 'refresh': false, 'pageSizes': true }"
k-columns="lineCtrl.LineDataSourceColumns"
kx-selected-item="lineCtrl.CurrentLine"
kx-instance="lineCtrl.LineGrid"
class="bm_grid">
</div>
this is the function OnSaveEventHandler:
public OnSaveEventHandler(e)
{
alert("OnSaveEvent: " + e);
}
when i click on the update button, the alert show "OnSaveEvent: undefined".
i want to pass the value to the function
how can i solve it?

<div id="datePicker" style="width: 95%; height: 10em;" data-role="modalview"> <div data-role="header"> <div data-role="navbar"> <span>Choose a date</span> <a data-click="closeModalView" data-role="button" data-align="right">Cancel</a> </div> </div> <div style="text-align: center;"> <!-- Date picker goes here --> <p>Date: <input type="text" id="date1" /></p> </div> </div> <script> function dateChooseClick(e) { $("#datePicker").kendoMobileModalView("open"); $("#date1").kendoDatePicker(); } function closeModalView() { $("#datePicker").kendoMobileModalView("close"); } </script>Hello,
I have a validator set up on my form. I have several fields listed as required with data-required-message attributes to display specific messages.
I also have a custom rule to compare two password fields to make sure they are the same:
$frmCreateUser.kendoValidator({ validateOnBlur: true, rules: { passwordmismatch: function (input) { if (input.is('[data-passwordmismatch-msg]')) { var password = $.trim($password.val()); var password2 = $.trim($password2.val()); return (password === password2); } } } }); var validator = $formContainer.data('kendoValidator');
$frmCreateUser.submit(function (event) { event.preventDefault(); console.log('submit'); if (validator.validate()) { console.log('valid'); userViewModel.save(); } else { console.log('invalid!'); } });
What is happening is even when all of the required rules pass and the password mismatch rule returns true, the validator still returns false. If I remove the custom rule everything works fine.
Any help would be greatly appreciated.