Telerik Forums
Kendo UI for jQuery Forum
1 answer
175 views

Why this code does not set the value to input element?

 

<input id="datePicker" /><script> $(document).ready(function(){ $("#datePicker").kendoDatePicker({ value: new Date(), min: new Date()})});</script><button>SetNewValue</button><script> $('button').on('click',function(){var dp = $("#datePicker").data('kendoDatePicker'); dp.value(new Date(2016,1,1))})</script>

 

 

If I change date to "new Date(2016, 4, 1)" value will be set correctly. The error appears in all browsers.
Link to JSbin example http://jsbin.com/catolumifa/edit?html,output

Viktor Tachev
Telerik team
 answered on 11 Mar 2016
6 answers
751 views

Hi 

I have a grid with check box, on checking the checkbox and clicking a button on the screen, i want to remove the selected row.

i am using the below code, everything works fine if i have only one page but if i have multiple pages in grid, the other pages selected rows are not deleted.

This code is written in the click event of button.

        var grid = $("#grdSelect").data("kendoGrid");

        grid.tbody.find("input:checked").closest("tr").each(function (index) {
            grid.removeRow($(this).closest('tr'));
        });
        grid.refresh();

Please help.

Boyan Dimitrov
Telerik team
 answered on 11 Mar 2016
1 answer
115 views
I am setting a number format on my cell which appears to work fine initially, but after you manually edit the cell - the number formatting seems to go away. You can reapply it through the toolbar, but each edit seems to remove the formatting.
Mihai
Telerik team
 answered on 11 Mar 2016
4 answers
347 views

We are using the masked text box along with a phone number validator in asp.net mvc. We are running into an issue with the phone number autocomplete in chrome where if there is a phone number already stored in the autocomplete it disables the mask resulting in a condition like the attached screenshot. Where the user is unable to fix the phone number. The field name is "Phone". Do you have any suggestions or workarounds for this issue?

 

 

Georgi Krustev
Telerik team
 answered on 11 Mar 2016
4 answers
220 views

Can I make a kendo grid a draggable item?  What I would like to do for example is have 2 or more grids on a page and the user can click the header of the grid and move them around to different drop zones on the page.  Like a customized widget dashboard.

Is this possible?

Thanks,

Coty

Alexander Valchev
Telerik team
 answered on 11 Mar 2016
1 answer
89 views

Hi,

Issue:  Essentially if you use an optionLabel, the incorrect dataItem is pulled back using the event.item.index() as well as the event.sender.dataItem() methods.  

Reproducible demo here:  http://dojo.telerik.com/awona

Steps to reproduce:

1) Choose Maria, first real option in the drop down list.

2) Note at the top of screen, index 0 and dataItem is the optionLabel.  It should be index = 1 or at the very least, dataItem should = Maria Anders. 

Thanks

 

 

 

Kiril Nikolov
Telerik team
 answered on 11 Mar 2016
2 answers
119 views

Hello! I'm developing a master/detail with two kendo grids, as you can see in this kendo dojo: http://dojo.telerik.com/EREHO/20

When you click on a row on top master grid, in the bottom detail grid appears the selected row "projected" in different way.

You can edit the fields in detail grid and this will affect also the master grid.

But there is an unexpected behaviour: looking at bottom field (InsertionDate) in detail grid, when you edit another field the name "InsertionDate" is replaced by the name of edited field, and also the red dirty corner is applyed always at bottom field.

After some debugging I have managed to understand the something goes wrong inside function that handles 'save' event in detail grid, in particullary in these code lines:

row.set(prop, value);
var selectedRow = $('#masterGrid').find("tbody>tr[data-uid=" + ctrl.selectedRowUid + "]");
$grid.select(selectedRow);

Is this some kind of kendo bug or am I achieving this behaviour in a wrong way? Do you have any suggestion for this issue?
Thanks!

Mattia Thiella

 

Kiril Nikolov
Telerik team
 answered on 11 Mar 2016
2 answers
65 views

Hello, 

I am fairly new to Kendo and front end development in general. I am working on trying to populate a grid using local data. My text editor is Sublime Text and when I try to view in browser, I get a blank screen. I tried it the code in Dojo and it works fine but I can't seem to view it in browser. Do I need to set up a local environment in order to view Kendo work? 

 

Here is my code: 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>VSP | Client Websites</title>
    <link rel="stylesheet" href="styles/main.css">
    <link rel="stylesheet" href="styles/kendo.common.min.css">
    <link rel="stylesheet" href="styles/kendo.default.min.css">
    <link rel="stylesheet" href="styles/kendo.mobile.all.min.css">
</head>
<body>
    <div id="grid"></div>
 
    <script>
        var clients = [ { clientLogo: "#",
                          companyName: "Lowe's Home Improvement",
                          clientID: 123456,
                          lastEdited: "02/15/2016",
                          lastEditedBy: "Barbara Johnson",
                          status: "In Progress"}];
        $("#grid").kendoGrid({
        columns: [ { title: "Client Logo", field: "clientLogo" },
                   { title: "Company Name", field: "companyName"},
                   { title: "Client ID", field: "clientID"},
                   { title: "Last Edited", field: "lastEdited"},
                   { title: "Last Edited By", field: "lastEditedBy"},
                   { title: "Status", field: "status"}],
            dataSource: clients
        });
  </script>
 
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
</body>
</html>

Kiril Nikolov
Telerik team
 answered on 11 Mar 2016
3 answers
160 views

Is there a way to set a property autoHide to  false in the GANTT Tooltip?

I found this answer

http://www.telerik.com/forums/gantt-tooltip-ignoring-tool-tip-properties

, but I don't found any options to configure the GANTT Tooltip to avoid autoHide

http://docs.telerik.com/kendo-ui/api/javascript/ui/gantt#configuration-tooltip.

 

Bozhidar
Telerik team
 answered on 11 Mar 2016
1 answer
7.9K+ views

Hello, 

In my grid, I'd like to make the text in 'field: companyName' a clickable link. I have tried to change it to: 

{ title: "Company Name", template: '<a href="#">#= companyName#</a>', width: "300px"}

but have no luck. I have also searched around the forums but couldn't find the answer. Can anyone help me. Also, I am looking to add URL link to each client but am not sure how to do that either. 

Here is my script code in its entirety. 

<script>
var clients = [ { clientLogo: "img/lowes.png",
            companyName: "Lowe's Home Improvement", 
            clientID: 123456,
            lastEdited: "02/15/2016",
            lastEditedBy: "Barbara Johnson",
            status: "In Progress"},
            { clientLogo: "img/verizon.png",
            companyName: "Verizon Wireless",
            clientID: 123456,
            lastEdited: "02/15/2016",
            lastEditedBy: "Barbara Johnson",
            status: "In Progress"},
            { clientLogo: "img/mcdonalds.png",
            companyName: "McDonald's Corporation",
            clientID: 123456,
            lastEdited: "02/15/2016",
            lastEditedBy: "Barbara Johnson",
            status: "In Progress"},
            { clientLogo: "img/att.png",
            companyName: "AT&T Wireless & Network Information",
            clientID: 123456,
            lastEdited: "02/15/2016",
            lastEditedBy: "Barbara Johnson",
            status: "In Progress"},
            { clientLogo: "img/stjoseph.png",
            companyName: "St Joseph Healthcare System",
            clientID: 123456,
            lastEdited: "02/15/2016",
            lastEditedBy: "Barbara Johnson",
            status: "In Progress"},
            { clientLogo: "img/proteinbar.png",
            companyName: "Protein Bar",
            clientID: 123456,
            lastEdited: "02/15/2016",
            lastEditedBy: "Barbara Johnson",
            status: "In Progress"},
            { clientLogo: "img/invision.png",
            companyName: "InVisionApp",
            clientID: 123456,
            lastEdited: "02/15/2016",
            lastEditedBy: "Barbara Johnson",
            status: "In Progress"} ];
$("#grid").kendoGrid({
    columns: [ { title: "Client Logo", template: '<img src="#= clientLogo #" />' },
               { title: "Company Name", field: 'companyName', width: "300px"},
               { title: "Client ID", field: 'clientID'},
               { title: "Last Edited", field: 'lastEdited'},
               { title: "Last Edited By", field: 'lastEditedBy'},
               { title: "Status", field: 'status'} ],
    dataSource: clients
});     

Dimiter Madjarov
Telerik team
 answered on 11 Mar 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
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?