Telerik Forums
Kendo UI for jQuery Forum
15 answers
1.5K+ views
Hello,
 
I have special requirements for the Editor and I don't know if its possible or not. I need the editor to paste the fonts of an Microsoft Office Document 1:1. So if the text is written in Calibri, it should show the text in Calibri. And if its a blue heading - it should also paste the text in a blue color with the right font.
 
Right now that doesn't seem to work for every font. The pasted text is declared as "Inherited Font" but actually it is using a completely different font (e.g.: Calibri doesnt work - there is no span-tag like the others have one declaring their style)! If i am pasting a heading (Cambria 14) it makes just a h1-tag around the text - and that is definitely not what I want it to do!!! I want it be shown in Cambria 14.
 
I attached a word-document with the text I used. The first two lines (the heading and the Calibri-text) are not copied correctly. What I need is, that the editor pastes the text 1:1 and that it looks exactly the same.
 
What can I do? Or will I get just the answer: "Not supported"?
 
Thank you
Alex Gyoshev
Telerik team
 answered on 21 Aug 2015
1 answer
226 views

Hi,
 I'd like to be able to pass a custom class to the task items in the Gantt component. I know that I could do this by modifying the source once I purchase a professional license, but I'm wondering if there's anything built in. For example, if the data were: 

{
    "ID":7,
    "Title":"Software validation",
    "ParentID":null,
    "OrderID":0,
    "Start":"Date(1401667200000)",
    "End":"Date(1405123200000)",
    "PercentComplete":0.43,
    "Summary":true,
    "Expanded":true,
    "CustomClass": "task-type-1"
}​

Then I'd like to add the "task-type-1" class to either the k-task or k-task-wrap div. This will allow me to easily colour code task types.

Does this functionality already exist, or do I need to modify the source and write it myself?

Thanks for your help!

Dimitar Terziev
Telerik team
 answered on 21 Aug 2015
1 answer
235 views

Hello,

 I am getting strange issue when accessing scheduler kendo UI with IE 11.

Data is not binding to scheduler in IE, where as data is binding and displaying as expected in other browsers.

Please let me know what is the issue?

 --Sudheer

Dimo
Telerik team
 answered on 21 Aug 2015
1 answer
372 views

I have a grid with editable: "inline" hooked on a datasource pointing to a asp.net mvc controller for its update: update: { url: '@Url.Action("Update", "Account")', contentType: "application/json", type: "POST" }.

I would like the Update method on the AccountController to return json ( public JsonResult Update(int id, string name() { ... return ​Json() } ), however if the Update method returns anything but a single digit I'm getting the client side error: "Uncaught SyntaxError: Unexpected number" and clicking the script reference gives me this code: (function(d,value /**/) { d.0=value })

What is wrong?

 

Rosen
Telerik team
 answered on 21 Aug 2015
2 answers
495 views

I have a grid, which shows a number of details, including a list of email addresses.  This data comes from a stored proc.  In my custom edit form, I show a grid with email addresses, which are loaded via AJAX ( from the table that stores them, one per row ).  If I only edit this list, then the grid does not save anything.

I did read up on this, and found this code below.

This 'works' but, the dirty flag is ALWAYS false, so, no matter what, it saves.  This means if the built in functionality does a save, it all gets saved twice.  What is the *proper* way to force the grid to save changes after the edit dialog is changed ? I am hoping for something I can set, when the user changes the email list, which will never result in two 'save' calls to the server.

 Thanks

     

e.container.data("kendoWindow").bind("close", function (a, b, c) {
 
               // This actually sucks.  We can't make it work nicely when we have our own UI, so we just need to force it to always save.
               var uid = this.element.closest("[data-role=window]").data("uid");
 
               var dataSource = $("#adminGrid").data("kendoGrid").dataSource
               //get the model from the dataSource
               var model = dataSource.getByUid(uid);
 
               if (!model.dirty)
               {
                   model.dirty = true;
                   dataSource.sync();
               }
           })

 

John
Top achievements
Rank 1
 answered on 21 Aug 2015
3 answers
9.1K+ views
Hello,
I have a datasource (shared) I use for a grid.
The grid has server filtering, which works fine. I also have a toolbar with few drop downs.
I hooked into a change event for those Ddls and call Source filter with them.
THe issue I have so far - how do I combine filters? If I filter on a single Drop down, then apply a filter on any column in the grid - it's fine, but not the other way around. Doing drop down selection last - kills column filters.

How can I add filters from drop downs instead of overwriting them?
The idea is to combine column filtering with drop downs or other fields in the toolbar.
Thanks
Gal
Top achievements
Rank 2
 answered on 20 Aug 2015
1 answer
55 views

I am trying to supply a TreeList widget with a list of TreeListModel objects that are based on  Model objects.  The way I am creating the TreeListModels is that I first create an empty kendo Model definition with no fields defined and then I create a TreeListModel definition with the empty base Model passed into the TreeList Model's define method as the first parameter, such that the TreeListModel inherits from the base Model.  I realize that this is not documented as being part of the public API, but for my application, we require such a setup because we proxy generate our TreeListModels, which extends (typescript) from a commonly shared Model definition.  I have created a simple example to demonstrate how the TreeList shows "loading" forever as soon as I try to do this model wrapping.  Please comment out the indicated parameter to see the breakage.

http://dojo.telerik.com/IdAhI 

 Any suggestions on workarounds/bug fixes, would be greatly appreciated. 

Thanks!

Michelle

Michelle
Top achievements
Rank 1
 answered on 20 Aug 2015
2 answers
264 views
columnReorder: function (e) {
    var grid = e.sender;
    for (var i = 0; i < grid.columns.length; i++) {
        console.log(grid.columns[i].field);
    }
}

This is returning the columns collection's ordering before the reorder occurs.  How do I access the new columns collection during the columnReorder event?
Steve
Top achievements
Rank 1
 answered on 20 Aug 2015
2 answers
215 views

Hello all

 

This is my first time posting to the Kendo UI forums.

I am happy to be here.

 

I have only recently started using the Kendo UI scripts, and it's going very well.

I am using the scheduler, and have one small question:

I am using the recurrenceRule, and when I do, all the events on my schedule have a little circular arrow in the top left corner (see attached picture).

Is there any way to get rid of that arrow?

 

Thanks in advance

Daniel

Daniel
Top achievements
Rank 1
 answered on 20 Aug 2015
8 answers
1.2K+ views
While binding the Grid to columns with below works well and fine and loads the grid:

columns: [
                                { field: "ID", title: "ID" },
                                { field: "Name", title: "First Name" },
                                { field: "City_Name", title: "City" },
                                { field: "Email", title: "Email" },
                                { field: "pincode", title: "pincode" }

                             ]

But when we add the below columns (any of them), then there is any issue. There is no issue with JSON. We found that any field name with spaces or numeric value and special characters does not load the grid at all

Scenario 1 (does not load the Grid)

columns: [
                                { field: "ID", title: "ID" },
                                { field: "Name", title: "First Name" },
                                { field: "City_Name", title: "City" },
                                { field: "Email", title: "Email" },
                                { field: "pincode", title: "pincode" },
                                { field: "Last Name", title: "Last Name" }
                             ]

Scenario 2 (does not load the Grid)

columns: [
                                { field: "ID", title: "ID" },
                                { field: "Name", title: "First Name" },
                                { field: "City_Name", title: "City" },
                                { field: "Email", title: "Email" },
                                { field: "pincode", title: "pincode" },
                                { field: "Mob.1", title: "Mobile" }
                             ]

Seems to be a bug, or are we doing something wrong ?
Justim
Top achievements
Rank 2
 answered on 20 Aug 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?