Telerik Forums
Kendo UI for jQuery Forum
1 answer
127 views

Hi Kendo Team,

 

I think I may have found a bug but it would be nice if I could confirm it with you guys.

My team has been trying to wrap our code where we attach custom editors to cell ranges inside of a sheet.batch call to optimize the speed of our application.

However we noticed that when we do this, it seems to cause the custom editors to break (whether they are list dropdowns or date pickers).

You can replicate it in the kendo demo you guys have here:

http://docs.telerik.com/kendo-ui/controls/data-management/spreadsheet/how-to/validation-to-column

If you scroll to the very bottom of the edit section of the demo and change where you apply the validation rule by enabling showButton and putting it inside a sheet.batch, you will see that the dropdown list selectors in the demo preview will not work at all (they appear but nothing is displayed).

        //Apply the validation rule
        $("#spreadsheet").data("kendoSpreadsheet").activeSheet().batch(function () {
        range.validation({
          dataType: "list",
          from: "ListValues!A$1:B$1",
          allowNulls: true,
          type: "reject",
          titleTemplate: "Invalid value",
          messageTemplate: "Valid values are 'true' and 'false'."
        });
        });

 

In fact, if you replace that range.validation with a different type of validation like the date picker, it will also break - the icons will be displayed when selecting the cell but clicking the icon brings up an empty date picker that does not work.

 

        $("#spreadsheet").data("kendoSpreadsheet").activeSheet().batch(function () {
        range.validation({
          dataType: "date",
          showButton: true,
          comparerType: "between",
          from: "DATEVALUE(\"1/1/1900\")",
          to: "DATEVALUE(\"1/1/1998\")",
          allowNulls: true,
          type: "reject",
          titleTemplate: "Birth Date validaiton error",
          messageTemplate: "Birth Date should be between 1899 and 1998 year."
        });
        });

 

For whatever reason by putting the custom editors into the batch calls, it seems to be losing the "from" range to check against (seeing as the red arrow still works and the messageTemplate also displays properly on hover.

Thoughts?

Thanks,

Jeff

Mihai
Telerik team
 answered on 11 Oct 2016
3 answers
179 views
In ASP.NET MVC how do you allow selecting cell values from a list, in the UI for ASP.NET MVC R3 2016 it was advertised that it can be done?
T. Tsonev
Telerik team
 answered on 11 Oct 2016
3 answers
271 views

You know the default number of rows is 200, columns is 50. I want to set the number of rows and columns dynamically according to the data getting from controller code. Because the data length is not a fixed value, so how can I set the number of rows and columns dynamically by a method? please give example.

Petyo
Telerik team
 answered on 11 Oct 2016
1 answer
168 views

Hi all, 

Is there a way to embed a custom font in the SVG when exporting a DOM as SVG?

 

Thank you

Rumen
Telerik team
 answered on 11 Oct 2016
1 answer
212 views

Hello,

I want to add visible line to an area chart, so it looks like the charts in Windows Performance monitor. Is it possible to do so? Other option is to add fill to a line chart. I can't find a way how to do either of that.

Thanks!

Zak

Alex Hajigeorgieva
Telerik team
 answered on 11 Oct 2016
2 answers
638 views

Hi!, I'm having a problem using headerAttributes on a kendo ui Grid column.

var columnas = [];

columnas.push({ 

              headerAttributes: {                 

      style: "font-size: 14px"               },               title: "Desc",               field: "nombre",               width: 170,                 groupFooterTemplate:

 groupFooterTemplatePadre,

              footerTemplate: FooterTemplate});

 

grid = $("#grid").kendoGrid({     dataSource: dataSource,     groupable: false,     pdf: {         allPages: true,         avoidLinks: true,         paperSize: "auto",         margin: { top: "1cm", left: "1cm", right: "1cm", bottom: "1cm" },         landscape: true,         repeatHeaders: false,         scale: 0.4     },     resizable: false,     editable: !viewModelTitulo.cerrada,     selectable: "row",     navigatable: true,     scrollable: true,     columns: columnas,     dataBound: function(e){         var rows = e.sender.tbody.children();         for (var j = 0; j < rows.length; j++) {             var row = $(rows[j]);             var dataItem = e.sender.dataItem(row);             if (dataItem!=null && dataItem.get("nombre").toLowerCase().indexOf("company") >= 0) {                 row.addClass("green");             }         }     }});

 

using this code on a Kendo ui Grid the column header shows the image attached.

it's a bug?

Thanks!

 

 

 

 

Rosen
Telerik team
 answered on 11 Oct 2016
8 answers
1.1K+ views

I tried to parse "2016-07-24T23:25:33.632Z" to datePicker. Because I am in timezone +10, I will expect it come back 25/07/2016 however it always display 24/07/2016. Do you know how to make it work

        <input kendo-date-picker
               ng-model="dateString"
               k-format = "dd/MM/yyyy "
               k-parse-formats ="['YYYY-MM-DDTHH:mm:ss.fffZ']"
               />

 

http://dojo.telerik.com/@wingouyang/UBeRO

Igor
Top achievements
Rank 1
 answered on 11 Oct 2016
3 answers
534 views

The Upload component shows the drop zone when using Microsoft's Edge browser, but that browser does not currently support file drag and drop.  It seems like kendo.upload.js._supportsDrop should account for that.

Brad

Dimiter Madjarov
Telerik team
 answered on 11 Oct 2016
1 answer
142 views

I think columns need correction for GridColumn interface:

interface GridColumn {
        aggregates?: any;
        attributes?: any;
        columns?: any;   //I think this should be GridColumn[] not any
        command?: GridColumnCommandItem[];
        encoded?: boolean;
        field?: string;
        filterable?: boolean|GridColumnFilterable;
        footerAttributes?: any;
        footerTemplate?: string|Function;
        format?: string;
        groupable?: boolean;
        groupHeaderTemplate?: string|Function;
        groupFooterTemplate?: string|Function;
        headerAttributes?: any;
        headerTemplate?: string|Function;
        hidden?: boolean;
        locked?: boolean;
        lockable?: boolean;
        minScreenWidth?: number;
        sortable?: boolean|GridColumnSortable;
        template?: string|Function;
        title?: string;
        width?: string|number;
        values?: any;
        menu?: boolean;
    }

Stefan
Telerik team
 answered on 11 Oct 2016
3 answers
176 views

I just found that the non-hovered PDF icon on the Export to PDF button is offset from where it should be.  The hover version is correct.

See http://demos.telerik.com/kendo-ui/grid/pdf-export and switch to the Default theme.

 

 

Rumen
Telerik team
 answered on 11 Oct 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
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?