Telerik Forums
Kendo UI for jQuery Forum
1 answer
175 views

As the titles says, you can try it for your self in your own demo, http://demos.telerik.com/kendo-ui/grid/editing-popup with an IPad.

Open the popup for editing and you can still scroll the grid in the background. You can also try to move the popup, but instead you scroll the grid.

This is a big problem if the modal window is so big that you have to move/scroll the window. If you try to do that you only scroll the grid behind the modal window and everything seems stuck...

Stefan
Telerik team
 answered on 10 Mar 2017
2 answers
521 views

Hello!

 

We are currently using the Kendo UI Grid component to display data about people. Right now, for each column we can have one or two filters by setting the option extra to 'true'.

 

But now we need more filters. We need to be able to add dynamically more than two filters. Is there an out-of-the-box way to achieve that? Our idea is to add an extra button next to the 'Apply' and 'Clear filter' buttons that allows us to add another filter.

We noticed that the filter are using binding, is there a way to use it to add more filters?

 

Best Regards

Jyothsna
Top achievements
Rank 1
 answered on 10 Mar 2017
3 answers
70 views

Hello, please see the attached image. The filter by value on my spreadsheet has the checkbox overlapping the values.How can I fix this...any help would be appreciated.

 

Thanks!

Phani

Ivan Danchev
Telerik team
 answered on 10 Mar 2017
2 answers
2.6K+ views

Hi,

 

Is there a way to instantiate a blank NumericTextBox when editting a "Number" field who's value is 0?

In other words, if I have numeric fields in my grid and their value is 0, I want to show the 0 on the grid. And when the user edits the field, I'd like to a NumericTextBox to show with no value. If the user does not give a new value, and 'blurs' the text box, the underlying value in the text box does not change.

Currently, when I edit a number who's value is 0 or null, the 0 shows in the text box. I just think it would be a better user experience if the 0 disappeared when editing the value.

Here is my attempt at such an editor. This is not working since this code will change the datasource value to null if textbox is left blank, which triggers the grid save event, and a whole host of other things.

 

$('<input  class="text-right" name="' + options.field + '"/>')
.appendTo(container)
.kendoNumericTextBox({
decimals: 0,
format: 'n0',
step: 1,
spinners: false
}).off("keydown").on({
'focus': function () {
if (!$(this).val() == 0) {
$(this).val('');
console.log('huh?', this.value, $(this).val(), arguments);
}
},
'blur': function () {
if ($(this).val() == "") {
console.log('wha?', this.value);
$(this).val("0");
}
}
});

Jeff
Top achievements
Rank 1
 answered on 09 Mar 2017
2 answers
93 views

I'm working on a project that is using the kendoGrid and odata service with virtual scrolling enabled.

 

The data we are pulling into the the grid doesn't use a traditional id number for it's primary key, so to have something that looks like an id number in the table we created an id column and append the number via a column template, which looks like this.

 

let _columns = [{

   field: 'rowNumberer',
   title: '#',
   template: '#= ++rowNumber #',
   width: 30
}

 

So the issue we are having is that as you scroll down the page the number increments fine, but it's also increments when you scroll up which throws the count off.

Is there another way to handle this?

Philip
Top achievements
Rank 1
 answered on 09 Mar 2017
1 answer
179 views

We have a simple grid having a the filters in a row. When the grid has a horizontal scrollbar, and the user is navigating using tab across the filters, only the header scrolls and not the body. Check the attached gif and below is its source code (which is a straightforward demo on Telerik):

http://dojo.telerik.com/

Dimiter Topalov
Telerik team
 answered on 09 Mar 2017
8 answers
135 views

I have the following in side an HTML page:

<!-- Template for simple search row -->
<script id="simple-search-row" type="text/x-kendo-template">
    <div class="simple-search-row">
        <input name="fieldName"
            data-role="dropdownlist"
            data-text-field="columnDisplayName"
            data-value-field="columnName"
            data-bind="
                value: field,
                source: columnsDataSource"></input>
        <span data-for="fieldName" class="k-invalid-msg"></span>
        <input name="filter"
            data-role="dropdownlist"
            data-text-field="displayName"
            data-value-field="name"
            data-bind="
                value: type,
                source: filterTypesDataSource,
                events: { change : criteriaChanged, dataBound : simpleSearchDDLDataBound }"
            style="width: 15em;"></input>
        <span data-for="filter" class="k-invalid-msg"></span>
        <input id="value-1" name="value-1" type="text"
            data-bind="
                value: values[0]"></input>
        <span data-for="value-1" class="k-invalid-msg"></span>
        <span id="value-and" style="display: none;">#: translate('between_and') #</span>
        <input id="value-2" name="value-2" type="text" style="display: none;"
            data-bind="
                value: values[1]"></input>
        <span data-for="value-2" class="k-invalid-msg"></span>
        <a href="\\\\#" data-bind="events: { click : removeSimpleSearchRow }">
            <span class="k-icon k-i-cancel"></span>
        </a>
        <a href="\\\\#" data-bind="events: { click : addSimpleSearchRow }">
            <span class="k-icon k-i-plus"></span>
        </a>
    </div>
</script>
 
<div id="simple-search-rows" class="ui relaxed grid" data-template="simple-search-row" data-bind="source: searchFilter.criteria"></div>

 

"searchFilter.criteria" is a JS array object.  And then I have a custom validator:

var simpleSearchValidator = $('#simple-search').kendoValidator({
        messages : {
            fieldname : '',
            filter : '',
            valueone : '',
            valuetwo : ''
        },
        rules: {
            fieldname : function (input) {
                if (input.is('[name|=fieldName]')) {
                    if(input.val() === ''){
                        return false;
                    }
                }
 
                return true;
            },
            filter : function (input) {
                if (input.is('[name|=filter]')) {
                    if(input.val() === ''){
                        return false;
                    }
                }
 
                return true;   
            },
            valueone : function (input) {
                if (input.is('[name|=value-1]')) {
                    let filter = input.parent().find('[name|=filter]'),
                        criteria = (filter ? filter.val() : '');
                     
                    switch(criteria){
                        case 'EQUAL_TO':
                        case 'NOT_EQUAL_TO':
                            return true;
                    }
 
                    if(input.get(0).style.display === 'none') {
                        return true;
                    }
 
                    if(input.val() === ''){
                        return false;
                    }
                }
 
                return true;   
            },
            valuetwo : function (input) {
                if (input.is('[name|=value-2]') && input.is('')) {
                    if(input.val() === ''){
                        return false;
                    }
                }
 
                return true;   
            }
        }       
    }).data('kendoValidator');

 

The issue is that the validator's .validate() is called, it correctly identifies incorrect data based on the custom rule, however if say the fieldName input field is invalid, it displays the k-invalid-msg for EVERY row, not just the single row with the invalid data.  I am guessing this is because the name attributes for each row are not unique.   I tried creating a unique id in the template:

<!-- Template for simple search row -->
<script id="simple-search-row" type="text/x-kendo-template">
    <div class="simple-search-row">
        # var uid = windows.util.genUniqueId(); #
        <input name="fieldName#= uid #"
            data-role="dropdownlist"
            data-text-field="columnDisplayName"
            data-value-field="columnName"
            data-bind="
                value: field,
                source: columnsDataSource"></input>
        ....
    </div>
</script>
 
<div id="simple-search-rows" class="ui relaxed grid" data-template="simple-search-row" data-bind="source: searchFilter.criteria"></div>

 

Unfortunately, that did not work as the uid was only created once, at the time the template was loaded, not for each row.

Is there an easy way to generate a unique form name for the input elements in each row?

Vasil
Telerik team
 answered on 09 Mar 2017
1 answer
181 views

A NumericTextBox used in Angularjs (v1.5.8) seems to swallow the click events. 

The box is included like this:

<input kendo-numeric-text-box="numericTextBox" fc-numeric-box-placeholder k-spinners="false"
           k-decimals="{{ ::decimals }}" k-options="numericBoxOptions" ng-model="value"/>

 

The options set the min and max values. The box itself works fine, updating values as expected. 

If you have a dropdown opened (bootstrap) though, clicking inside the NumericTextBox will not close the dropdown. Clicking anywhere else closes it.

Is there a way to configure NumericTextBox to facilitate this behavior?

 

Ianko
Telerik team
 answered on 09 Mar 2017
3 answers
242 views

We have a requirement where, we are generating controls dynamically.
If I directly put this in html, then it’s working without any problem.
<textarea id="665" tabindex="1" class="rTFStyle" kendo-editor k-ng-model="richTextEditor_665" k-tools="['bold','italic','underline','strikethrough','justifyLeft','justifyCenter','justifyRight','justifyFull','insertUnorderedList','insertOrderedList','indent','outdent']"></textarea>

but if I use it with $compile then it is not working as expected

 

var html = “<textarea id="665" tabindex="1" class="rTFStyle" kendo-editor k-ng-model="richTextEditor_665" k-tools="['bold','italic','underline','strikethrough','justifyLeft','justifyCenter','justifyRight','justifyFull','insertUnorderedList','insertOrderedList','indent','outdent']"></textarea>”<br>$('#myTabContent2').html($compile(html)($scope))

in previous versions it was working fine.
I have latest version of kendo now Kendo UI v2017.1.223(kendo ui 2017 Q1 sp1).
I got the following errors.

Joana
Telerik team
 answered on 09 Mar 2017
2 answers
931 views

Hello, I have a grid that does not show the caret (up or down) but it does sort asc only. It is firing the sort event when I click the heading of columns with a "field" but it only does a sort descriptor of "asc" and never shows the caret in the grid header? What am I doing wrong?

 

        <kendo-grid [data]="gridView" [height]="400" [sortable]="{mode: 'single'}" [sort]="sort" (sortChange)="sort($event)">
            <kendo-grid-column title="#" [width]="30">
                <template kendoGridCellTemplate let-rowIndex="rowIndex">{{rowIndex + 1}}</template>
            </kendo-grid-column>
            <kendo-grid-column title="Edit" [width]="60">
                <template kendoGridCellTemplate let-dataItem>
                    <a class="btn btn-primary" (click)="edit(dataItem.Id)" title="Edit {{dataItem.Id}}">
                        <i class="fa fa-edit white"></i>
                    </a>
                </template>
            </kendo-grid-column>
            <kendo-grid-column field="Location" title="Location">
                <template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
                    {{dataItem.Location}} - {{locName[rowIndex]}}
                </template>
            </kendo-grid-column>
            <kendo-grid-column field="Sdate" title="Date and Time Created">
                <template kendoGridCellTemplate let-dataItem>
                    {{dataItem.Sdate | date: 'MM/dd/yyyy'}} - {{'01/01/01 ' + dataItem.Stime | date: 'HH:mm:ss'}}
                </template>
            </kendo-grid-column>
            <kendo-grid-column field="DownCount" title="Count"></kendo-grid-column>
            <kendo-grid-column field="ScanBy" title="Scanned By"></kendo-grid-column>
            <kendo-grid-column [width]="60" title="Del">
                <template kendoGridCellTemplate let-dataItem>
                    <a class="btn btn-danger" (click)="delete(dataItem.Id)" title="Delete Scan Entry">
                        <i class="fa fa-close white"></i>
                    </a>
                </template>
            </kendo-grid-column>
        </kendo-grid>

 

Steven
Top achievements
Rank 1
 answered on 09 Mar 2017
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?