Telerik Forums
Kendo UI for jQuery Forum
2 answers
938 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
394 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
473 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
901 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
139 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
253 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
201 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
99 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
6 answers
1.2K+ views

I am doing inline editing in my grid and one of the columns has a custom editor. The control for this column varies based on the entered values of some other columns (this column is disabled until other column values entered.) This all works great, but when I save the row, the value isn't retrieved. How is the value from a custom editor retrieved?

When I edit the row, the editor for this cell is really just a placeholder div. Once the prerequisite columns have their values entered, I insert additional HTML into this div and instantiate the appropriate control (datePicker, dropDownList, multiSelect, numericTextBox, text input)

The only hint as to how this works is in this demo, which states:

  • The value of this field points to a JavaScript function which instantiates the column editor for the corresponding column cells

Thanks,

--Ed

T. Tsonev
Telerik team
 answered on 08 Mar 2016
3 answers
274 views

I have a Kendo Grid defined with the following toolbar:

toolbar: [
                "excel",
                "pdf",
                {
                    name: "print",
                    text: "Print Page"
                }
            ],

Both the excel and pdf exports work great while running on my local development server, which does not use https.  However, when I deploy the code to a production server, which uses https, only the excel export works.  The pdf export goes through each step of its progress bar but never produces the file for saving.  Do you know how to solve this?

T. Tsonev
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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?