Telerik Forums
Kendo UI for jQuery Forum
5 answers
1.1K+ views
This is my new Error: Microsoft JScript runtime error: Object doesn't support property or method 'kendoGrid'.

Here is what my grid looks like

@(Html.Kendo().Grid(Model)
        .Name("CodeManager")   
    .Columns(columns =>
    {       
        columns.Bound(p => p.CodeID);
        columns.Bound(p => p.Status);       
    })   
    .DataSource(dataSource => dataSource       
        .Ajax()        
        .Read(read => read.Action("_Filtering", "CodeManager", new { classifications = @ViewBag.SelectedCatgory }))
    )
)


Thanks
Dennis
Saurabh
Top achievements
Rank 1
 answered on 04 Nov 2012
0 answers
125 views
Hi,

I have problem with a kendo grid. It is rendered in an window which opens after clicking a button.

Firstly it makes two POST requests.
Secondly in IE an error htmlfile invalid element occurs. Can anybody help me with that?

@(Html.Kendo().Grid<WebUI.Models.ViewModels.Weather>()
.Name(Constants.GridName).Columns(columns =>
        {
            columns.Bound(o => o.DictionaryId)
                .ClientTemplate("<input type='checkbox' name='" + Constants.GridCheckbox + "' value='<#= TestCaseDictionaryId #>' />")
                .HeaderTemplate(
                    @<text>
                        <input type="checkbox" title="@Constants.GridCheckAllTitle"
                            id="@Constants.GridCheckAll" onclick="@(Constants.GridCheckAllOnClick)(this)" />
                    </text>)
                .Width(50)
                .HeaderHtmlAttributes(new { style = "text-align:center" });
            columns.Bound(o => o.Name);
            columns.Bound(o => o.Package);
            columns.Command(command => command
                .Custom(Constants.GridName + "Add").SendDataKeys(false)
                .Text("add")
                .Click(Constants.GridName + "Click")
                .SendState(false)).Width(100).Title("Actions").HtmlAttributes(new { style = "text-align: center" });
        })
        .Groupable()
        .DataSource(dataSource => dataSource.Ajax()
            .Read(read => read.Action("AjaxKendo", "ReadDataFromServer")
                .Data(Constants.GridName + "AdditionalData"))
                .PageSize(50).Group(group => group.Add(e => e.Package)))
        .Events(events => events.DataBound(Constants.GridName + "OnDataBound"))
        .Sortable().Pageable(p => p.Refresh(true)).Filterable().Scrollable(scrolling => scrolling.Height(450)));
Mic
Top achievements
Rank 1
 asked on 04 Nov 2012
1 answer
507 views
I would like to implement a template in the grid toolbar. I am just not sure how to add the "Add a new record" button that will call the
.ToolBar(toolbar => toolbar.Create().Text("Create"))

I am NOT using .NET so I will get an error Uncaught SyntaxError: Unexpected token >

Please see my template code in the jsbin below.

http://jsbin.com/ojevoc/23/edit
OnaBai
Top achievements
Rank 2
 answered on 04 Nov 2012
1 answer
170 views
I have a  mobile app using Kendo Mobile, works great on iOS but doesn't work at all on Android. Is there any easier way to debug what actually is going on with the android browser? Or any other recommendations on testing for android.
Ali
Top achievements
Rank 1
 answered on 03 Nov 2012
1 answer
278 views
I want to show Selected Main Menu Item also if any Sub Menu Item is selected. e.g. we have menu Items are

Main-1
    Sub-1
    Sub-2
    Sub-3
Main-2
    Sub-1
    Sub-2

and so on...

Now whenever user selects Sub-2 of Main-1 Menu then Sub-2 and Main-1 should be shown in different background color or with different style. So how can we do this in Kendo Menu?

Thanks

Anil Lakhani
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Nov 2012
1 answer
320 views
Hello,

actually im facing a really bad problem with the kendo grid. I built a grid with batch editing, like shown in the kendo docs. The date is shown well in the normal display mode in the format i set {0:y} which displays month and year.
To edit this field, i use the Kendo Date Picker (this doest matter at all). So when the grid switches to edit mode, the date is not formatted and instead shown in the format "Mon Oct 01 2012 00:00:00 GMT+0200". I cant submit it in this format, because my validator gives me an error.

As i already spent hours on searching on that topic, i found a few things which acutally dont work for me. I set up the localized js files properly:
 @{
     var culture = System.Threading.Thread.CurrentThread.CurrentCulture.ToString();
   }

<
script src="@Url.Content("~/Scripts/cultures/kendo.culture." + culture + ".min.js")")</script>
<script>kendo.culture("@culture");</script>

As i can see in the display mode, the date is well formatted to the spanish format, which is my culture. So this works.

Maybe another info is, how my Data Class looks like (i tried as well with datatype datetime):
[DataType(DataType.Date)]
[DisplayFormat(ApplyFormatInEditMode=true, DataFormatString="{0:y}")]
public DateTime Date { get; set; }

So im kind of lost, what the problem is. I also tried the ClientTemplate Property, but this is only called when the grid is in display mode.

King regards
Sebastian
Top achievements
Rank 1
 answered on 03 Nov 2012
0 answers
170 views
I want to trigger the upload file event when some other button is clicked, instead of button generated by kendoUI itself.
Also I need to hide the upload button generated by default.

I have developed a method to generate image thumbnails before uploading the files (only for image files) can I post the method here in these forums.
manish
Top achievements
Rank 1
 asked on 03 Nov 2012
2 answers
237 views
On this Link, http://docs.kendoui.com/api/wrappers/aspnet-mvc/Kendo.Mvc.UI.Fluent/TreeViewBuilder 

there is a Topic on the Checkbox with the treeview saying:

.CheckboxTemplate("#= data #")
Ok, but what do I have to put in "#= data #" so my treeview has the checkbox on each Item?

Ps.: Newbie online =P 
Jeff
Top achievements
Rank 1
 answered on 02 Nov 2012
0 answers
79 views
We have solved this issue.  It turned out to be a server issue.
Shohab
Top achievements
Rank 1
 asked on 02 Nov 2012
3 answers
285 views
The kendo documentation states a clear() method: 

http://docs.kendoui.com/api/mobile/tabstrip

But yet there is none.

How can I clear the selection of the tabs.  

Robert
Iliana Dyankova
Telerik team
 answered on 02 Nov 2012
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
Drag and Drop
Application
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
LLM Kit
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?