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

Hi,

I have massive problems with a messed-up MVC project using Kendo UI MVC wrappers (Kendo.Mvc.dll at Version 2015.1.429.545).

To get the project running again I made several nuget updates and so far it compiles and spins up again. But on every view where any @Html.Kendo() widget is used I get an EntryPointNotFoundException in System.Web.Mvc.

sample trace:

bei System.Web.Mvc.IViewDataContainer.get_ViewData()<br>   bei System.Web.Mvc.HtmlHelper.get_ViewData()<br>   bei Kendo.Mvc.UI.Fluent.WidgetFactory.get_ViewData()<br>   bei Kendo.Mvc.UI.Fluent.WidgetFactory.AutoComplete()<br>   bei ASP._Page_Views_Suche_Index_cshtml.Execute() in c:\# Sources\baumkataster\sources\trunk\Baumkataster.Web\Views\Suche\Index.cshtml:Zeile 67.<br>   bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy()<br>   bei System.Web.Mvc.WebViewPage.ExecutePageHierarchy()<br>   bei System.Web.WebPages.StartPage.RunPage()<br>   bei System.Web.WebPages.StartPage.ExecutePageHierarchy()<br>   bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)<br>   bei System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)<br>   bei System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)<br>   bei System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)<br>   bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)<br>   bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)<br>   bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)

I checked all the references and binding redirects. So I thought it must have to do with incompatibility between MVC version and Kendo.

My next idea was to try to get the sources of Kendo.Mvc and compile it against the same library versions used in the project. That is at least what I tried to accomplish today. When opening the Project there are two js files missing (kendo.aspnetmvc.js and kendo.dropdownlist.aspnetmvc.js) and after changing reference after reference I end up having 500+ errors on the project.

Has anybody successfully done so and can provide me some help? What are the required steps (change to Framework 4.5, where to get the missing *.js files, which changes to make,...).

 

Hope somebody can help me out here.

Regards,

Thomas

Scott
Top achievements
Rank 1
 answered on 03 Sep 2015
3 answers
157 views

hi,

I am trying to make a scheduler custom editor with a View Model Collection Binding.

So what i really want. I need to my editor to dynamically a list of dropdownlist. Take a look in my attach image.

 My view model is like this (just show you the concern parts): I added one item to the list for testing

 public class RendezVousViewModel : ISchedulerEvent
    {

        public RendezVousViewModel()
        {
            this.ListRendezVousMateriels = new List<RendezVousMateriel>();
            var RendezVousMateriel = new RendezVousMateriel();
            RendezVousMateriel.MaterielID = 1;
            this.ListRendezVousMateriels.Add(RendezVousMateriel);
        }
        public List<RendezVousMateriel> ListRendezVousMateriels { get; set; }

        #endregion

    }
}

Extract of my editor :

  @for (var i = 0; i < Model.ListRendezVousMateriels.Count; i++)
    {
        @(Html.Kendo().DropDownListFor(model => model.ListRendezVousMateriels[i].MaterielID)
                       .HtmlAttributes(new { data_bind = "value:ListRendezVousMateriels_" + i + "__MaterielID", style = "width: 280px" })
                       .DataTextField("Text")
                       .DataValueField("Value")
                       .ValuePrimitive(true)
                       .HtmlAttributes(new { @style = "width:100%" })
                       .DataSource(source => source.Read(read => read.Action("GetDiplomes", "Diplomes")).ServerFiltering(true))
              .OptionLabel("Choix du matériel"))
    }

 So apparently it's doesn't work, do you confirm that is not implemented? Else do you have an idea how i can achieve somethink like this?

 Thanks by advance.

 

Philippe
Top achievements
Rank 1
 answered on 02 Sep 2015
4 answers
307 views
Telerik says they don't support this out of the box, i am wondering if anyone has any ideas for implementing Accent Folding for a kendo combo box.
Georgi Krustev
Telerik team
 answered on 02 Sep 2015
2 answers
129 views

I use TreeViewBuilder.Items to build tree view.
Child nodes doesn't ​be checked when I check parent node without expend nodes, but if I check ​the parent node again(without expend too), child nodes will be checked.

@using Kendo.Mvc.UI.Fluent;
@model List<AuthViewModel>
@functions
{
    public static void ShowTree(TreeViewItemFactory helper, IEnumerable<AuthViewModel> nodes)
    {
        foreach (var node in nodes)
        {
            helper.Add()
                .Id(node.ID)
                .Text(node.NAME)
                .Checked(node.IsChecked)
                .Expanded(false)
                .Items(items =>
                {
                    if (node.Childs.Count() > 0)
                    {
                        ShowTree(items, node.Childs);
                    }
                });
        }  
    }
}
 
@(Html.Kendo().TreeView()
    .Name("authTree")
    .Checkboxes(checkboxes => checkboxes
        .Name("checkedFiles")
        .CheckChildren(true)
    )
    .Items(root =>
        {
            ShowTree(root, Model);
        }
    )
)

Daniel
Telerik team
 answered on 02 Sep 2015
3 answers
181 views

I have a simple kendo.grid with inline editing and some decimals and datatime columns.

The problem is that when hitting the EDIT button, the editable inline fields are not styled as I normally see in other websites, we have (see attached mage).

What am I missing - I have compared this site with a site, where it works, but can't find the difference.

It should be obvious, but I cant see it :-)

Thank you in advance.

Jacob
Top achievements
Rank 1
 answered on 02 Sep 2015
2 answers
448 views

I am attempting to use a Kendo UI Window modal to edit an IList<T> and it is posting back NULL in the controller. I found a fairly old posts here from 2012 but was wondering if anyone has a newer solution or if there are any other alternatives?

Main View: 

@using (Html.BeginForm())
{
    @(Html.Kendo().Window()
        .Name("seg_locations_modal")
        .Title("Other Locations")
        .Content(@<TEXT>
            <div id="modal-content" class="split-sub-content-container" style="width:480px;">
                <ul>
                    @Html.EditorFor(x => x.Locations)
                </ul>
            </div>
            <div class="form-submit-container" style="width:480px; margin:0;">
                <p><button id="add-location" type="button" name="add-location" title="Close">Add Location</button></p>
                <p><button id="close-modal" type="button" name="close-modal" title="Close">Close Window</button></p>
            </div>
        </TEXT>)
        .Width(500)
        .Height(500)
        .Draggable(true)
        .Modal(true)
        .Visible(false)
    )
 
}

EditorTemplate: 

@model ReMemberMvc.Data.Model.Locations
@{
    Layout = null;
}
<li class="locations-row">
    <div data-locationsid="@Model.LocationsId" data-locationsseq="@Model.Seq">
        @Html.HiddenFor(x => x.LocationsId)
        @Html.HiddenFor(x => x.Seq)
        <span class="locations-description-column">@(Html.Kendo().TextBoxFor(x => x.Description).HtmlAttributes(new { style = "width:301px;", placeholder = "Bridgewater, NJ" }))</span>
        <span class="locations-employeerange-column">@(Html.Kendo().DropDownListFor(x => x.EmployeeRangeId).OptionLabel("Not Provided").DataTextField("Description").DataValueField("EmployeeRangeId").DataSource(source => { source.Read(read => { read.Action("GetEmployeeRangeList", "SelectLists"); }); }))</span>
    </div>
</li>

ViewModel: 

using ReMemberMvc.Data.Model;
using System.Collections.Generic;
 
namespace ReMemberMvc.Data.ViewModels
{
    public class SegApplicationViewModel
    {
        public virtual SegApplication SegApplication { get; set; }
 
        public virtual IList<Locations> Locations { get; set; }
    }
}

Thank you in advance.

Dimo
Telerik team
 answered on 01 Sep 2015
1 answer
120 views

Hello,

 II have a grid that looks a lot like the one in ths example (Grids in a Master Grid) :

http://demos.telerik.com/kendo-ui/grid/hierarchy

 â€‹It works very well. But I would really like to be able to DragNDrop rows from one Detail Template to another one. Is this possible with your grid ?

 

Thanks !

 Guillaume

 

Kiril Nikolov
Telerik team
 answered on 01 Sep 2015
4 answers
266 views
Hello

Is it possible to set / change the mask of an UI for ASP.NET MVC MaskedTextBoxFor clientside?  If so, can you please provide a sample?  As an example if a onSelect of a dropdown.

Thanks
Kiril Nikolov
Telerik team
 answered on 01 Sep 2015
2 answers
660 views
Can anyone direct me to an example of how to create two kendo grids using the mvc wrappers and allow drag and drop (drag and drop 1 or more rows) functionality between the two?

I have searched the forums and documentation and cannot find any.
Kiril Nikolov
Telerik team
 answered on 31 Aug 2015
3 answers
303 views

I'm building the list of values a column can be filtered by using the FilterMenuInit event and the initCheckboxFilter(e) javascript code and it's working great.

Now I add a new row to the grid using the toolbar Create method and AJAX.  The new row might contain a value for the column being filtered that wasn't there before.  I would like to be able to add that new value to the existing list in the filter for that column.  Can I somehow set the FilterMenuInit event to be triggered again?

Thanks,
Stu

Boyan Dimitrov
Telerik team
 answered on 31 Aug 2015
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?