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.

In multiselect control, when user click delete icons of a selected value , it should alert confirmation message and based on user input "Yes" , "No" it should delete the selection or cancel it.
I tried as below, it shows confirmation popup but is not waiting for user confirmation
$(".k-delete").click(function (e) {
//window.event.cancelBubble = true;
//e.stopPropagation();
currentSelection = s.value()
$("#dlgDeleteSecFromAnalyst").html("Are you sure you want to remove.. clicked.");
$("#dlgDeleteSecFromAnalyst").dialog("open");
})
