Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.9K+ views
I am presenting the user with a text box in which they can enter a search term. When the search term changes I call the following script.
function fillGrid() {
    var grid = $("#Grid").data("kendoGrid");
    $("#ActionError").html("");
    grid.dataSource.page(1);
    grid.dataSource.read();
}
Let's say the original search term causes 10 pages to be displayed and that we are viewing page 10. So we are viewing, 190 of 200. And let's say the new search term only produces 100 items, what happens is that the grid is empty and the bottom line indicates we are viewing 190 of 100. Refreshing the grid corrects the problem, but I added the line "grid.dataSource.page(1);" above to do this automatically. But I have observed that this has the side effect of calling the Controller twice. Generally, I used grid.dataSource.read() to refresh the grid. So I am wondering what is the correct way to perform this operation so that I don't make two calls to the database. I guess that every time the grid is changed it updates. Is there a way to turn updating off, make changes to the grid, and then refresh it. 
Preslav
Telerik team
 answered on 25 Aug 2017
1 answer
208 views

Hello,

I have a problem, when using floating point number as smallStep property i get uncorrect values and eventually the button of the slider stops working (does not want to increment or decrement after number)

Here is an example of the problem: Plnkr

Thank  you!

Daniel
Telerik team
 answered on 25 Aug 2017
3 answers
530 views
I need to know a way to find out the selected view in the  and grab that into a javascript object.
Nencho
Telerik team
 answered on 25 Aug 2017
4 answers
814 views

Hello Forum,

  I have a problem with kendo windows in ie 11 if the (in)compatibility mode is enabled.

If the user has enabled this annoying mode (default is on for all intranet pages :(, who has decided this crap?) I show the a dialog with a link to a page, how to deactivate this, because the complete webside is not working correct in this mode.

This worked without problems until I upgraded to Kendo for MVC 2017 R2 SP1.

If I try to create a kendo window in javascript with this code:

var kendoWindow = $("<div />").kendoWindow(
{
    title: headline,
    resizable: false,
    modal: true,
    width: "500px"
});

I get a Javascript exception:

Unhandled exception at line 46, column 7165 in http://localhost:3364/Scripts/kendo/2017.2.621/kendo.all.min.js
0x800a01b6 - Runtimeerror in JavaScript: The Object has no Property or Method "indexOf".

I tried different Demo code from the telerik demo page (also as MVC directive) but got always the same error.

Has anyone else seen this behaviour and found a solution for this? For now I have to switch to a simple javascript alert.

Greetings

  Thomas

Nencho
Telerik team
 answered on 25 Aug 2017
1 answer
117 views

Hi everyone

I am new in Kendo UI, so I have been following the these tutorials on the website of telerik to set up a basic grid.
http://www.telerik.com/kendo-angular-ui/components/grid/
http://www.telerik.com/kendo-angular-ui/components/grid/data-binding/

So the first thing I do clearly is install the nugets of this repositories:

npm install --save @progress/kendo-angular-grid @progress/kendo-angular-dropdowns @progress/kendo-angular-inputs @progress/kendo-angular-dateinputs @progress/kendo-data-query @progress/kendo-angular-intl @progress/kendo-angular-l10n @progress/kendo-drawing @progress/kendo-angular-excel-export @angular/animations

Once I got installed this, my project start to get errors, but anyway I keep adding the imports to the project and the rest of things indicated  in the tutorial, without a good result at the end when I run my project.
Can someone help me to get started? I would appreciate any help and thanks in advance.

The telerik code is in the next routes:

SolucionCore2\Core2.WebApi\ClientApp\app\app.module.shared.ts
SolucionCore2\Core2.WebApi\ClientApp\app\main.ts
SolucionCore2\Core2.WebApi\ClientApp\app\components\fetchdata

You can download the project in this link: Download project

Kind Regards

Dimiter Topalov
Telerik team
 answered on 25 Aug 2017
3 answers
3.5K+ views
Team,

I have a data source with firstname and lastname fields.
But I want my grid to show only fullname (firstname+lastname)

Regards
Prasanna
Stefan
Telerik team
 answered on 25 Aug 2017
4 answers
527 views

I'm using Kendo 2015.1.429 with asp.net mvc, bootstrap.

In the cshtml file: @Html.EditorFor(model => model.shipmentDate)

It shows blank(see attached) value in Chrome v56 and up, this is working fine in IE10, 11.

Here's the ViewModel:
[Display(Name = "Shipment Date")]
[Required(ErrorMessage = "Please select a shipment date")]
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
public DateTime shipmentDate { get; set; }

Also, I inspect this element with Chrome's Developer tool and I have this:

<input data-val="true" data-val-date="The field Date must be a date." data-val-required="Please select a date" id="date" name="date" type="date" value="07/13/17" />
<script>
jQuery(function(){jQuery("#date").kendoDatePicker({"format":"MM/dd/yy","min":new Date(1900,0,1,0,0,0,0),"max":new Date(2099,11,31,0,0,0,0)});});
</script>

The value is passed from the Controller as you can see, but date does not display. Is this a known issue?

How do I fix this annoying issue?

Daniel
Top achievements
Rank 1
 answered on 24 Aug 2017
1 answer
112 views

The "remove" buttons are disappearing when editing the last row of the grid as shown in the following example. Steps to reproduce the problem:

- Access the link
- Press the "Show Buttons" button
- Edit the last line of the grid

 

 

Ivan
Telerik team
 answered on 24 Aug 2017
2 answers
155 views

Hi,

Would you please let me know if I can avoid the treemap animation on mouse hover. Normally the treemap tile shrinks a bit when user does a mouse enter. I just want to avoid that behaviour. I've attached the screenshot for reference.

 

Regards

Prasanth

prasanth
Top achievements
Rank 1
 answered on 24 Aug 2017
5 answers
139 views

So I recently attempted to drop in the latest version of kendoUI (as of 8/16/2017) and found many formatting differences/issues.

The most annoying was how you decided to roll out font icons vs image icons - we now have missing icons all over the place. It would have been best if you just used the same css class name for the same icon.

Do you have a migrate .css file that will re-map them back, like most other UI libraries that make unnecessary breaking changes? 

Magdalena
Telerik team
 answered on 24 Aug 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
ContextMenu
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
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?