Telerik Forums
UI for ASP.NET MVC Forum
1 answer
157 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
253 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
343 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
139 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
104 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
459 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
240 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
108 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.9K+ 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
1 answer
263 views
Hi, 

I am using two kendo tree views in my screen. The trees are taking long to load.  Each of the tree has around 200 nodes with checkbox. I added .LoadOnDemand(true), but not of much help. 

I am populating treeviews models in C# and passing it to the razor views. I am attaching my treeview's razor files (CasTradeOrgnTreePartial.cshtml and CasTradeDestTreePartial.cshtml) and C# procedure (populate_tree_model_C#_procedure.cs) . 

Please advise, how to speed up the tree loading time.

Regards, 

Manoj
Alexander Popov
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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?