Telerik Forums
Kendo UI for jQuery Forum
3 answers
539 views

Hi,

kendo grid supports column templates. Is there an equivalent for gantt?

It exists a task-template but that is not what I am looking for. I just want to customize some cols.

 

I hope you can help me.

 

 

Ivan Danchev
Telerik team
 answered on 01 Mar 2017
16 answers
520 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
302 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
553 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
416 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.9K+ 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
171 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
234 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
193 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
629 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
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?