FAQ Database Discussion Community


Values cannot pass from kendo grid to Entity class?

javascript,c#,asp.net,kendo-grid,kendo-mvvm
Here i my c sharp code of controller api class DefComapny whose value are always null while posting a data from kendo grid thats why not entering any thing to database? [HttpPost] public void SaveDefCompny() { var result = new List<DefCompany>(); using (var data = new RPDBEntities()) { DefCompanyDTO productViewModel...

Kendo UI MVVM - How to iterate over and render a collection within a view?

javascript,html,kendo-ui,kendo-mvvm,client-side-templating
I'm simply trying to loop over an array within my Kendo.View and attempting to render a property from the element. This would be super simple in MVC Razor, e.g. @foreach( var displayLink in Model ) { <h1>displayLink.Text</h1> } Rather than choosing excerpts I just shared the entire files. This all...

Unable to get text in kendo dropdownlist control using MVVM from another viewmodel

kendo-ui,kendo-dropdown,kendo-mvvm
I have a simple dropdown list defined like this: <div id="ActionMenu"> <input id="ddlActionList" data-role="dropdownlist" data-text-field="text" data-value-field="value" data-value-primitive="true" data-bind="value: selectedAction, source: actionList"/> </div> And in another div I have a simple pop up window: <div id="window" data-role="window" data-title="Message panel" data-actions="['close']" data-bind="visible: isVisible, enabled: isEnabled"> <p>Action selected: <span data-bind="text:...

Why widgets' events triggered before view completely rendered?

kendo-ui,kendo-mvvm
Let say we have a view like this: <script id="my-view" type="text/x-kendo-template"> <div> <input data-text-field="name" data-value-field="id" data-role="dropdownlist" data-bind="source:wellDataSource,events:{change:onWellChange,dataBound:onWellDataBound}" /> <div data-role="tabstrip" data-bind="visible:isAnyWellExist"> <ul class="bd-doc-navigation-tabstrip" data-freezable="false"> <li class="k-state-active">Home</li> <li>Products</li> <li>About</li>...

Kendo Template source binding array creates double entries

javascript,jquery,kendo-ui,kendo-mvvm,kendo-template
I am using a Kendo template with an array to dynamically add rows to a form, however, when I push an item onto the array, it adds two rows, both bound to the same data object in the MVVM (so with two objects, there are four rows). I've run the...

Issue with Kendo MVVM Cascading drop down

kendo-ui,kendo-dropdown,kendo-mvvm
I am working on developing a cascading drop down with Kendo MVVM. The issue is that when the drop down loads the child drop down initially displays "undefined". This disappears though when I select some data in the parent drop down. Alternatively I also require a Reset button in place....

How use binding in template with datasource?

javascript,kendo-ui,kendo-datasource,kendo-mvvm
I have observable model with a function and datasource. I cant use the function in template by datasource. http://dojo.telerik.com/oHoxI...

KendoUI - UI not refreshed after extracting repeating functions

javascript,kendo-ui,observable,kendo-mvvm,kendo-observable
I have a view model, which has several collection properties with some repeating logic. I need to be able to add a new empty object, to remove an object, and to ensure that every collection has at least one object, and if it is the only object, "Delete" button should...

Issues with Kendo MVVM file upload control

asp.net,file-upload,kendo-ui,kendo-mvvm,kendo-upload
I was trying to get a Kendo MVVM file upload working along with ASP.NET. This is how my HTML looks for the upload declaration: <input name="attachments" id="fileUpload" type="file" data-role="upload" data-async="{ saveUrl: 'FileUpload.aspx', autoUpload: true }" data-bind="events: { success: onSuccess,error: onError }"> and the FileUpload page load: Response.Expires = -1; //Code...

Kendo UI: Can I use a DataSource to sync data with standard HTML elements

c#,jquery,kendo-ui,kendo-mvvm
I am having trouble combining two kendo ideas that I have found individual examples for, but no combined example as of yet. I have a page with simple HTML elements (textboxes, dropdowns, etc). I have used this kendo example to link the view to a viewmodel. http://demos.telerik.com/kendo-ui/mvvm/elements Everything here works...

Binding event to other UI component's function, in Kendo MVVM

javascript,mvvm,kendo-ui,kendo-mvvm
In Kendo UI, what is the best practice to reference another UI element's (widget) functionality; the MVVM way? For example, let's say I have both a grid and a button. I want the button to trigger the AddRow function of the grid. For this, let's say I have the following...