Hello All,
I am just trying to see the code in the Kendo examples for diagram implementation that I have downloaded recently (Latest release telerik.ui.for.aspnetmvc.2015.2.624.commercial), But when I run the solution locally and browse the 'Editing' section of the diagram I do get the shapes and connections as in demo site but I am not able to add a new shape (or new rectangle) to the diagram. When I press the rectangle icon in tool bar I get a error in browser console as follows.
Chrome: kendo.all.min.js:68 Uncaught TypeError: Cannot read property 'gradient' of undefined)
FireFox: kendo.all.min.js:68:8298 TypeError: t is undefined
Also other options in the tool bar are also not working.
Hi,
I've a MVC ListView which was working perfectly until I've localized it to German. My resources are managed in Visual Studio's Resource Designer, the typical way I'd say. If any of these resources contains an umlaut and is used directly in the template, it will be converted to something like "ö". The unescaped hash sign breaks the template. I've tried several attempts to fix this issue, but none of them worked:
1.
<
script
type
=
"text/x-kendo-tmpl"
id
=
"recordLinesTemplate"
>
2.
@Resources.Resources.BtnDeleteLine // "Zeile löschen"
3.
@Resources.Resources.BtnDeleteLine.Replace('#', 'X') // "Zeile löschen"
4.
@((Resources.Resources.BtnDeleteLine).Replace('#', 'X')) // "Zeile löschen"
5.
@Resources.Resources.BtnDeleteLine.Replace("ö", "ö") // "Zeile l&ouml;schen"
6.
@WebUtility.HtmlEncode(Resources.Resources.BtnDeleteLine) // "Zeile l&#246;schen"
7.
</
script
>
Out of curiosity, I've tried to encode the umlaut directly in the resource, but the ampersand gets encoded as well.
Any ideas how to resolve this issue?
Beste Grüße with two umlauts,
Carsten
When i delete a row from a grid in batch mode it is just removed and actioned on save changes.
Is there a way to configure the grid so the deleted rows remain on the grid (ideally greyed out) until changes are saved?
So, the basic premise of what I'm trying to accomplish is pulling data about the schedule of events from the Telerik Scheduler to use in other contexts.
For example, let's say that I want to be able to call some MVC action and pass in all of the titles for the events that are scheduled for today.
Or, as another example, let's say that each event is assigned to an owner (this is an event for Employee1, this other event is for Employee2, etc.) I want to be able to display all of the dates for scheduled events for a certain employee in a custom HTML solution; something along the lines of what the Agenda view looks like, but NOT inside of the Scheduler view.
Is there a way to pull the data from the Scheduler to do these things? One solution would be to just get the event data from the database and parse the info from there. However, this would obviously require a bunch of extra logic when it comes to recurring events and figuring out which days of the week in which months those recurring events would occur. I would like to avoid having to figure that stuff out since it the Telerik Scheduler is already handling that logic anyways.
Hi,
I'm trying to use the Upload control on the chrome mobile emulator.
I can't get it to post the file back to the server.
The Upload control is a part of a form that contains multiple fields.
The user can upload a single file.
The action of the post receives a model with a property of type HttpPostedFileBase. I tried changing to an IEnumerable but it still doesn't work.
I tried both ajax and regular posts.
What am I doing wrong?
I am getting a warning in the browser console (Chrome) with kendo date picker.
I am not setting date format to "yyyy-MM-dd". I have even tried to set up date format in the cshtml page for the kendo date picker.
@(Html.Kendo().DatePickerFor(m => m.StartDate)
.Name(
"StartDate"
)
.Format(
"MM/dd/yyyy"
)
.Value(Model.StartDate))
Is this a default date format with date pciker? How can I change it?
Is it possible to define the grid attributes/properties in the MVC controller rather than the view to simplify the view at all? I am currently evaluating Kendo before deciding whether or not to migrate from Infragistics IgniteUI.
Infragistics IgniteUI igGrid allows you to define a GridModel (their object type) instance in your controller and pass it to the View which allows a much simpler bit of syntax in the view similar to:
Controller code:
Public Function IGGridModel() As Infragistics.Web.Mvc.GridModel
Dim grdModel As GridModel = New Infragistics.Web.Mvc.GridModel.GridModel()
With grdModel
. ID = ....
.columns ....
etc, etc
End With
Return grdModel
End Function
View Code:
<div .... whatever>
@Html.Infragistics().Grid(Model.IGGridModel)
</div>
I need to check all the child checkboxes when I'll check the parent checkbox. For example, in the attached file I need to check all the checkboxes (11M, 11MPRICE, 15M, 23M....) when I'll click BINS. And another case is if all checkboxes are selected then parent checkbox should be checked automatically. How can I do these?
Thanks in advance.
I am using Kendo UI for ASP.Net MVC 2015.2. I have defined a grid using razor syntax as follows:
Html.Kendo().Grid(Of NameValue)() _
.Name("grdTerms") _
.DataSource(Function(ds) ds.Ajax() _
.Batch(True) _
.ServerOperation(False) _
.Read(Function(r) r.Data(UIHelper.ToJSON(Model.MyNameValues)))) _
.Columns(Sub(c)
c.Bound("Name").Title("My Name")
c.Bound("Value").Title("My Value")
End Sub) _
.Pageable(Function(pager) pager.Input(True).Numeric(False).Info(True).PreviousNext(True).Refresh(True).PageSizes(True)) _
.Scrollable() _
.Render()
The generated JQuery for the grid in the view shows that the datasource has JSON data assigned, yet no data appears in the grid. The view code is generated as follows:
<div class="k-widget k-grid" id="grdTerms"><div class="k-grid-header"><div class="k-grid-header-wrap"><table><colgroup><col /><col /></colgroup><thead class="k-grid-header"><tr><th class="k-header" data-field="Name" data-index="0" data-title="My Name" scope="col"><span class="k-link">My Name</span></th><th class="k-header" data-field="Value" data-index="1" data-title="My Value" scope="col"><span class="k-link">My Value</span></th></tr></thead></table></div></div><div class="k-grid-content" style="height:200px"><table><colgroup><col /><col /></colgroup><tbody><tr class="k-no-data"><td colspan="2"></td></tr></tbody></table></div><div class="k-pager-wrap k-grid-pager"><a class="k-link k-pager-nav k-state-disabled k-pager-first" data-page="1" href="#" title="Go to the first page"><span class="k-icon k-i-seek-w">seek-w</span></a><a class="k-link k-pager-nav k-state-disabled" data-page="0" href="#" title="Go to the previous page"><span class="k-icon k-i-arrow-w">arrow-w</span></a><span class="k-pager-input k-label">Page<input class="k-textbox" type="text" value="1" />of 1</span><a class="k-link k-pager-nav k-state-disabled" data-page="2" href="#" title="Go to the next page"><span class="k-icon k-i-arrow-e">arrow-e</span></a><a class="k-link k-pager-nav k-state-disabled k-pager-last" data-page="1" href="#" title="Go to the last page"><span class="k-icon k-i-seek-e">seek-e</span></a><span class="k-pager-sizes k-label"><select><option>5</option><option>10</option><option>20</option></select>items per page</span><a class="k-pager-refresh k-link" href="/Test/Test" title="Refresh"><span class="k-icon k-i-refresh">Refresh</span></a><span class="k-pager-info k-label">No items to display</span></div></div><script>
jQuery(function(){jQuery("#grdTerms").kendoGrid({"columns":[{"title":"My Name","field":"Name","encoded":true},{"title":"My Value","field":"Value","encoded":true}],"pageable":{"input":true,"numeric":false,"refresh":true,"pageSizes":[5,10,20],"buttonCount":10},"messages":{"noRecords":"No records available."},"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":"","data":[{"Name":"Test 1","Value":"1","Tag":""},{"Name":"Test 2","Value":"2","Tag":""},{"Name":"Test 3","Value":"3","Tag":""}]},"prefix":""},"pageSize":10,"page":1,"total":0,"schema":{"data":"Data","total":"Total","errors":"Errors","model":{"fields":{"Value":{"type":"object"},"Tag":{"type":"string"},"Name":{"type":"string"},"Dirty":{"type":"boolean"},"SupressEvents":{"type":"boolean"}}}},"batch":true}});});
</script>
As can be seen, the dataSource has data assigned - "data":[{"Name":"Test 1","Value":"1","Tag":""}, .... yet the grid renders empty.
What am I missing?