Telerik Forums
Kendo UI for jQuery Forum
16 answers
472 views

On the latest and greatest Chrome version (updated today) there is some wonky behaviour in the Grid filter.

 

I've created a dojo script to show the issue http://dojo.telerik.com/ipihu

To see the issue, follow these steps

1 -On the ProductName column, click the menu button to see the column menu

2 - On the Filter sub menu, move your mouse to the right

3 - In the filter menu, hover your mouse over the text area (just below the Is equal to)

4 - The filter dialog goes away

 

 

The issue is #4.  It shouldn't go away because i'm still hovering (intending to type something in)

Dimiter Topalov
Telerik team
 answered on 01 Mar 2017
4 answers
274 views

I am using UI for ASP.NET MVC R3 2016 and I have enabled the column menu to allow for showing/hiding of columns.  That resulted in the filter getting moved into this menu as well.  I'm not crazy about that, but I could accept that if the filtering worked in the column menu.  The problem is I can't just open the column menu, open filter and click on the textbox in the filter menu, the entire thing closes.  However, if I first select a type of filter (starts with, etc.) and then go to the textbox it works.  While it is a workaround it is not an acceptable one.  The problem exists in Chrome but in Edge it seems to behave correctly.

This behavior can be observed by going to http://demos.telerik.com/kendo-ui/grid/column-menu.  Try to filter on Ship Name without first selecting a filter type.  

Dimiter Topalov
Telerik team
 answered on 01 Mar 2017
1 answer
527 views

We generate dynamic fields where the user can define their precision (total number of digits) and scale (number of digits to the right of the decimal).  We set max length based on precision + 1 for a negative and + 1 for the decimal such that if the user defined a field with precision 7 and scale of 3, the max length would be 9 (7 digits, 1 for potential and 1 for potential decimal).  (When the scale is 0, the max length is precision + 1 for potential negative).  We need to prevent users from entering more than the precision (e.g., the total number of digits) when entering values, regardless of whether the number is positive or negative as well as whether there's a decimal or not.  For example, if the precision is 5 and scale is 3, max length would be 7.  12345 would be valid, as would -12345 or -123.45.  However, 123456 or 12345.6 would not.

I have the following wired up (and executing upon keypress), but in traversing the sender object, I am unable to get to the options (where I believe the scale is kept based on this page):

$("#OBJ_MASKPERCENTAGEP5S3").kendoNumericTextBox({
    format: "#.### \\%",
    decimals:3
});
 
$("#OBJ_MASKPERCENTAGEP5S3").keypress(function(){
    checkNumericTextboxDecimals(this, null);
});
 
function checkNumericTextboxDecimals(sender, args) {
    window.setTimeout(function () {
    var textBox = $(sender.id).kendoNumericTextBox();

 

With the above in mind, given a Kendo Numeric Textbox, how does one go about getting the scale via jQuery?  

(Something similar to the above worked great when we had RadControls implemented, but isn't functional using Kendo controls.)

Finally, why isn't this functionality supported within the control itself?  I find it hard to believe we're the only ones who see this as a shortcoming.

Konstantin Dikov
Telerik team
 answered on 28 Feb 2017
1 answer
349 views

Hi kendo team and users, I read that sample about changing the grid language, on that link:

http://demos.telerik.com/kendo-ui/grid/localization

I tried to edit that demo, and change the "full grid reconstruction" to a simple setOptions, and it seems to work:

http://dojo.telerik.com/@foxontherock/aJOBu/3

The $.getScripts replace the Grid prototype, so I just update the current gri messages from the prototype, like that:

grid.setOptions({
  messages: kendo.ui.Grid.prototype.options.messages
});

Do you suggest to use that method or not? possible memory leak or something else?

And, is it available for all other kendo components?

For now, everything works fine, and the language change seems faster than rebuilding the whole grid.

Thank you

Vasil
Telerik team
 answered on 28 Feb 2017
15 answers
1.8K+ views
I want to Collapse all the rows, when the user drops a column for Grouping... 
I searched for any event for OnGrouping... so that i could add the collapserow api... but there is no such event..
Is there a way to specify the row to be collapsed on grouping?
 
Raj
Top achievements
Rank 1
 answered on 28 Feb 2017
7 answers
155 views

Using the MVVM bindings (using data-bind), doing a set() on any data item will cause the ENTIRE TreeList to recalculate everything.  Even with just a couple hundred rows this causes the browser to stop responding and with a few thousand rows the browser can crash.

 

Is there any possible way to refresh or repaint a SINGLE row of the TreeList similar to the refresh() method of the TreeList, but for a single row instead of everything?

Vasil
Telerik team
 answered on 28 Feb 2017
2 answers
210 views

Hello,

can I somehow set the custom image for a switch? I would like to have something like the 2 attached files instead of a default switch with labels.

If not possible, I would use an observable array that changes images using hidden checkboxes. Or is there a better solution?

Thanks

mathieu
Top achievements
Rank 1
 answered on 28 Feb 2017
1 answer
181 views

Hi,

I am using upload control as below: 

 <input type="file"
                                       kendo-upload
                                       k-async="{ saveUrl: "/api/upload/",autoUpload: true }"
                                       k-success="onImportSuccess" />

On onImportSuccess function, I need to access to $scope for doing something after uploaded. How can I do that?

  onImportSuccess = function(e) { 
            console.log($scope); // --> show scope is undefined 
        }

Thanks.

Veselin Tsvetanov
Telerik team
 answered on 28 Feb 2017
3 answers
612 views

How can i speed up a autoFitColumn() on multi-headers grid?

In the screenshot you can see that each column fitting make Recalculate Styles. Is it possible to cache width of the fitted column without firing up CSS and then after all columns width are calculated use grid.setOptions() to set columns width with new fitted width?

Also i need to use dirty hack:   hideColumn();showColumn() becouse footer isn't fitted to columns.

Table.prototype.fitColumns = function(){
    var self = this;
    var count = 0;
    var col;
    var selected = this.grid.select().data('uid');
    for (var i = 0; i < this.grid.columns.length; i++) {
        var multi = this.grid.columns[i].columns;
        if (multi){
            _.forEach(multi, function(el, j){
                if (el.columns){
                    _.forEach(el.columns, function(el2, k){
                        col = multi[j].columns[k];
                        if (!col.attributes || (col.attributes && !col.attributes.noFit)) self.grid.autoFitColumn(col);
                    });
                }
                else {
                    col = multi[j];
                    if (!col.attributes || (col.attributes && !col.attributes.noFit)) self.grid.autoFitColumn(col);
                }
            });
        } else {
            col = self.grid.columns[i];
            if (!col.attributes || (col.attributes && !col.attributes.noFit)) self.grid.autoFitColumn(col);
        }
    }
    this.grid.refresh();
    this.fitted = true;
    if (selected) this.grid.select("tr[data-uid='" + selected + "']");
    this.grid.hideColumn(1);
    this.grid.showColumn(1);
};
Viktor Tachev
Telerik team
 answered on 28 Feb 2017
1 answer
109 views

We have a page that will be passed in a User's Id to it, and it will have one DropDownList reflecting the User's role, while also allowing them to change their role.

We are looking at leveraging the "change" event for a kendoDropDownList. And inside that event, making a $.ajax call.

We know we can work our way to getting this approach to work, but we were wondering if there was a more straight-forward or recommended approach to take.

For example, should or could we define an "update" action inside the dataSource.transport definition for the dropdownlist, that would somehow be triggered?

 

Another perspective, is that we have lots of Grids that have dataSource.transport.update definitions, and they are processed with a clean controller method that is passed a DataSourceRequest and an instance of a data object that is being updated.  Can we do something similar with a DropDownList?

Veselin Tsvetanov
Telerik team
 answered on 28 Feb 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?