Telerik Forums
UI for ASP.NET MVC Forum
2 answers
168 views

I am currently trying to initialise the Kendo schedular in MVC (VB.Net).  I am getting the following error;

'Schema' is not a member of 'Kendo.Mvc.UI.Fluent.SchedulerAjaxDataSourceBuilder(Of TPinvestor.Models.ViewModels.PersonalFinanceManagement.SchedulerEvent)

which is in relation to line 15 below.

 

01.@Code
02.    Html.Kendo().Scheduler(Of Models.ViewModels.PersonalFinanceManagement.SchedulerEvent)() _
03.        .Name("scheduler") _
04.        .Date(New DateTime(2013, 6, 6)) _
05.        .StartTime(New DateTime(2013, 6, 6, 7, 0, 0)) _
06.        .AllDaySlot(False) _
07.        .Views(Sub(views)
08.                       views.DayView()
09.                       views.MonthView(Function(monthView) monthView.Selected(True))
10.               End Sub) _
11.        .Editable(True) _
12.        .DataSource(Sub(d)
13.                            d.Custom()
14.                            d.Batch(True)
15.                            d.Schema(Function(schema)
16.                                             schema.Model(Sub(m)
17.                                                                  m.Id(Function(f) f.Id)
18.                                                                  m.Field("title", GetType(String)).DefaultValue("No Title").From("Title")
19.                                                                  m.Field("description", GetType(String)).From("Description")
20.                                                                  m.Field("start", GetType(String)).From("Start")
21.                                                                  m.Field("end", GetType(String)).From("End")
22.                                                          End Sub)
23.                                     End Function)
24.                    End Sub) _
25.        .Render()
26. 
27. 
28.End Code

 

I have created a viewmodel that implements Kendo.Mvc.UI.ISchedulerEvent.  I have added no additional properties.  

Any help would be much appreciated.

mabs
Top achievements
Rank 1
 answered on 09 Nov 2016
5 answers
274 views

Hi, 

I've a grid with a custom editor template.

I need to open a new popup for a new record insert after the user updated o inserted the record before by clicking on a dedicated button

How can I do that?

Eyup
Telerik team
 answered on 08 Nov 2016
3 answers
273 views

Hello.

I want to use Telerik ASP.net MVC Upload control to upload large files. How to use Upload Control to split the large file into small chunks and upload to the server with IEnumerable<HttpPostedFileBase>, and then I could merge these parts into the original large file?

Dimiter Madjarov
Telerik team
 answered on 08 Nov 2016
1 answer
147 views

I created a custom editor for my Scheduler, which works well.

Then, I wanted to hide some parts of it with the help of a flag on my ViewModel like this:

<div class="k-edit-label">
@(Html.LabelFor(model => model.Title))
</div>
<div data-container-for="title" class="k-edit-field">
@(Html.TextBoxFor(model => model.Title, new { @class = "k-textbox", data_bind = "value:title" }))
</div>

if(@Model.XXX) {

<div class="k-edit-label">
@(Html.LabelFor(model => model.Description))
</div>
<div data-container-for="description" class="k-edit-field">
@(Html.TextAreaFor(model => model.Description, new { @class = "k-textbox", data_bind = "value:description", rows = 3 }))
</div>
}

But that didn't work. A debugging session shown that my XXX flag was always false. Curiously, if I'm writing something like this

<div data-container-for="xxx" class="k-edit-field">
@(Html.TextBoxFor(model => model.XXX, new { @class = "k-textbox", data_bind = "value:xxx" }))
</div>

I'm seeing the correct value (something true, something false).
So my question is: why using @Model.XXX always return false (the default value of a flag) and how then to implement the behavior I would like?
Thanks & Cheers,

Nicolas

Bozhidar
Telerik team
 answered on 08 Nov 2016
6 answers
404 views
I have 2 charts that I'm defining using the mvc wrappers. They both operate on the same data, which I'm loading using Ajax binding.  So that they do not make 2 separate calls I wanted to define a shared dataSource, but I've been unable to figure out how to do this when the charts are defined using MVC. Here's a cut down version of my chart definitions.

@(Html.Kendo().Chart<OtpDelayStat>()
        .Name("OtpBreakdown")
        .DataSource(ds => ds.Read(r => r.Action("GetOtpBreakdown", "Reports").Data("OtpBreakdownData")))
        .Series(series =>
        {
          series.Column(m => m.OutDelay).Name("Out Delay").Color("#F93");
        })
    )

@(Html.Kendo().Chart<Collins.Hermes.WebMessenger.Models.Reports.OtpDelayStat>()
        .Name("OtpBreakdown2")        
        .Series(series =>
        {
          series.Column(m => m.ScheduledLength).Name("Schedule").Stack("Scheduled Times").Color("#090");
          series.Column(m => m.OnTimeArrival).Name("On-Time Arrival").Stack("Scheduled Times").Color("#090").Opacity(0.5);          
        })        
    )

Is there a way to define a shared dataSource in MVC alone? if not is there a sensible way to do it in javascript? (I tried assigning the datasource from one grid to another in a javascript event, but this only seemed to work properly the 2nd time the event occurred. I also tried doing it in jquery document.ready, but the charts don't seem to have been created at that point.
Sébastien
Top achievements
Rank 1
 answered on 08 Nov 2016
1 answer
84 views

Hello,

the default "norecords" text is not the correct german Translation

instead of "Keine Aufzeichnungen zur Verfügung." it should be "Keine Datensätze verfügbar."

 

Rumen
Telerik team
 answered on 07 Nov 2016
1 answer
1.0K+ views

When I use the Kendo UI scaffolder for MVC and choosing "Use Existing ViewModel" the "Add" button remains disabled in the final dialog so I can never complete the process unless I also select a data model and DbContext. I have tried this with each of the available widgets the scaffolder supports as well as many combinations of options. Environment is: vs2015, MVC UI 2016.3.1028, EF 6.1, .Net 4.5.2  

Steps: 1) right click on "Controllers" in Solution Explorer

2) Select Add, Controller

3) In the Add Scaffold dialog select MVC Kendo UI Scaffolder and Add

4) In the Kendo UI Scaffolder dialog, select UI for MVC Grid (or any other widget) and Add

5) In the widget specific dialog set Controller name,  View name, check the "Use Existing ViewModel" box, select a View Model

At this point the "Add" button remains disabled regardless of any additional selections of options.  The only way to get the Add button to become enabled is to also select a Data Model and DbContext.

Thanks, John

Dimiter Madjarov
Telerik team
 answered on 07 Nov 2016
1 answer
235 views

I've been attempting to write/run some automated UI tests using cucumber.io and selenium on our app that is using kendo UI.  So far its been a struggle.  I've run into a lot of issues where elements "don't exist" on the page until they've been clicked, or they just don't exist in a state where cucumber can interact with them.  

Has anyone else done any sort of UI testing and/or had issues with this kind of behavior?

 

Thanks,

Harrison

Alex Hajigeorgieva
Telerik team
 answered on 07 Nov 2016
2 answers
221 views
I have a menu with a submenu using MVC.  When the page is displayed, an unformatted image of the menu and submenu is displayed on the screen for a brief second before the menu is formatted and the submenu hidden.  Any way to stop this?

 

<div>
        <ul id="menu">
            <li>@Html.ActionLink("Work Orders", "Index", "Orders")</li>
            <li>@Html.ActionLink("User Management", "Index", "Users")</li>
            <li>Reports
            <ul>
                <li>@Html.ActionLink("Ad Hoc Report", "Index", "Reports")</li>
                <li><a target="_blank" href="http://ws01/ReportingService/Reports.html">All Reports</a></li>
                <li><a target="_blank" href="http://ws01/ReportingService/MonthlyShippedOrders.html">Monthly Shipped Orders</a></li>
                <li><a target="_blank" href="http://ws01/ReportingService/ActiveOrders.html">Active Orders</a></li>
                <li><a target="_blank" href="http://ws01/ReportingService/LTL.html">LTL Orders</a></li>
                <li><a target="_blank" href="http://ws01/ReportingService/VendorBilling.html">Vendor Billing Spreadsheet</a></li>
                <li><a target="_blank" href="http://ws01/ReportingService/Telephony.html">Telephony Active Orders</a></li>
            </ul>
            </li>
            <li>@Html.ActionLink("Admin", "Index", "Admin")</li>
        </ul>
    </div>

 

Thanks,

Chris

Chris
Top achievements
Rank 1
 answered on 04 Nov 2016
3 answers
700 views

Hi Team,

I have a requirement to show the total sum / the maximum total followed by the percentage calculated out of it.

Sample

100/200
50%

I need to have this kind of layout in the footer template but right now I am able to get just one of the three values at a time. Can you help if there is some existing feature and any workaround to achieve this.

Thanks,
Dipen Shah

Konstantin Dikov
Telerik team
 answered on 04 Nov 2016
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
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
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Licensing
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?