Telerik Forums
Kendo UI for jQuery Forum
2 answers
189 views

We are trying to switch the visibility of some NumericTextBoxes. 'ng-show' made some appearance effects but nothing useful. 'ng-if' seems to be more promising, but we experience other effects. Instead of disappearing nothing happens and instead of reappearing additional TextBoxes appear.

 

Please see this example: http://dojo.telerik.com/ELOlO

Press the button to see the problem.

Any hints?

Regards

Alex

Jakob
Top achievements
Rank 1
 answered on 30 Jun 2015
3 answers
1.1K+ views

I'm using the Kendo UI TimePicker control where the min and max times can be set to the next or previous day. 

 When selecting a time that exists the next (or previous) day the value returned is a full DateTime but is always set to the current date.

 For example, if the current date time is "Jun 25, 2015 10:00 PM" and you scroll down and select "Jun 26, 2015 02:00 AM" the return value will be "Thu Jun 25 2015 02:00:00 GMT-0400 (Eastern Daylight Time)" but I'm expecting it to be June 26.

How do I make this control return the expected DateTime.

 Here are my code segments:

// Init the control

$("#dtpEndDateTime").kendoTimePicker({
            format: "MMM dd, yyyy  hh:mm tt",
            interval: 15,
            change: onShiftEndDateTimeChange
        });

 

 // Set the values elsewhere

var dtpEndDateTime = $("#dtpEndDateTime").data("kendoTimePicker");
   dtpEndDateTime.value(moment(_shift.EndDateTime).toDate());
   dtpEndDateTime.min((moment(_shift.StartDateTime).add(15, "minutes")).toDate());
   dtpEndDateTime.max((moment(_shift.EndDateTime).add(12, "hours")).toDate());

 

 // get the selected value inside the onShiftEndDateTimeChange event

var datetimepicker = $("#dtpEndDateTime").data("kendoTimePicker");
   console.log(datetimepicker.value());

Vladimir Iliev
Telerik team
 answered on 30 Jun 2015
3 answers
371 views
I want to develop an hybrid mobile app using kendo UI grid to display a resulset from an store procedure on a public SQL Server DB. I need to know which is the best approach and simplest for this. My SP uses two input parameters and returns 4 columns of data. This is for a kind of parcel tracking service. Thank you!
Alexander Valchev
Telerik team
 answered on 30 Jun 2015
1 answer
110 views

I've got a sample in the Dojo that illustrates the issue I'm running into.  I originally ran into this because we are opening the calendar when the control receives focus.  At any rate, when the calendar control is open, if you manually punch in a date and hit "Enter", the calendar control closes but the text value is changed to whatever value was selected in the calendar.  In the example below, simply put the focus in the text box, hit "1/31/2015" and hit "Enter".  The calendar will close, but the text value will be changed to today's date (the default in the calendar).  Any thoughts for a workaround?

http://dojo.telerik.com/eReVa​

Kiril Nikolov
Telerik team
 answered on 30 Jun 2015
1 answer
70 views
ok
Dimiter Madjarov
Telerik team
 answered on 30 Jun 2015
2 answers
312 views

Hi,

 I just discovered that even though I have removed the ImageBrowser-option from the settings it is still possible to upload images via drag and drop. I have investigated the documentation and it seems that there's no way to prevent this via settings or via events.

So is there some way else I can disable this option?

Regards,

Peter

Peter Terkildsen
Top achievements
Rank 1
 answered on 30 Jun 2015
3 answers
137 views

Hello, 

I am trying to connect to the shapes using points but not working. Please see the sample below.

http://dojo.telerik.com/@devendra/onudi .

Can you suggest how i can resolve this.

 

Best Regards,

Devendra

Devendra
Top achievements
Rank 1
 answered on 30 Jun 2015
2 answers
398 views
Hi,

Would you please help me to find what reason cause my code only works at the first time after refresh browser?

Thank you very much!
J

The following is my code:-----------------------------------------------
<div >
    <input id="txtName"  data-role="autocomplete"    data-filter="startswith"   data-min-length="1" data-placeholder="Select a Name"  data-text-field="FullName"
           data-bind="value:inputsearchName, source: searchedName, enabled: isEnabled, events: { select: selectPerson, change: onChange}" />
    Name :<span data-bind="text: selectedPerson.LogonName"></span>
</div>
<script>
    var viewModel = kendo.observable({
        searchedName: new kendo.data.DataSource({
            transport: {
                read: {
                    cache: false,
                    url: "@Url.Action("GetNames")",
                    dataType: "json",
                    contentType: "application/json; charset=utf-8",
                    type: "Get",
                }
                , parameterMap: function (options, operation) {
                    if (operation === "read") {
                        return {
                            startsWith: $("#txtName").data("kendoAutoComplete").value()
                        };
                    }
                }
            },
        }),
        selectedPerson: {},
        suggest: true,
        selectPerson: function (e) {
            var item = e.sender.dataItem(e.item.index());
            viewModel.set("selectedPerson", item);
        }
    });
    kendo.bind($(document.body), viewModel);
</script> 
C#-MVC Controller Code:----------------
public JsonResult GetNames(string startsWith)
        {
            List<AutoCompletionGroup> employeeList;
            employeeList = Employee.GetEmployeesByCriteria(startsWith);
            return Json(employeeList, JsonRequestBehavior.AllowGet);
        }


Dave
Top achievements
Rank 1
 answered on 29 Jun 2015
2 answers
105 views

I came to the demo site today to look into charting objects and in Chrome the styling of the demos seems pretty messed up.  I have just made sure I have the latest Chrome (Ubuntu) Version 43.0.2357.130 (64-bit).  See the attached images.  It's fine in Firefox.

The main client area is empty and the content is forced down below.  Scrolling the content rolls it up behind the nav bar and main client area.

Lisa
Top achievements
Rank 1
 answered on 29 Jun 2015
2 answers
131 views

How can I attach a javascript function to the keypress event of a hierarchy grid (the details grids).

 

I want to achieve this functionality 

http://www.telerik.com/forums/skip-read-only-fields-when-using-keyboard-navigation-on-navigatable-grid-in-batch-edit-mode

in the detail section.

 

Jason

Daniel
Telerik team
 answered on 29 Jun 2015
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
Drag and Drop
Map
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?