Telerik Forums
Kendo UI for jQuery Forum
1 answer
513 views
I've been trying to do some validation with my DatePicker through JS but I noticed one major issue.  Whenever I add javascript it overrides the settings in my htmlattributes setup.  The following is the wrapper I am using for my DatePicker:

 @(Html.Kendo().DatePicker()
            .Name("startDates")
            .Max(DateTime.Now)
            .Format("MM/dd/yyyy")
            .HtmlAttributes(new { style="width: 200px;" , required="true"})
            )


Below is the JavaScript I am using for some validation:

​<script type="text/javascript">
    $(document).ready(function () {
        function startChange() {
            var startDate = start.value(),
                        endDate = end.value();

            if (startDate) {
                startDate = new Date(startDate);
                startDate.setDate(startDate.getDate());
                end.min(startDate);
            } else if (endDate) {
                start.max(new Date(endDate));
            } else {
                endDate = new Date();
                start.max(endDate);
                end.min(endDate);
            }
        }

        function endChange() {
            var endDate = end.value(),
                        startDate = start.value();

            if (endDate) {
                endDate = new Date(endDate);
                endDate.setDate(endDate.getDate());
                start.max(endDate);
            } else if (startDate) {
                end.min(new Date(startDate));
            } else {
                endDate = new Date();
                start.max(endDate);
                end.min(endDate);
            }
        }

        var start = $("#startDates").kendoDatePicker({
            change: startChange
        }).data("kendoDatePicker");

        var end = $("#endDates").kendoDatePicker({
            change: endChange
        }).data("kendoDatePicker");
        start.max(end.value());
        end.min(start.value());
    });


</script>


Anytime I use that script (which doesn't have any attributes that would change any css) the length of the datepicker changes from the ones set in the htmlattributes.  I've tried moving the script from the top of the page to the bottom and to no avail.
Dimo
Telerik team
 answered on 25 Jun 2014
4 answers
240 views
Hello 

There is any way that  Export grid UI data in PDF , MSword , html , text format  using  JS/HTML5 framework .  I don't want to use any other  language like Dot Net , PHP , JSP ...etc .. 
I want solution only in JS/HTML5 framework .

Thank you
    
Sebastian
Telerik team
 answered on 25 Jun 2014
1 answer
244 views
Hi,

I know that you can change the width of the combobox drop-down list programatically using the following method:

http://docs.telerik.com/kendo-ui/getting-started/web/combobox/overview#customizing-the-width-of-the-drop-down-list

If there some way to set the width of the drop down list to be automatic, so that the width changes to match the size of the content on a single line?

I am interested in templates that have one or more columns:

template: "<div><span>#: TicketTypeName #</span><span>#: TicketTypeDescription #</span></div>"
template: "<div><span>${TicketStatusName}</span></div>"
Kiril Nikolov
Telerik team
 answered on 25 Jun 2014
1 answer
165 views
Is it possible to do this? Have a List view widget that can have both draggable and drop target functionality?

Has anyone else attempted to implement this?
Alexander Valchev
Telerik team
 answered on 25 Jun 2014
1 answer
138 views
I have a grid with inline editing, when you hit update it updates/creates all entries that are available and not only the current row. So how do I filter for the current row only. I don't want the whole grid to fire an update/create when I only change a single row.
Alexander Valchev
Telerik team
 answered on 25 Jun 2014
3 answers
165 views
Hi, I'm seeing different behaviors for Chrome, Firefox, and IE with the Slider widget.  Touch gestures (dragging the thumb or clicking on the track) work for all three browsers.  But mouse gestures are only working for IE and Firefox.  With Chrome, clicking or dragging with the mouse does nothing to move the thumb.

To keep it simple and tease out the issue, I've got an unbound slider.

 

<head>
    @Styles.Render("~/Content/kendocss")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/kendojs")
</head>
<body>
    <div id='slider'></div>
    <script>
        $(function () { $("#slider").kendoSlider() });
    </script>
</body>

Windows 8 v6.2 b9200
Chrome: 23.0.1271.97 m
IE: 10.0.9200.16466
Firefox: 17.0.1

I don't have any touch-enabling extensions installed in Chrome.  I suspect this is a bug.  Any ideas or workarounds?  THANKS!
Hristo Germanov
Telerik team
 answered on 25 Jun 2014
1 answer
165 views
Does Kendo UI support a DropDownTree control?

Similar to the RadDropDownTree

Alex Gyoshev
Telerik team
 answered on 25 Jun 2014
1 answer
311 views
i am using kendo editor . I insert data using kendo editor from database when i retrieve data from database using kendo editor its show me html tags also.plz gave me some solution. 
Alex Gyoshev
Telerik team
 answered on 25 Jun 2014
6 answers
206 views
Hi,

I'm using the stock chart with navigation, I'm trying to use the days baseUnit on a similar chart like this example:

http://demos.telerik.com/kendo-ui/dataviz/financial/index.html

but the auto baseUnitStep is not allowing me to use a day step selection,

Could you help me with that?

Thank you so much,


Iliana Dyankova
Telerik team
 answered on 25 Jun 2014
1 answer
223 views
I have the following simple code which is the content of a Kendo Window:
<div id="nsdGird"></div>
 
<script>
 
    var model = @Html.Raw(Json.Encode(Model));
 
var grid = $('#nsdGird').kendoGrid({
    dataSource: model,
    pageable: true,
    sortable: true,
    scrollable: false,
    selectable:true,
    columns: [ {
                field: "Name",
                width: '150px',
                title: "NOTAM Name"
            } , {
                field: "Description",
            } , {
                command: {
                    text: "SelectNSD",
                    click: SelectNSD,
                    name:"Select-NSD"
                },
                title: "Select",
                width: '100px'
            } ]
}).data("kendoGrid");
 
var SelectNSD = function (e) {
 
    alert("Called");
    console.log(e);
 
}
 
</script>

the SelectNSD function is never called when I click on the custom command.  What is wrong with my code?

Thanks,
CS
Top achievements
Rank 2
 answered on 25 Jun 2014
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
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
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?