Telerik Forums
UI for ASP.NET MVC Forum
1 answer
330 views
I have a model that includes a DateTime field. It has a "[Required]" attribute on the property. My .cshtml file includes this:

@(Html.Kendo()
    .DatePickerFor(p => p.CashReceipt.ReceivedOn)
    .HtmlAttributes(new { type = "text" })                                               
)

I'm not seeing the HTML attributes rendered into the output that I would expect, ex. data-val-required, etc.

I copied over the EditorTemplates from the sample project, then created a clean page to help isolate the problem. Instead of using the above, I tried this:

@Html.EditorFor(p => p.CashReceipt.ReceivedOn)

When this page runs, I see the validation attributes in the HTML as expected, however the JS on the page fails with "Uncaught TypeError: Object [object Object] has no method 'kendoDateTimePicker' "

I thought it might be because I have all of my JS references at the bottom of the page (to speed up page rendering), so I tested them at the top - I get the same error. 

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script
<script type="text/javascript" src="/Scripts/modernizr-1.7.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery.validate.unobtrusive.min.js"></script>
<script type="text/javascript" src="/Scripts/knockout-2.0.0.js"></script>
<script type="text/javascript" src="/Scripts/kendo.web.min.js"></script>
<script type="text/javascript" src="/Scripts/kendo.aspnetmvc.min.js"></script>
<script type="text/javascript" src="/Scripts/knockout-kendo.min.js"></script>


So the big question is - how do I make this work? More specifically, how do I make this work without just hardcoding the attributes in via the HtmlAttributes() method?
Georgi Krustev
Telerik team
 answered on 20 Jul 2012
1 answer
174 views
Just FYI a couple if issues I noticed in the docs site:

1) There is no MVC Extensions documentation for the Editor in the getting started section of the docs.
2) Noticed that the upload control section in the getting started uses the wrong namespace for the extensions (Should say Kendo() instead of Telerik()):
@(Html.Telerik().Upload()
        .Name("attachments")
        .Async(async => async
            .Save("Save", "Home")
        )
)

Thanks!
T. Tsonev
Telerik team
 answered on 20 Jul 2012
0 answers
124 views

Requirements

Kendo UI Suite and Version

212.606?
           

jQuery Version

1.8

Supported Browsers and Platforms

all    
           

Components/Widgets used 

Window, Panel, Editor

PROJECT DESCRIPTION 
In the previous MVC control we had 'FileBrowser' property where a browser could be added to manage images without the user having to know the url. Is there any support for this functionality anymore? I have looked at the help for API by all entries are machine generated and offer no examples etc or any help in converting my project.
Brett
Top achievements
Rank 1
 asked on 20 Jul 2012
3 answers
433 views

How would I implement the following (which is in an original MVC telerik grid onChange event handler) in a Kendo grid? Basically I need to capture the cancel click event and determine if it was from an add or an update.

$(e.form).find(".t-grid-cancel").click(function () {
 
    if (e.mode == "insert") {
        var urlPath = '@Url.Content( @"~\CatalogAdministration\RemoveBlankInventoryItem?inventoryItemId=")';
        urlPath += key;
 
        $.post(urlPath);
    }
 
});
 
$(e.form).find(".t-grid").data("tGrid").ajaxRequest({ inventoryItemId: key });
Joe
Top achievements
Rank 1
 answered on 19 Jul 2012
1 answer
132 views
c is not defined
We have loaded all the kendo Ui scripts and from the start of the page we get this error. I'm trying to use the grid and it loads the initiall model fine but whenever I try to page or sort data, the grid shows no data
Iliana Dyankova
Telerik team
 answered on 19 Jul 2012
0 answers
143 views

On your own site (as well as ours) when you look at the styles in IE8 and IE7 , they are completely different. When using the styles, for example

 

<a

 

 

class="k-button"><span class="k-icon k-i-arrow-s"></span></a> next to say a kendo combobox, in IE7 the layout is completely messed up whereas in other browsers, including IE8, its OK.

Are there any hacks we can use to solve this problem

 

hn
Top achievements
Rank 1
 asked on 19 Jul 2012
0 answers
126 views
Hai


I am going to create a new application with MVC architecture with Razor Syntax. And i want to use the telerik control in my application. Which control i can use for it. Is it possible to work with Asp.net Ajax controls?  or i should go for MVC Controls..


Tell me which is the best control to work with Razor Controls?


Thanks
sabarishbabu
Top achievements
Rank 1
 asked on 19 Jul 2012
0 answers
176 views
Hey

I have some foreign key column to countries, like :

columns.ForeignKey(p => p.CountryId,(IEnumerable)ViewData["CountriesLOV"], "id""name"); 

In filter row it's open filter combobx with huge height with all ~ 180 countries.
How I can define maximum combo height? Serge
Ariel
Top achievements
Rank 1
 asked on 19 Jul 2012
1 answer
48 views
In the ASP.NET forums you can search individual forums whereas in the Kendo UI forums you are forced to search everything which is not very useful when for instance you are just focussing on Kendo UI Complete for MVC -> Grid forum items.
Dimo Mitev
Telerik team
 answered on 19 Jul 2012
1 answer
120 views
So if the install of the Kendo UI for MVC is basically copying files into my project, how will I know when updates are released? How will I update my project with those updates?

I've really appreciated the tooling for Telerik within VS and how it tells me there are updates and downloads/installs those as needed. Am I losing this by switching to Kendo?

Thanks.
Atanas Korchev
Telerik team
 answered on 19 Jul 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?