Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.1K+ views

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?

Abhinav
Top achievements
Rank 1
 answered on 28 Mar 2016
1 answer
307 views

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?

 

Dimiter Madjarov
Telerik team
 answered on 28 Mar 2016
1 answer
65 views
Unable to edit the data in the grid  when the grid is populated with remote data using AJAX and columns are created dynamically. Is this possible? Are there any code samples?
Radoslav
Telerik team
 answered on 28 Mar 2016
1 answer
118 views
Is there a proposed solution to using UI virtualization and still being able to use Ctrl-F to find data that has loaded to the client but is not currently being displayed?
Nikolay Rusev
Telerik team
 answered on 28 Mar 2016
3 answers
4.3K+ views
Hello,
We want to give the users the ability to upload documents and then click on a button which says upload; this will call a js function that will ask them to verify or acknowledge that the documents they're about to upload are in the correct format/valid signatures etc. and then on approval of this asynchronously submit the upload. 

Is this possible? 

Thank you.
Keith
Vladimir
Top achievements
Rank 1
 answered on 27 Mar 2016
7 answers
1.2K+ views
Hi,
I know that currently you do not have a datepicker in KendoUI mobile.

Firstly, is this a planned release at some point in the near future?

Secondly, I am attempting to use the KendoUI Web datepicker as an alternative inside a mobile application. However when I include both the kendoUI style sheet and the mobile one they massively conflict, causing the datepicker to be un-useable.

Can someone advise how I can use the datepicker inside a webapp for KendoMobile? I have also tried just the standard Jquery datepicker but the same happens, the kendoUI Mobile style sheet causes it to look really bad.

I have attached a screen shot to show what I mean.

Here is some sample code:

<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>


Thanks
Martin
King Wilder
Top achievements
Rank 2
 answered on 25 Mar 2016
1 answer
525 views

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.

Dimiter Topalov
Telerik team
 answered on 25 Mar 2016
1 answer
828 views

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"); 

        })

Dimiter Topalov
Telerik team
 answered on 25 Mar 2016
3 answers
197 views
Can you please share example for "selectable: 'multiselect'" with virtualization enabled for grid. The page size is 50. if data is more than 1000 rows, if user selects all the 1000 rows then select() method always returns 10-55 rows randomly. Also how to maintain the selection with scroll. since grid renders only current page.
Alexander Valchev
Telerik team
 answered on 25 Mar 2016
1 answer
112 views
Help me please
How to  select (<strong> or <b> or ...) the current date, which is at the bottom?
Based on the selected item (::hover ...)
Screenshot:
EZ
Top achievements
Rank 2
 answered on 25 Mar 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
Application
Map
Drag and Drop
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
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?