Telerik Forums
Kendo UI for jQuery Forum
5 answers
960 views

Date is not sorting correctly in my grid. It seems that older dates than 2000 are not sorting correctly. In the database, the data type is datetime2. 

Here is the code for the grid:

    $("#reportsGridIn").kendoGrid({
        selectable: "multiple",
        sortable: {
            allowUnsort: false,
            initialDirection: "asc"
        },
        schema: {
            model: {
                fields: {
                    transDate: { type: "date" }
                }
            }
        },
        columns: [
          { field: "id", hidden: true },
          { field: "corporationName", title: "Corporation", width: 20 },
          { field: "transDate", title: "Trans Date", width: 18, template: "#= kendo.toString(new Date(parseInt(transDate.substr(6))),'MM/dd/yyyy')#", type: "date" },
          { field: "headline", title: "Headline", width: 38 },
          { field: "marketScope", title: "Market Scope", width: 25 }
        ]
    });

Thanks,

Mike

Mike
Top achievements
Rank 1
 answered on 07 Sep 2017
1 answer
79 views

Hello,

Please see this example provided by Kiril in my earlier post: http://dojo.telerik.com/IcIPoZ/4

Try selecting some text in the editable div, and using the Format tool to change the style, or to change the text or background colour.

Could you kindly suggest a work-around for this issue.

Many thanks.

Ivan Danchev
Telerik team
 answered on 07 Sep 2017
1 answer
303 views
Hello friends.
I am developing an application where client side uses Kendo UI plus JSDO components and the server side uses Progress Application Server for OpenEdge (PASOE). The application is entirely based on OERA best practices.
I'm using a DataGrid with server side pagination for browsing through a CRUD records and editing is done on a KendoUI popup form. So far so good.
Now I need your help to capture and display validation messages generated on the server side (EntityBusiness).
The response of the PUT, POST, and DELETE HTTP requests in which validation errors occur contains the validation messages, I have already confirmed this when monitoring requests with the browser development components.
How do I display these messages in the Kendo UI form? Better still, if possible, display each message next to the field with the invalid value.
Konstantin Dikov
Telerik team
 answered on 07 Sep 2017
5 answers
783 views

Hi, Telerik Team

      I am utilizing kendo treeview to show organizational structure of sales forces, and this tree is made of uncountable layers (hundreds or thousands,  and even ten thousand nodes)  Therefore, I hope that this treeview can only display the first layers, and by expanding tree nodes, child nodes will emerge from data transferred via web services.  Is that possible for me to capitalize on functions of kendo treeview for the sake of achieving the feature, lazy loading mentioned.

     Another question is that if overwhelming data, such as ten thousand nodes, is loaded in kendo treeview,  will there be a performance issue encountered?

     Could you please offer me some suggestions?

 

Thanks & Best Regards

James Shen

Dimitar
Telerik team
 answered on 07 Sep 2017
3 answers
330 views

I notice an error while using Kendo MVC FluentAPI to generate a Datasource with additionnal data in the request URL.

Using this : 

ds.Custom().Transport(t => t.Read(r => r.Action("GetUsers", "Application").Data(x => new { IncludeCurrentUser = false })

generate a javascript property of : 

"data":{ IncludeCurrentUser = false }

and result in a javascript error of "Uncaught SyntaxError: Invalid shorthand property initializer"

The javascript should not be like C# writting but like "data":{ IncludeCurrentUser: false }

Stefan
Telerik team
 answered on 07 Sep 2017
1 answer
359 views
I have a kendo grid with in cell editing. I extended the validator to add a new validation rule and message. This is working correctly.
 
However, I can't seem to change the default error template for the validation message. Here is the code used to extend the validator:
 
(function ($, kendo) {
    $.extend(true, kendo.ui.validator, {
        rules: {
            uniqueTagName: function (input) {
               ...
        },
        messages: {
            uniqueTagName: resources.Message_TagAlreadyExists
        },
        errorTemplate: "<span>#=message# TEST</span>"
    });
})(jQuery, kendo);

 

I can see from the console that when I look at kendo.ui.validator, the errorTemplate is changed to "<span>#=message# TEST</span>". However, when the (Name) element is validated, I get the default error template.

Through $("#Name").kendoValidator().data("kendoValidator"), i get this template:

<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> #=message#</span>

However,both validators have the extended rule and validation message.

I also tried to create a <span data-for="Name" class="k-invalid-msg"> as I have found somewhere in the documentation, but this seems to have no effect.

Boyan Dimitrov
Telerik team
 answered on 07 Sep 2017
8 answers
658 views

Hello!

I have some questions regarding the limitations of virtual scrolling and I am referring to your documentation: http://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#virtual-scrolling

1) "Virtual scrolling relies on a fake scrollbar. Its size is not determined
by the browser, but is calculated based on the average row height of
the data that is already loaded. As a result, variable row heights may
cause unexpected behavior, such as inability to scroll to the last rows
on the last page." and "Virtual scrolling relies on calculating the average row height based on
already loaded data. Having a large variance of row heights or an
unknown number of rows that are not bound to data (such as group
headers) might cause unexpected behavior:":
To prevent this, I am calling resize(true) on the grid widget every time the data is bound (dataBound event handler). It seems like this works, but am I missing something?

2) "Virtual scrolling is not compatible with grouping, hierarchy, and editing":
I am using a grid with batch editing mode, and it seems to work. Could you please share some details about what's not compatible with editing exactly?
And what are the known incompatibilities with grouping? I have found out, that the grid does not remember collapsed groups when the page size is crossed while scrolling and the next page of data items is bound to the grid, so the collapsed groups get automatically expanded again. Also, if a group is being collapsed, the space of the previous shown data items remains blank, instead of the next group being shown immediately below.

Thank you in advance for providing information about the grid virtual scrolling limitations of the current Kendo UI release version.

Best regards,

Kaan

Tsvetina
Telerik team
 answered on 06 Sep 2017
5 answers
417 views

i need to remove "Select All", N items selected & change the font of the text for checkboxes.

I was able to achieve first "Select All", but could you please help me figure out how to implement 2 left?

P.S - kendo ui for jquery

Thx Alex

Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
 answered on 06 Sep 2017
11 answers
3.2K+ views
can you please suggest as to how can i access the column name of the cell being current edited. I am using edit event of the grid and would like to apply different validation checks depending on the type of column that is being edited.

Thanks
Preslav
Telerik team
 answered on 06 Sep 2017
4 answers
107 views
How can I lock one column as the first column of the grid, so it can not be moved/rearranged or hidden?
Jaanus
Top achievements
Rank 1
 answered on 06 Sep 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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?