Telerik Forums
UI for ASP.NET MVC Forum
1 answer
391 views
HI dear forum members,

is it possible to allow editing and displaying <script> tags with the Kendo UI Editor? What happens is, that any <script> tag that I edit (with the HTML editor) gets replaced with a <telerik:script> tag when written to the page.

What is this behaviour supposed to do/prevent?

Of course I know that this can be a security risk, but in this case our user (CMS user) has a good reason for wanting to do this and no easy workaround...

Kind regards,
Wolfgang
Alexander Popov
Telerik team
 answered on 30 Jul 2014
1 answer
146 views
Hello, I work with kendo grid (via AngluarJS, "kendo.directives").
It work great for Chrome, and IE 11&10&9.
I try to test it IE 8...
The data in grid wasn't appear and this error was appear in console: (full error attached 1.jpg)
***************************************************************************
Error: Invalid template:'<tr data-uid="#=data.uid#" role='row'><td  role='gridcell'><span ng-bind='dataItem.patientFullName'>#: data.patientFullName#</span></td><td  role='gridcell'><span ng-bind='dataItem.mrn'>#: data.mrn#</span></td></tr>';}return o;'
***************************************************************************
I also try to test your own example of Kendo & AngularJS: 'http://demos.telerik.com/kendo-ui/grid/angular'
and the grid is not appear once I test it with IE8 (screenshot attached 2.jpg) Error in console:
***************************************************************************
TypeError: Array.prototype.slice: 'this' is not a JavaScript object
***************************************************************************

Do I miss something or AngularJS with kendo is not supported for IE8?
There is a way to make it work with IE8?

Thanks in advance.
Atanas Korchev
Telerik team
 answered on 29 Jul 2014
3 answers
240 views
Hello Kendo UI Experts,

I had a unique Req to place icons on Far  "Right"

Basically I want to place three to four clickable icons on Far right to each Node.

-Root
       NodeA         Icon1   Icon2  Icon3
       NodeB         Icon1   Icon2  Icon3


Is that possible to do that easily in Kendo UI ?

Thanks in Advance.
RN.
Iliana Dyankova
Telerik team
 answered on 29 Jul 2014
3 answers
333 views
Hi,

I am trying to implement a Grid with inline editing capability. Everything works fine except for the Create functionality. I am using a string for the Model Id.

.Model(model =>
{
    model.Id<string>(p => p.SalesRep.Id);
}

Here is what happens.. 
1) Click on Add New Record
2) Add a record in the client
3) Update any information
4) Clicking Update fires the Update action instead of create.

This is the example I am following: http://demos.telerik.com/aspnet-mvc/grid/editing-inline

I am not sure why the update action is being fired instead of create.

Could this be because of the Model Id is  a string. 

Below is a code snippet of the kendo grid. 
@(Html.Kendo().Grid<SalesRepViewModel>()
                                   .Name("SalesRepsGrid")
                                   .Columns(columns =>
                                   {
                                       columns.Bound(p => p.SalesRep).ClientTemplate("#=data.SalesRep.Name#");
                                       columns.Bound(p => p.SplitPercentage).Width(100);
                                       columns.Command(command => { command.Edit(); command.Destroy(); }).Width(172);
                                   })
                                   .ToolBar(toolbar => toolbar.Create())
                                   .Editable(editable => editable.Mode(GridEditMode.InLine))
                                   .DataSource(dataSource => dataSource
                                      .Ajax()
                                      .Events(events => events.Error("error_handler"))
                                      .Model(model =>
                                      {
                                          model.Id<string>(p => p.SalesRep.Id);
                                          model.Field(p => p.SalesRep.Id).Editable(false);
                                          model.Field(p => p.SplitPercentage).Editable(true);
                                          model.Field(p => p.SalesRep).DefaultValue(
                                                         ViewData["defaultSalesRep"] as NamedReferenceBindingModel<string>);
                                           
                                      })
                                      .Read(read => read.Action("SalesReps_Read", "PurchaseAgreement"))
                                      .Create(update => update.Action("SalesReps_Create", "PurchaseAgreement", new {                 purchaseAgreementId = Model.Id }))
                                      .Update(update => update.Action("SalesReps_Update", "PurchaseAgreement", new { purchaseAgreementId = Model.Id }))
                                      .Destroy(destroy => destroy.Action("SalesReps_Destroy", "PurchaseAgreement", new { purchaseAgreementId = Model.Id }))
                                     )
                              )

Most of the code above is same telerik grid inline editing example except for the model.

Any thoughts?



Uday
Top achievements
Rank 1
 answered on 28 Jul 2014
5 answers
132 views
I'm trying to use a grid using the server-side binding like in the documentation. But when I click on the header of a column to sort I get the following javascript exeption

Unhandled exception at line 28, column 11311 in http://localhost:64716/bundles/kendo?v=Mt_vnIDxltOGpsu7Y4JtLwq860FIgJ_8g1LouxzoGkE1
0x800a138f - JavaScript runtime error: Unable to get the property "0" a reference null or undefined.

From what I gather from the developer tools it is the  return this._data[i] that throw the exception because this.data is undefined.
Rosen
Telerik team
 answered on 28 Jul 2014
1 answer
101 views
Is there a way to always show the selectable options for a MutliSelectFor on page load?

I never want the options hidden, ever.
Georgi Krustev
Telerik team
 answered on 28 Jul 2014
2 answers
447 views
I have Implemented Kendo.Mvc.UI.ISchedulerEvent and added a few more custom properties of my own to the class.
I have also set editable to using a template id, Editable(Function(e) e.TemplateId("ScheduleEditTemplate")
 
Now if I access the custom properties of the class like ${CustomProperty}, it works fine, but if I access any of the implemented properties like ${Description}  I get an error such as "Title is undefined"
any ideas, thanks



Alan Mosley
Top achievements
Rank 1
 answered on 28 Jul 2014
4 answers
232 views
I have the following drop-down

@(
                        Html.Kendo().ComboBox()
                        .Name("products")
                        .HtmlAttributes(new { style = "width:250px" })
                        .DataTextField("ProductName")
                        .DataValueField("ProductID")
                        .AutoBind(false)
                        .DataSource(source => {
                        source.Read(read =>
                        {
                            read.Action("GetList", "Submission", new { elementId = Model.Elements[i].FieldId });
                        })
                        .ServerFiltering(false);
                        })
                    )
The action is hit and the elementId is pass as expected. Now i need to be able to pass the current form and the data. I try as:
@(
                        Html.Kendo().ComboBox()
                        .Name("products")
                        .HtmlAttributes(new { style = "width:250px" })
                        .DataTextField("ProductName")
                        .DataValueField("ProductID")
                        .AutoBind(false)
                        .DataSource(source => {
                        source.Read(read =>
                        {
                            read.Action("GetList", "Submission", new { elementId = Model.Elements[i].FieldId }).Data("GetForm");
                        })
                        .ServerFiltering(false);
                        })
                    )
where the GetForm is a javascript function:
function GetForm() {
    return $('#subform').serializeArray();
}
But using this i cant get to the action: JsonResult GetList(int? elementId,SubmissionElement model)

Any ideas how can i achieve the passing of the current data in the form to my controller?





Kiril Nikolov
Telerik team
 answered on 28 Jul 2014
2 answers
98 views
Hello all.

I would like to have a different way to display the days and times. But I have no idea how to do it or if it is even possible.

On horizontal axis there should be all  the resources e.g employees.
On the vertical axis I would like to have the next 120 hours.

Any ideas? Suggestions?

Kind regards
Bernd
Bernd
Top achievements
Rank 2
 answered on 28 Jul 2014
16 answers
3.8K+ views
Greetings,

I am getting a few asp.net mvc 4 minification errors.

I am using the following snippets in my bundling to allow minification while in release mode.

bundles.IgnoreList.Clear();
// FOR KENDO -Add back some of the default ignore list rules
bundles.IgnoreList.Ignore("*.intellisense.js");
bundles.IgnoreList.Ignore("*-vsdoc.js");
bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
if (!HttpContext.Current.IsDebuggingEnabled)
     BundleTable.EnableOptimizations = true;

When I deploy to a staging server in release mode with the KendoUI version 2013.3.1119 I am receiving a handful of these listed below and my application fails to load:

/* Minification failed. Returning unminified contents.
(10,95812): run-time error CSS1030: Expected identifier, found '.'
(10,95829): run-time error CSS1031: Expected selector, found ')'
(10,95829): run-time error CSS1025: Expected comma or open brace, found ')'
(10,95866): run-time error CSS1030: Expected identifier, found '.'
(10,95883): run-time error CSS1031: Expected selector, found ')'
(10,95883): run-time error CSS1025: Expected comma or open brace, found ')'
(10,96027): run-time error CSS1030: Expected identifier, found '.'
...


Kamen Bundev
Telerik team
 answered on 28 Jul 2014
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
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Wizard
Security
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
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?