Telerik Forums
Kendo UI for jQuery Forum
2 answers
287 views

Hi,

currently a Kendo UI window loads its content with the ajax option "cache" being hard-coded to false.

It would be great if the cache behavior could be configurable in order to allow for:

1) being able to configure the cache and its duration/location on the server. E.g. I'm currently in active development my MVC view actions have different cache durations, based on how often I modify those.

2) avoiding to implement views that are cachable as an object. A cached kendo window object does not help when I'm changing pages. This is really not comparable to browser caching as described in (1).

3) avoiding to implement extra JS logic which takes care of reentrance. My dialogs are fire and forget. I destroy my windows on closing.

I added this suggestion: http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/12596730-allow-cached-ajax-window-content

Regards

Kasimier Buchcik

Casimodo
Top achievements
Rank 1
 answered on 08 Mar 2016
2 answers
745 views

Using kendo SPA and I have the following:

<input type="text" id="txtBillingZip" data-role="maskedtextbox" data-mask="00000" />

For some reason, the mask doesn't work.  But when I change the mask to this: 

<input type="text" id="txtBillingZip" data-role="maskedtextbox" data-mask="00000 " />

The mask works as expected, but of course has the space at the end which I don't want.

Any thoughts?

 

Kevin F
Top achievements
Rank 1
 answered on 08 Mar 2016
2 answers
948 views

I'm trying to style the page size selector shown in the paging control of a grid. I've completed almost everything but I can't figure out how to style the page size items in list selector when the list is activated (opened for selection).  Please see the attached image.

For what it's worth, here are the styles I've applied to the selector so far:

/*Page number list*/
        .k-pager-numbers .k-link,
        .k-pager-numbers .k-link:hover,
        .k-pager-numbers .k-state-selected {
            border-radius: 0; /*Use squares instead of circles*/
            color: #bbbbbb;
            background-color: #2b2b2b;
            border: 1px solid #4f4f4f;
            /*font-size: 12px;*/
        }
 
        /*Selected page number*/
        .k-pager-numbers .k-state-selected {
            background: #3a3a3a;
            border-color: #4f4f4f;
        }
 
        /*Pager links*/
        .k-pager-wrap > .k-link {
            border-radius: 0; /*Use squares instead of circles*/
            color: #bbbbbb;
            border: 1px solid #4f4f4f;
        }
 
        .k-pager-wrap > .k-link:hover {
            border-color: #4f4f4f;
        }
 
        /*Pagesize dropdown*/
        .k-widget .k-dropdown {
            background: #2b2b2b;
            border: 1px solid #4f4f4f;
        }
 
        .k-dropdown-wrap .k-select {
            background: #2b2b2b;
        }
 
        .k-dropdown-wrap .k-input {
            background: #2b2b2b;
        }

 

Thanks for any help that you can provide.

Scott

Scott
Top achievements
Rank 1
 answered on 08 Mar 2016
7 answers
400 views

Hi there,

 

I Created my own custom theme with my custom colors, but for some reasons my pager controls are not displaying correct results. Here is a of how it looks. I tried searching for this colors in the CSS but I wasn't able to find the color. How can I fix the pager icons so that they are displayed correctly.

 

 

 

Ivan Danchev
Telerik team
 answered on 08 Mar 2016
3 answers
477 views

Hi,

I am trying to convert existing code that uses ngModal (similar to bootstrap modal) to a kendo window control.  This is within an Angular 1.4 SPA, 2016 Q1 Kendo Pro.  The issue I'm having is that I can't figure out how to set the controller for the modal and be able to open it from a function in a different controller.  I run into problems where either I can find and open the window but the controller is the calling controller, or I cannot find the window by id at all.

The original code in gridController looks something like this:

        function openModal() {
            $scope.myModal = ngDialog.open({
                template: 'scripts/sections/contract/views/partials/myModal.html',
                scope: $scope,
                controller: 'modalController',
                backdrop: 'static',
                closeByDocument: false,
                preCloseCallback: function (value) {
                    $("#myGrid").data("kendoGrid").dataSource.read();
                }
            });

The kendo window widget does not have controller or scope properties, so a simple replacement won't work.  My next attempt was to wrap the myModal.html with the following, <div  data-ng-controller="modalController as vm">     <div kendo-window="kwindow" k-options="windowOptions">.  The modalController has $scope.windowOptions ={...} with appropriate values.  When I do this: var kwin = $("#kwindow").data("kendoWindow");  from the gridController, kwindow is always empty.  Alternatively, I can put the window in html that lives under the GridController and then find it, but that will never work for segregating the controllers and I want to keep them separated.  So how can this be done?

Dimo
Telerik team
 answered on 08 Mar 2016
16 answers
906 views

Hi,

as of v2015.2.624 the text area of the editor is not editable anymore when used with angular. Dunno if this applies only to angular apps.

See this dojo.

Regards,
Kasimier Buchcik

Mike
Top achievements
Rank 1
 answered on 08 Mar 2016
1 answer
146 views

Is there a way to all checkChildren to be true but not have it check the parents?  I need the checking down the tree but not up the tree.  Checking or unchecking a child should not affect its parents state.

 

Konstantin Dikov
Telerik team
 answered on 08 Mar 2016
1 answer
260 views

Hi, 

I've currentrly working with kendo-UI and more specificly with its models. And I've a problem with the schema definition. Indeed when I read the documentation, I can see that the field "from" exist in the schema definition. It's a means to make a relatiship between my model and the data JSON received.

Example

01.var Product = kendo.data.Model.define( {
02.        id: "id",
03.        fields: {
04.            id: { type: "number", editable: false },
05.            importedField: {
06.                type: "string",
07.                from: "bar"
08.            }
09.        }
10.    });
11. 
12.    var a = new Product({bar : "Hello World", id : 1});

So, in theory if I make a new instance of Product, I should found a field "importedField" on my current object. But the field doesn't exist and "bar" is defined.
Second remaks : If i use a Kendo.data.DataSource and define my product model in this parameters, the field "bar" is replaced by "importedField" (without touch my model class)

Somebody has an idea ?
thank's lot
Stephan

Note : I'm realy sorry for my english :)

Georgi Krustev
Telerik team
 answered on 08 Mar 2016
1 answer
203 views

We used this thread to help us make the decision to tie ourselves to Kendo's MVVM feature awhile back. Recently, I've been reading a lot from Kendo about Angular 2 integration, like Telerik's recent blog post.

My question is if Kendo still recommends using the built-in MVVM feature, or if you are now recommending using a plugin like Angular 2. It just seems strange that Telerik is doing so much promotion with Angular 2, yet maintaining its own MVVM feature.

Do you all still recommend one over the other? Or are you only talking about Angular 2 so much because other developers are integrating Kendo into it so often?

Sebastian
Telerik team
 answered on 08 Mar 2016
3 answers
103 views

Hi,

is it possible to use the Mobile Forms (http://demos.telerik.com/kendo-ui/m/index#mobile-forms/index) in our Cordova/AngularJS application without using the Kendo UI MVVM?

I tried but I failed to implement the forms.

With best regards

Johann

Sebastian
Telerik team
 answered on 08 Mar 2016
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?