Telerik Forums
Kendo UI for jQuery Forum
2 answers
305 views
Hi,

I am trying to get the Validator working on a KendoUI date picker and cannot see what I am doing wrong.

I am attempting to use the following code.

<div id="tickets">
  <label for="datepicker">Start Date</label>
  <input type="date" id="datepicker" name="searchstart" />
  <span class="k-invalid-msg" data-for="searchstart" validationMessage="Test"></span>
</div>
<script>
   $(document).ready(function() {
      $("#datepicker").kendoDatePicker({
          format: "dd/MM/yyyy"
      });
      var validator = $("#tickets").kendoValidator().data("kendoValidator");
    });
</script>

When the page loads, I can type what ever text I want in the date such as "kendo", lose focus on the element and no validation occurs.

I have tested this on both JSBin and Kendo Dojo without any success

What am I missing?

Kind Regards,
Jonathan
Alexander Popov
Telerik team
 answered on 27 Mar 2014
1 answer
264 views
I have a data with multiple customers, each customer has a "percent tank is full" data point. I would like to put this info in a grid and have the "percent tank full" displayed visually with the radial gauge rather than just a numeric value. How would I go about doing this?
T. Tsonev
Telerik team
 answered on 27 Mar 2014
1 answer
98 views
Hi,
i want to create a scheduler..
now scheduler can be displayed in correctly...

my problem is..
i was click the scheduler cell it can be display the a dialog box that is event dialogox that is can not be work..
i was checked with checkpoint but the code is not be executed....
and also i don't know about the work flow...

my code is

    @(Html.Kendo().Scheduler<StackedSports.Models.TaskViewModel>()
    .Name("scheduler")
    .Date(new DateTime(2013, 6, 13))
    .StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
    .Height(600)
    .Views(views =>
    {
        views.DayView();
        views.WeekView(weekView => weekView.Selected(true));
        views.MonthView();
        views.AgendaView();
    })
    .Timezone("Etc/UTC")
    .DataSource(d => d
        .Model(m =>
        {
            m.Id(f => f.TaskID);
            m.Field(f => f.OwnerID).DefaultValue(1);
            //Set the recurrence ID field from the model:
            m.RecurrenceId(f => f.RecurrenceID);
        })
                .Read("Tasks_Read", "Coaches")
                .Create("Tasks_Create", "Coaches")
                .Destroy("Tasks_Destroy", "Coaches")
                .Update("Tasks_Update", "Coaches")
    )
Vladimir Iliev
Telerik team
 answered on 27 Mar 2014
1 answer
157 views
In the latest version 2014.1.318 (and even the latest internal build 2014.1.321), I am having issues in the view.init event.  I've created this sample to show the issue.  
http://trykendoui.telerik.com/OvaD

Inside the view init event, I tie a double-click event handler to the kendo grid using jquery, and use that event to route the SPA to a details page.  When using the latest version, nothing happens. If I roll back to the 2013.3.1119 version, it works seemingly fine.
http://trykendoui.telerik.com/oziR

Thanks.

Petyo
Telerik team
 answered on 27 Mar 2014
1 answer
294 views
For dropdown and multi selects fields in kendi ui, validation message occurs under the field. But I want validatio message on side of the control. how?
Kiril Nikolov
Telerik team
 answered on 27 Mar 2014
1 answer
136 views
Using the latest version (2014.1.318) of Kendo UI Web the multi-select drop down select pane opens and immediately closes on FireFox 28.  It behaves this way on the Telerik demo (http://demos.telerik.com/kendo-ui/web/multiselect/index.html) and on my sites as well.  I had to roll back to an older version of Kendo UI.  Please help.

Thanks,
Grady
Kamen Bundev
Telerik team
 answered on 27 Mar 2014
7 answers
179 views
Normal when the field in 'grid' control validate failed, the input will show tooltip.
But I want more than that.
Display a ‘×’ or ‘!’ icon in input when validate failed.
I do not know how to achieve this function, can somebody help me?
tonfy
Top achievements
Rank 1
 answered on 27 Mar 2014
3 answers
309 views
Hola, tengo este error y no se como corregirlo:

Error de servidor en la aplicación '/'.Las siguientes secciones se han definido, pero no se han presentado para la página de diseño "~/Views/Shared/_Layout.cshtml": "featured"
.Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código. 

Detalles de la excepción: System.Web.HttpException: Las siguientes secciones se han definido, pero no se han presentado para la página de diseño "~/Views/Shared/_Layout.cshtml": "featured".

Error de código fuente: 

Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.
Seguimiento de la pila: 

[HttpException (0x80004005): Las siguientes secciones se han definido, pero no se han presentado para la página de diseño "~/Views/Shared/_Layout.cshtml": "featured".]
System.Web.WebPages.WebPageBase.VerifyRenderedBodyOrSections() +708
System.Web.WebPages.WebPageBase.PopContext() +404
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +154
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer) +41
System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +335
System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +42
System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content) +45
System.Web.WebPages.WebPageBase.Write(HelperResult result) +53
System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +178
System.Web.WebPages.WebPageBase.PopContext() +347
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +154
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +695
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +382
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +431
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +39
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +116
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +529
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +106
System.Web.Mvc.Async.<>c__DisplayClass28.<BeginInvokeAction>b__19() +321
System.Web.Mvc.Async.<>c__DisplayClass1e.<BeginInvokeAction>b__1b(IAsyncResult asyncResult) +185
System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +34
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +39
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +62
System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(IAsyncResult asyncResult, ProcessRequestState innerState) +39
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9514928
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Ross B.
Top achievements
Rank 1
 answered on 27 Mar 2014
4 answers
183 views

Hello, I have the following editor which is inside of a shared view:

@model Common.Models.Zone
 
<html>
    <head></head>
    <body>
        <table>
            <tr>
                <td>
                     @Html.LabelFor(zone => zone.Page)
                </td>
                <td>
                    @Html.Partial("PageSelector")
                </td>
            </tr>
            <tr>
                <td>
                     @Html.LabelFor(zone => zone.ZoneContents)
                </td>
                <td>
                  @(Html.Kendo().EditorFor(zone => zone.ZoneContents))
                </td>
            </tr>
        </table>
    </body>
</html>

The editor opens fine, but as soon as I try to apply any formatting to any text (if the text is "Test") and I try to bold "Test", when I click update I just get a bunch of errors in the jquery-1.8.2.js file. The error getting thrown is on line 5303 in the jquery file and the error message only says "SyntaxError".

How could such a simple example go so wrong? Are these controls really that difficult to get working correctly? Not all that impressed so far I have to say. I follow examples and things don't work. I start with the simplest possible configuration and things don't work. Also, if I set the name property on my editor the content property in my model is ALWAYS null when going back to the server.

What could I possibly be doing wrong here?

Thanks!


Cool Breeze
Top achievements
Rank 1
 answered on 26 Mar 2014
9 answers
794 views
Hello all!

I'm currently running into an issue with the latest version of Kendo UI (2013.3.1119).  In the previous version I used Kendo window as a form entry and used the bootstrap 3 form group as the layout.  My expected results are attached.  The code used inside the window is as follows.

<div class="form-horizontal" role="form">
        <div class="form-group">
            @Html.Label("Entry Type", htmlAttributes: new { @class = "col-lg-2 control-label" })
            <div class="col-lg-10">
                @(Html.Kendo().DropDownList()
                    .Name("ddlEntryType")
                    .HtmlAttributes(new { @required = "required", @style = "width: 100%" })
                    .OptionLabel("Select Course Type...")
                    .DataTextField("Text")
                    .DataValueField("Value")
                    .BindTo(new List<SelectListItem>() {
                        new SelectListItem() {
                            Text = "Manual",
                            Value = "Manual"   
                        },
                        new SelectListItem() {
                            Text = "Temporary Access",
                            Value = "Temporary"
                        }
                    })
                )
            </div>
        </div>
        <div class="form-group">
            @Html.Label("Select Course", htmlAttributes: new { @class = "col-lg-2 control-label" })
            <div class="col-lg-10">
                @(Html.Kendo().DropDownList()
                    .Name("ddlCourses")
                    .HtmlAttributes(new { @required = "required", @style = "width: 100%" })
                    .OptionLabel("Select Course...")
                    .DataTextField("Name")
                    .DataValueField("ID")
                    .DataSource(dataSource =>
                    {
                        dataSource.Read(read =>
                            {
                                read.Action("GetCourseList", "Home", new { @personID = ViewBag.PersonID })
                                    .Data("filterCourses");
                            })
                            .ServerFiltering(true);
                    })
                    .Enable(false)
                    .AutoBind(false)
                    .CascadeFrom("ddlEntryType")
                )
            </div>
        </div>
        <div class="form-group">
            @Html.Label("Completed Date", htmlAttributes: new { @id = "lblCompletedDate", @class = "col-lg-2 control-label" })
            <div class="col-lg-10">
                @(Html.Kendo().DatePicker().Name("dpCompletedDate").Value(DateTime.Now))
            </div>
        </div>
        <div class="form-group">
            @Html.Label("Course Site", htmlAttributes: new { @class = "col-lg-2 control-label" })
            <div class="col-lg-10">
                @Html.TextBox("txtCourseSite", "", htmlAttributes: new { @placeholder = "ex. Nationwide Children's Hospital, CITI, or OSU", @required = "required", @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-offset-2 col-lg-10">
                <button type="button" class="btn btn-default" onclick="closeAddCompletedCourse(this);">Cancel</button>
                <button type="submit" class="btn btn-primary">Add</button>
            </div>
        </div>
    </div>

After updating to the latest version I got a different result which is also attached.  What you will see is the horizontal grouping is now breaking in the window.  I did find a temporary fix which was to decrease the col size that is holding the control from 10 to 8.  The bootstrap grid is 12 so the previous code should have worked.  I'm just curious if I'm missing something or if this is an issue in the latest version of Kendo UI.

Thanks in advance for your help!
Neil
Top achievements
Rank 1
 answered on 26 Mar 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
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?