Telerik Forums
UI for ASP.NET MVC Forum
0 answers
108 views
When using the MVC  extensions we could get hold of the object from within an event using $(this).

With Kendo it seems this is not possible.

We are using one event handler for several Uploaders so we cant respond using code like $("#UploaderID").data("kendoUpload") as we do not know which uploader fired the event

we were able to use code like  var row = $(this).closest('tr'); in mvc extensions where $(this) was the Uploader and it worked.

How can we achieve the same thing with Kendo. Would appreciate your help.
hn
Top achievements
Rank 1
 asked on 21 Jul 2012
21 answers
1.7K+ views
Trying to make our sorting and filtering working with what comes in a DataSourceRequest but since the source codes for Kendo.Mvc.dll aren't available (yet?), can we see what your FilterDescriptor looks like (I can only see an IFilterDescriptor interface which has one method by going to object definitions).

I can submit a support ticket if that's a preferred way.

Thanks
Mo
Top achievements
Rank 1
 answered on 20 Jul 2012
0 answers
97 views
With the MVC extensions we were able to find the ID of the Uploader using something like this:
if ($(this).find("input#mainImageUploader").length > 0)

WITH KENDO we cant. Is there any way to get the ID of the Uploader in the Success event

Thank you
hn
Top achievements
Rank 1
 asked on 20 Jul 2012
1 answer
153 views
How can the following code

.Model(model => {
                model.Id(p => p.OrderID);
                model.Field(p => p.OrderID).Editable(false);
            })

be translated to Visual Basic?

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 20 Jul 2012
1 answer
346 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
181 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
130 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
449 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
142 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
157 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
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
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
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
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?