Telerik Forums
UI for ASP.NET MVC Forum
22 answers
1.0K+ views
I recently updated all my Telerik controls (using the control panel) and now projects that were previously created with the Kendo UI Visual Studio extension will not permit me to upgrade. The error I get is "No Projects Selected" and then instructions to go back and select at least one project. The Kendo upgrade item in the right click menu does not show up at all, so this errors is coming from running the command from the Telerik tool bar.  All of the extensions are updated to most current via the control panel and via a check for extension updates in Visual Studio.  Creating a new C# Kendo UI MVC Application works fine and the project is manageable by the extension
Andreas Schneider
Top achievements
Rank 1
 answered on 22 Aug 2014
2 answers
88 views
http://demos.telerik.com/aspnet-mvc/scheduler/index

Select Month
Double click "HR seminar preparation" on Wednesday June 5th.
Repeat = Daily
End = On 6/12/2013

Delete the current occurrence for "HR seminar preparation" on June 09
Edit the current occurrence for "HR seminar preparation" on June 10 End Date to 6/11/2013 12:00 PM (this meeting is a two day event now)
Edit the current occurrence for "HR seminar preparation" on June 11 End Date to 6/12/2013 12:00 PM (this meeting is a two day event now)
Edit the current occurrence for "HR seminar preparation" on June 10 Owner from Alex to Charlie

Note that the current occurrence for "HR seminar preparation" on June 10 disappears.
I switched to Week and Day view too and its not there either..
     
Edward
Top achievements
Rank 1
 answered on 21 Aug 2014
3 answers
35 views
for ScatterLine chart, if the baseUnit is "weeks", how could I set the seekStartDay to Monday?  I try 
             xAxis:{
                baseUnit:"weeks",
                min: new Date('2014-01-25'),
                weekStartDay:1
              },

But it did not work for ScatterLine chart.  The start day is always Sunday.  
Hristo Germanov
Telerik team
 answered on 21 Aug 2014
3 answers
315 views
I was wondering whether Telerik intended to produce VB.net examples as they did with the AJAX ASP.NET tools?

Translating controller code is easy with the Telerik Code Translator, but the translator doesn't understand Razor markup and therefore translation can be a bit hit-or-miss and is time consuming.

It would be good to know if there is no intention to do this in the future.

Many thanks
Richard
Sebastian
Telerik team
 answered on 21 Aug 2014
1 answer
112 views
Having learnt that Gantt doesn't (yet) support passing models to views I am attempting to engineer a datasource/service driven Gantt chart.

View is:
<div class="gantt-wrapper">
    @(Html.Kendo().Gantt(Of IMS_2.Models.Task, IMS_2.Models.Dependency)().Name("gantt") _
    .Columns(Sub(columns)
                     columns.Bound(Function(c) c.ID).Title("ID").Width(50)
                     columns.Bound("title").Editable(True).Sortable(True)
                     columns.Bound("start").Title("Start Time").Format("{0:MM/dd/yyyy}").Width(100).Editable(True).Sortable(True)
                     columns.Bound("end").Title("End Time").Format("{0:MM/dd/yyyy}").Width(100).Editable(True).Sortable(True)
             End Sub) _
          .Views(sub(views)
                         views.DayView()
                         views.WeekView(Function(weekView) weekView.Selected(True))
                         views.MonthView()
                         End Sub) _
                         .DataSource(Function(d) d.Read(Function(read) read.Action("ReadTasks", "Gantt")).Model(Sub(m)
                                                                                                                        m.Id(Function(f) f.ID)
                                                                                                                        m.ParentId(Function(f) f.ParentID)
                                                                                                                        m.OrderId(Function(f) f.OrderID)
                                                                                                                        m.Field(Function(f) f.Expanded)            
                                                                                                                End Sub)))
</div>

The following is rendered but no gantt chart is displayed:
<div class="gantt-wrapper">
    <div data-role="gantt" id="gantt"></div><script>
    jQuery(function(){jQuery("#gantt").kendoGantt({"columns":[{"title":"ID","width":50,"sortable":true,"field":"ID"},{"title":"Project Name","editable":true,"sortable":true,"field":"title"},{"title":"Start Time","format":"{0:MM/dd/yyyy}","width":100,"editable":true,"sortable":true,"field":"start"},{"title":"End Time","format":"{0:MM/dd/yyyy}","width":100,"editable":true,"sortable":true,"field":"end"}],"views":[{"type":"day"},{"selected":true,"type":"week"},{"type":"month"}],"dataSource":{"type":(function(){if(kendo.data.transports['aspnetmvc-ajax']){return 'aspnetmvc-ajax';} else{throw new Error('The kendo.aspnetmvc.min.js script is not included.');}})(),"transport":{"read":{"url":"/Gantt/ReadTasks"},"prefix":""},"schema":{"data":"Data","total":"Total","errors":"Errors","model":{"id":"ID","fields":{"ID":{"type":"number"},"title":{"from":"Title","type":"string"},"start":{"from":"Start","type":"date"},"end":{"from":"End","type":"date"},"parentId":{"from":"ParentID","type":"number"},"orderId":{"from":"OrderID","type":"number"},"percentComplete":{"from":"PercentComplete","type":"number"},"expanded":{"from":"Expanded","type":"boolean"},"summary":{"from":"Summary","type":"boolean"}}}}},"dependencies":{"type":(function(){if(kendo.data.transports['aspnetmvc-ajax']){return 'aspnetmvc-ajax';} else{throw new Error('The kendo.aspnetmvc.min.js script is not included.');}})(),"transport":{"read":{"url":""},"prefix":""},"schema":{"data":"Data","total":"Total","errors":"Errors","model":{"fields":{"DependencyID":{"type":"number"},"PredecessorId":{"type":"number"},"SuccessorId":{"type":"number"},"Type":{"type":"number"}}}}}});});
</script>
</div>
        </div>

The controller datasource service is not being called (no breakpoints are hit).  Any help gratefully received!
Thanks
Richard
Top achievements
Rank 1
 answered on 21 Aug 2014
1 answer
186 views
My scenario is simple.  A user selects a course from the dropdown and uses the fileupload to select 1 or more files.  The user hits submit and the file is saved in a file directory along with file data saved in the database.

My dropdown:

        @Html.LabelFor(m => m.selectedCourseID)
        @Html.DropDownListFor(m => m.selectedCourseID, Model._courses)


If I use just a regular <input id="FilePath" title="upload a image" type="file" name="file" />, everything saves correctly.   But, I'd rather use the Kendo Upload.  If I add this:

     <div class="demo-section">
                    @(Html.Kendo().Upload()
                    .Name("Images")
                    )
                </div>

I get the following runtime error:

The ViewData item that has the key 'selectedCourseID' is of type 'System.Int32' but must be of type 'IEnumerable<SelectListItem>'.



My viewmodel:

        [Display(Name = "Select a course...")]
        public int selectedCourseID { get; set; }


        public IEnumerable<SelectListItem> _courses { get; set; }   



Is this enough information or should I send you information?   Thanks in advance.


Dimiter Madjarov
Telerik team
 answered on 21 Aug 2014
5 answers
178 views
Hello,

I have a treeview where the root nodes are loaded at first and evertime a node is clicked the children nodes are loaded. for each node the Image is also loaded dynamically. For some nodes we Show just one Image and for some nodes we load and Image which has to be overlapped with another Image with relative Position set to bottom right. Can we achieve this ? if i use treeviewmodel imageURL i can only provide one Image. Can i overlap 2 Images and Show them in treeview

Thanks

Anamika
Daniel
Telerik team
 answered on 21 Aug 2014
7 answers
1.2K+ views
I have a grid with incell editing, I need to be able to double-click the line to enter edit mode then have return key press save changes and exit edit mode. I have the edit working by clicking edit then update but return key press automatically cancels the change, I expected that to automatically save. Can anyone help, this seems like a simple request that someone else must have figured out a workaround.
Vladimir Iliev
Telerik team
 answered on 21 Aug 2014
0 answers
70 views
Hi,

I'm looking for an experienced developer able to master the Telerik Scheduler component (MVC). 
 
Please contact me for all the information

Thank you
IndM1
IndM1
Top achievements
Rank 1
 asked on 20 Aug 2014
0 answers
60 views
Hi,

I'm looking for an experienced developer able to master the Telerik Scheduler component (MVC). 
 
Please contact me for all the information

Thank you
IndM1
IndM1
Top achievements
Rank 1
 asked on 20 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?