We have a kendo grid that lists users with roles in our application. When editing a role we want to bind the kendo combobox editor control using one service method that get's the actual employee record (based on EE #) and bind the combobox to that. When creating a new role we want to dynamically search for the employee to be granted a role which requires a separate service method to pattern match on partial name typed into combobox and return the matches. The first scenario works like a charm when autoBind is set to "true" but for the second scenario it is necessary to have the autoBind set to false so it does not try to fire when the datasource is (re)initialized to point to the appropriate service method. I have this functionality being configured when the "edit" event is fired on the grid and looking to see if I'm dealing with a new model or an existing one to set the datasource as necessary but unfortunately there is no way to set the autoBind to false (via API method) and thus the service method for the "create" functionality is called immediately but errors out because the required filter parameters for the service method are not yet available. Am I missing something or is there truly no way to dynamically set/change the autoBind value?
if (e.model.isNew() == false) { // get the empid of the current record being edited var empID = e.model.get("EmpID"); // configure $scope.employeeDataSource $scope.employeeDataSource = new kendo.data.DataSource({ type: "odata-v4", transport: { read: function (e) { caoService.getEmployeeFromEmpID(empID).then(function (data) { e.success(data); }) } } }) // set the datasource and call the read method $(e.container).find('[name="EmpID"]').data("kendoComboBox").setDataSource($scope.employeeDataSource); $(e.container).find('[name="EmpID"]').data("kendoComboBox").dataSource.read(); } else { // configure $scope.employeeDataSource $scope.employeeDataSource = new kendo.data.DataSource({ type: "odata-v4", serverFiltering: true, transport: { read: function (e) { caoService.findEmployeesByEmployeeName($scope.selectedSector, $scope.employeeName).then(function (data) { e.success(data); }) } } }) // set the datasource $(e.container).find('[name="EmpID"]').data("kendoComboBox").setDataSource($scope.employeeDataSource); }I have an MVC5 application in which I have an editable grid. On the grid is a byte field named "Level" which only saves a value of either 1 or 2. When the grid is in display-mode, I would like it to say "Level 1" or "Level 2". When the grid is being edited, I would like to display radio buttons for the user. I believe MVVM is necessary in order to bind the field to the viewmodel. Could you help me wire this up so it will retrieve & update properly?
ViewModel
public class MasterLotViewModel{ public int MasterLotId { get; set; } [Display(Name = @"Master Lot")] [Range(1, 2)] [DataType("MasterLotLevel")] public byte Level { get; set; } [Display(Name = @"Start Date")] [DataType(DataType.Date)] [Required] public DateTime StartDate { get; set; } [Display(Name = @"End Date")] [DataType(DataType.Date)] public DateTime? EndDate { get; set; }}Editor Template
@model byte@Html.HiddenFor(model => model)<input class="masterLotRadios" id="Level1" name="Level" type="radio" value="1"><label for="Level1">Level 1</label><input class="masterLotRadios" id="Level2" name="Level" type="radio" value="2"><label for="Level2">Level 2</label>Grid
@(Html.Kendo().Grid<MasterLotViewModel>() .Name("masterLotGrid") .Columns(columns => { columns.Bound(x => x.MasterLotId).Visible(false); columns.Bound(x => x.Level).ClientTemplate("Level #: Level #"); columns.Bound(x => x.StartDate); columns.Bound(x => x.EndDate); columns.Command(command => { command.Edit(); }).Width(100); }) .ToolBar(toolbar => toolbar.Create()) .Editable(editable => editable.Mode(GridEditMode.InLine)) .Pageable() .Sortable() .AutoBind(true) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .PageSize(10) .Events(events => events.Error("errorHandler")) .Model(model => { model.Id(x => x.MasterLotId); model.Field(m => m.Level).DefaultValue(1); }) .Read(read => read.Action("GetMasterLots", "Lot").Data("formatMasterLotData")) .Create(create => create.Action("CreateMasterLot", "Lot").Data("formatNewMasterLotData")) .Update(update => update.Action("UpdateMasterLot", "Lot").Data("formatUpdateMasterLotData")) ))Hello, what I'm trying to build is exactly like image in the attachment. My first question is how can I add a caption to scrollview ? Second and most important one is should I use remote view or responsive images in the down below.. And I couldnt make it work, no matter what I do nothing shows up under the image gallery ? I appreciate all the help I can get, thanks.
Here is my code in kendo dojo..
http://dojo.telerik.com/@oguzhanodenekli/uFaYa/2
​
Hello,
We use the following dojo: http://dojo.telerik.com/edihi
Our goal is to use the k-on-change event, which provides the selected row data in the callback function. This data then later is is reused in the parentscope in some selected rows confirmation scenario.​​
Our user should not be able to select multiple rows by clicking into the rows. Selection in our case should be only possible by selecting the checkbox in the first column. This then "poses" as if the uses clicked the whole row.
This behaviour is already achieved in the dojo(see link above). But we could not manage to disable the mouseclick selection into the rows(columns apart the chkbox column). If we omit <selectable: "row"> in the grid options, an exception results.
Can anyone give us an hint to a solution?

Hello, I am working on an update to one of my company's internal tools, and a feature that's been requested is a Format Painter feature similar to Microsoft Word. I was a little apprehensive at first since that seemed like a huge undertaking, but looking at the Kendo Editor control, your overview page claims to support just this sort of tool. (See here: http://www.telerik.com/kendo-ui/editor under Creating and Formatting header)
I however cannot find how to enable the toolbar button(s) to show up in the Editor. Can someone point me in the right direction? Much obliged!

<object data="file.pdf" type="application/pdf" width="100%" height="100%"></object>Hi guys,
I am having an issue where the thumbnail image does not refresh when uploading large images (2MB) the loading icon just remains. It appears to work fine with smaller images. This is happening both in my application and within the demo located here: http://demos.telerik.com/kendo-ui/editor/imagebrowser
Any help with this would be greatly appreciated.
Hello Guys,
I get from the Server some data like, information as plain text, form type lik checkboxes, input field and so on. I want to view all this information. So i assumed that I do NOT need a viewModel, just to show the Data. But further I have to read the values of the forms. So How shouls I do this. Only with DataSources, or a mix of observable and datasource ? WIll I need an obseravable to read the entered Text in the input field, the selected Answer in the checkboxes? Do you have some advises