Telerik Forums
UI for ASP.NET MVC Forum
1 answer
109 views
Hi,
I've just updated to 2012.3.1114 and am now receiving the above error in IE in relation to the Menu. How best to fix this?

Stephen Graham
Top achievements
Rank 1
 answered on 16 Nov 2012
0 answers
135 views
Hi everyone,

i'm not sure if its a problem of the AutoComplete, but let me explain my (extremely strange) problem:

We use a kendoMenu --> Clicking on an item opens a modal kendoWindow --> In this kendoWindow is a kendoAutocomplete. As soon as i press enter in this autoComplete the complete page gets refreshed.

This problem only occurs in IE8 and (this is very strange...) as soon as I add a TextBox (hidden or not) in the kendoWindow the problem seems to be solved (no refreshing).

We think that it probably has something to do with the focus or something like that. It also doesn't matter where I place the TextBox the problem is gone. But actually this isnt really the best solution.

Is this a bug? I actually can't really reproduce the problem but probably you know what could cause such phenomenon?
Mathias
Top achievements
Rank 1
 asked on 16 Nov 2012
2 answers
139 views
Folks
I am trying to update our paid verion of KENDOUI.
I run the wizard
Log in with username, which is NOT the same as the user I am using to write this post.
It propmpts me for to download, so I do
It shows download dialog with a header of:

Kendo UI Complete for ASP.NET MVC 2012.3 1114

and a status of "Starting Download"
After 1-2 mins it sows red erro: "The operation has timed out"

How can we fix this issue so I can get the latest software
Greg
Top achievements
Rank 1
 answered on 16 Nov 2012
1 answer
168 views
Is it possible to call a custom popup window or to edit the contents of the built in popup?
AspenSquare
Top achievements
Rank 1
 answered on 15 Nov 2012
0 answers
238 views
Is it possible to add a editable grid in a popup editor of a parent grid? Both grids are Ajax bindings.

Parent Grid View:

@(Html.Kendo().Grid<MyProject.Business.Models.ParentDTO>().Name("ParentGrid")
.Columns(cols => cols.Command(o => o.Edit() ).Title(" "))
.Editable(editor => editor.Mode(GridEditMode.PopUp))
.Events(events=>events.Edit("onEditOfParentGrid"))
.DataSource(datasource => datasource
    .Ajax()
    .Model(model => model.Id(o => o.id))
    .Read(read => read.Action("GetAll", "ParentAjax"))
    .Update(update => update.Action("Update", "ParentAjax"))
    .Create(create => create.Action("Create", "ParentAjax"))
    .Destroy(destroy => destroy.Action("Destroy", "ParentAjax"))
    )
)
<script type="text/javascript">
    function onEditOfParentGrid(e) {
        $('#ChildGrid').data().kendoGrid.dataSource.read({ id: e.model.id })
    }
</script>


Child Grid View (Parent's default EditorTemplate):

@model MyProject.Business.Models.ParentDTO
@(Html.Kendo().Grid<MyProject.Business.Models.ChildDTO>().Name("ChildGrid")
.AutoBind(false)
.Editable(edit=>edit.Mode(GridEditMode.InCell))
.DataSource(datasource => datasource
    .Ajax()
    .Model(model =>model.Id(o => o.id))
    .Read(read => read.Action("GetByParentId", "ChildAjax"))
    .Update(update => update.Action("Update", "ChildAjax"))
    .Create(create => create.Action("Create", "ChildAjax"))
    .Destroy(destroy => destroy.Action("Destroy", "ChildAjax"))))

Doing this will screw up the popup editor by showing it inline and write some javascript (as text). The child grid will also loose the data. If the child grid has no editor (aka read only), everything works fine, data is shown.


Theres a jQuery error in the console but it doesn't (at least for me) says much

    Uncaught SyntaxError: Unexpected token ILLEGAL jquery-1.8.2.js:564
      (anonymous function) jquery-1.8.2.js:564
      jQuery.extend.globalEval jquery-1.8.2.js:565
      (anonymous function) jquery-1.8.2.js:6006
      jQuery.extend.each jquery-1.8.2.js:611
      jQuery.fn.extend.domManip jquery-1.8.2.js:5991
      jQuery.fn.extend.append jquery-1.8.2.js:5764
      jQuery.fn.(anonymous function) jquery-1.8.2.js:6186
      h.extend._createPopupEditor kendo.all.min.js:8
      h.extend.editRow kendo.all.min.js:8
      (anonymous function) kendo.all.min.js:8
      jQuery.event.dispatch jquery-1.8.2.js:3063
      elemData.handle.eventHandle jquery-1.8.2.js:2681
Pier-Luc
Top achievements
Rank 1
 asked on 15 Nov 2012
0 answers
152 views

In my grid I placed a custom command "Copy" which  copies a value of a column to two other values in other columns in the Click-handler CopyClick. Now I would like to enter the edit mode for the row. How can I do that? I tried grid.editRow(row) but it did not worked. Probably I passed the wrong parameter to it. What must row be as a parameter to editRow()?

 

@(Html.Kendo().Grid<MyViewModel>()
    .Name("MyGrid")
    .Columns(columns =>
    {
      columns.Command(command =>
      {
            command.Edit();
            command.Destroy();
            command.Custom("Copy").Click("CopyClick");
      });
   
 
    â€¦â€¦
 
    function CopyClick(e)
    {
        e.preventDefault();
        var grid = $("#UnterhaltGrid").data("kendoGrid");
        var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
 
        dataItem.Val1 = dataItem.Val0;
        dataItem.Val2 = dataItem.Val0;
 
        grid.refresh();
    }

 

 

 

 

 

Linus
Top achievements
Rank 1
 asked on 15 Nov 2012
1 answer
637 views

I want to bind to a controller called articles but am getting an exception as follows
0x800a138f - JavaScript runtime error: Unable to get property 'DataSource' of undefined or null reference


<!DOCTYPE html >

<HTML>
<head>
    <title>content</title>
    <link href="~/Content/kendo/2012.2.710/kendo.common.min.css" rel="stylesheet" />
    <link href="~/Content/kendo/2012.2.710/kendo.default.min.css" rel="stylesheet" />

</head>
    <body>
        <div id="articlesgrid"> </div>

        <script src="~/Scripts/jquery-1.7.2.js"></script>
        <script src="~/Scripts/kendo/2012.2.710/kendo.web.min.js"></script>
        <script>
            $(function()
            {
                $("#articlesgrid").kendoGrid(
                    {
                        dataSource: new kendo.Data.DataSource({
                            transport: {
                            read : "Api/Articles"
                        }}
                        )
                    })
                }
            );

        </script>
    </body>
</HTML>

 

#''''''''''''''''''''''''''''''''''''''''''''''''''''''''

 public class ArticlesController : Controller
    {
       public List<Article> Get()
        {
            List<Article> lst = new List<Article>();
            lst.Add(new Article() { ID = 1, Name = "AAA", Price1 = 1.22m });
            lst.Add(new Article() { ID = 1, Name = "BBB", Price1 = 1.32m });
            lst.Add(new Article() { ID = 1, Name = "CCC", Price1 = 1.42m });

            return lst;
        }
    }
}

 

 

Vladimir Iliev
Telerik team
 answered on 15 Nov 2012
2 answers
120 views
Hi,

there is no problem when using KendoUI only with HTML and jQuery. I have the control where on the page my scripts and functions are executed.

When using the HTML-Helper in Razor all function are written in the middle of the DOM and I get the famous "jquery is not defined" exception.

InlineScripts or InlineStyles are a bad style for webperformance.
So I ask if there is a way to use HTML-Helper without writing all scriptlibraries in the head? 
Atanas Korchev
Telerik team
 answered on 15 Nov 2012
0 answers
150 views
folks
My company has paid for a 3 license copy of KendoUI
I am posting here and not under the company registered user name as no one monitors that email

I am using

2012.2.710 release (because I can't upgrade

I get a error when the Chart is rendered
Error(see attachment):
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support this property or method

Rendered chart HTML(5.0/4.1)/jquery(1.7.2):
<div class="k-widget k-chart" id="chart"></div><script>
    jQuery(function(){jQuery("#chart").kendoChart({series:[{name:"Sale Value",type:"area",field:"SaleValue"}],categoryAxis:{categories:["2007","2008","2009","2010","2011"]},dataSource:{data:[{"Year":2007,"SaleValue":250000.0000},{"Year":2008,"SaleValue":500000.0000},{"Year":2009,"SaleValue":250000.0000},{"Year":2010,"SaleValue":500000.0000},{"Year":2011,"SaleValue":250000.0000}]}});});
</script>

Browser must IE8: nearly the biggest forgein client base, well be soon

code that made it happen ,includes commented out Telerik code that works with this model
@(Html.Kendo().Chart(Model.AnnualSalesList)
    .Name("chart")
    .Series(series =>
    {
        series.Area(s => s.SaleValue);
    })
    .CategoryAxis(axis => axis
    .Categories(s => s.Year)) 
        )
@*
@(Html.Telerik().Chart(Model.AnnualSalesList)
    .Name("chart")
    .Legend(false)
    .Series(series =>
    {
        series.Area(s => s.SaleValue).Name("Sales by Year");
    })
    .CategoryAxis(axis => axis
    .Categories(s => s.Year))
    .ValueAxis(axis => axis
    .Numeric().Labels(labels => labels.Format("${0:#,##0}")))
    .Theme("Metro")
    .HtmlAttributes(new { style = "width: 450px; height: 200px; margin: auto;" })
        )
*@



Regards

Greg
Greg
Top achievements
Rank 1
 asked on 15 Nov 2012
1 answer
492 views
I have a Grid with Employes. There is a Edit button and the edit mode is set to Popup. In the EditorTemplate of the entity I want to edit, there is another grid that has a history of Salary with a incell or inline edit mode.

Both grids uses Ajax datasources. The problem is with the inner grid binding. The controller action feeding a Json result to the ajax call requires the ID of the employe we are editing to return the appropriate Salary history. However, Kendo UI ASP.NET MVC wrapper will render some sort of template of the editor before knowing which employee we want to edit, then it will edit it when we are requesting the popup.

How can I feed the Employe ID in the Read Ajax call?

Main Grid

@(Html.Kendo().Grid<MyProject.Business.Models.EmployeDTO>().Name("EmployeGrid")
.ToolBar(toolbar => toolbar.Create())
.Columns(cols =>
{
    cols.Bound(o => o.someData).Title("Some Data");
    cols.Bound(o => o.moreData).Title("More Data");
    cols.Command(o =>
    {
            o.Edit();
        o.Destroy();
    }).Title(" ");
})
.Editable(editor => editor
    .Mode(GridEditMode.PopUp)
    .Window(window => window.Draggable().Resizable().HtmlAttributes(new { @style = "width:700px;" })))
.Sortable()
.Filterable()
.Groupable()
.DataSource(datasource => datasource
    .Ajax()
    .Model(model => model.Id(o => o.id))
    .Read(read => read.Action("GetAll", "EmployesAjax"))
    .Update(update => update.Action("Update", "EmployesAjax"))
    .Create(create => create.Action("Create", "EmployesAjax"))
    .Destroy(destroy => destroy.Action("Destroy", "EmployesAjax"))
    )
)

Inner Grid (In Views/Shared/EditorTemplates/EmployeDTO.cshtml)

@Html.Kendo().Grid<MyProject.Business.Models.SalairyDTO>().Name("SalaryGrid")
.Columns(cols =>
{
    cols.Bound(o => o.someInfo).Title("Some Info");
})
.DataSource(datasource => datasource
    .Ajax()
    .Model(model =>
    {
        model.Id(o => o.id);
        model.Field(o => o.employe_id).DefaultValue(Model.id);
    })
 
 
    // NEED THE ID HERE
    .Read(read => read.Action("GetByEmployeId", "SalairyAjax", new { id = "" }))
 
 
    .Update(update => update.Action("Update", "SalairyAjax"))
    .Create(create => create.Action("Create", "SalairyAjax"))
    .Destroy(destroy => destroy.Action("Destroy", "SalairyAjax"))));
Pier-Luc
Top achievements
Rank 1
 answered on 14 Nov 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Security
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
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?