Set default attribute for all Kendo UI Grids

I have a Web Site containing multiple Kendo UI Grids. I have now been asked to remove the scrollbar from each of these grids. I know there's a config attribute scrollable that I could change to false in order to achieve this.

However, I would like to avoid adding this attribute to every grid. Doesn't seem right. I could look for a way to achieve this using CSS but seems unnecessary.

I know this is doable in other Kendo UI Grid controls like the Editor. For instance, one could hide options from the toolbar like this:

var defaultTools = kendo.ui.Editor.defaultTools; defaultTools.formatting = {}; defaultTools.insertImage = {};

I haven't found something similar for the Kendo UI Grid control. Is there a way to change default value for this attribute to true?

-------------Problems Reply------------

This is an all or nothing change, but will do just that.

Set the default options for the scrollable to false

kendo.ui.Grid.fn.options.scrollable = false;

You will want to set that before any kendo grids are created.

Category:javascript Views:4 Time:2019-01-06

Related post

  • How to set default dependencies for all subprojects in SBT? 2010-12-02

    Trying to understand how to set up SBT subprojects. What is the correct way to set default dependencies for all my sub projects? I tried this, but my sub projects weren't picking up any of the dependencies (they downloaded fine). import sbt._ class M

  • How to set default font for all the windows in a Win32 Application? 2009-06-02

    I want all the controls (edit,list control, etc) in my application to be having the same font which is not the system default. How do i do this? Is there any Win32 API that sets the application default font? --------------Solutions------------- Windo

  • setting default page for all folders with no index 2011-01-16

    is there any way to set a default page for all folders on server that don't have an index file? Like a general 404 page? The idea is to prevent browsing through folders with no index file Can this be achieved with .htaccess or php? --------------Solu

  • What's a convenient way to set default settings for all JComponents 2012-01-08

    I want a way to set default settings like, background colour, size etc. for all components I use in my GUI, what's a convenient way to do this? so when I do new JButton or JLabel etc. it will already have the settings applied? --------------Solutions

  • jQuery table sorter set default parser for all columns 2011-06-06

    I want to set the default parser for every column in my grids to a custom parser I built. However, I have other columns that have special cases where I built a custom parser for those columns. I want to simply set the default parser as a custom parse

  • How do I set default collation for all tables that are created in a database? 2011-07-27

    I have a database dump taken from a broken database that I need to import into a clean installation. However, the original database seem to have been set to use utf8_unicode_ci. When importing this dump into clean database, all databases are created

  • Set default keyboard for all programs 2012-06-29

    I'm using Word 2010 with Windows 7. I'm a French-English translator and French (Canada) is my preferred keyboard layout. But I constantly find that the keyboard switches back to English (Canada) without my having done anything. For example, I will be

  • Office 2013 - Set default theme for all users 2014-02-22

    Just wondering how I can set the default theme to Dark Grey for all users? I can't seem to find this option in the Office Customization tool. I'm happy to make modifications to the registry or Group Policy if anyone knows where to look? Thanks ------

  • Set default location for all "save as" documents (regardless of historical file / document originated) 2012-02-08

    When I open a document from a folder (Example: open document called PLEADING from a folder called CLIENT located on my desktop) and "save as" a NEW DOCUMENT, I want the default location for saving this document to be DESKTOP not the original CLIENT f

  • Setting default view for all the file folders 2012-02-07

    How can I change the default setting for my file folders on my computer from details view to medium icon view without having to open each folder and changing each one? I know you can change the view when I open the folder by going under the view menu

  • Set default image for all posts 2018-05-02

    I am using this code to have the Featured Image set on all Pages as a banner, in the header. So all pages have different banners: <img src="<?php $imgsrc = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID) , 'full'); echo $imgsrc[

  • Setting default precision for all decimal numbers in rails 2011-01-19

    Is there a way to force Rails to output all decimal numbers with a certain precision? All of the decimal fields in my database are currency amounts, so I'd like decimal numbers to show by default with a precision of 2 (i.e. 2.40). I know I can use a

  • Set default options for all multiselect instances using jQuery UI MultiSelect Widget 2011-10-04

    i'm using this plugin / widget to style select menus I have multiple select menus on one page and would like all of them to have the same options. You can see my current setup here http://

  • Set default font for SWT Shell 2011-08-28

    Is there a way to set a default font for the whole Shell such that any new control will use that same font? It seems that right now I have to set the font for every control I create, which leads to too much redundancy. --------------Solutions--------

  • How to set the default icon for all Java Swing windows? 2010-07-06

    How to set the default icon for all Java Swing windows? Otherwise i have to set icons for every frame i created. What's your suggestions? Simple hackings are also accepted. many thx Update: Best if the method you suggested can leave existing frame-cr

  • Setting up a default footer for all documents? 2013-04-01

    Hi. How can I setup a default footer for all documents that are created? Also if I can do this in Word, is it possible to also do this in other Office applications and would the steps involved be any different? This is for Office 2007. --------------

  • How to set Adobe CS6 as the default program for all its files types. 2012-09-18

    I have Adobe CS5, CS5.1 and CS6 installed on my computer. When I open a file, it opens in CS5.1. How do I open in CS6 without having to manually do it? Original Title: Adobe CS6 --------------Solutions------------- Hi David, This can be done by setti

  • "How to set the default printer for all users on the same computer?" 2014-01-04

    Original Title: Set the default printer for all users I would like to know if there is some way to set the default printer for every user on my Windows 7 Professional computer (without having to log in to each user's account). After setting the defau

  • How to set alias as the default address for all outgoing email? 2013-02-03

    I have a Hotmail address and an Outlook address. I now want to make the Outlook address the Default for sending messages. That is, instead of having to select my Outlook alias to send a new email each and every time, I want it to happen automatically

  • How do you change the default widget for all Django date fields in a ModelForm? 2009-03-19

    Given a set of typical models: # Application A from django.db import models class TypicalModelA(models.Model): the_date = models.DateField() # Application B from django.db import models class TypicalModelB(models.Model): another_date = models.DateFie

  • What are the default attributes for Objective-C properties? 2011-10-19

    What are the default attributes for a properpty when you do not list any in objective C? Such as for example if I wrote this: @property float value; What would the defaults be, like is it read only, does it retain...etc.? --------------Solutions-----

  • Cannot set default text for @Html.TextAreaFor? 2011-11-15

    I am not able to set default text for @HTML.TextAreaFor This is all I tried, but didn't work, it always shows empty text area @Html.TextAreaFor(m => m.EmployeeDescription, new { @Text = ViewBag.Model.EmployeeDescription }) @Html.TextAreaFor(m =

  • Set default values for a global variable in a custom class? 2009-02-22

    I have a custom class that has quite a few accessor methods for customizing it. My question is, if a programmer uses this class and doesn't bother to assign values for ALL of these methods because he doesn't know about them or doesn't want to bother,

  • How do you modify the default widget for all builtin form fields of a certain type in Django? 2009-03-20

    This is a follow-up on How do you change the default widget for all Django date fields in a ModelForm?. Suppose you have a very large number of models (e.g. A-ZZZ) that is growing with the input of other developers that are beyond your control, and y

  • What is the best way to select attributes for all members of an AD LDAP group from PHP? 2009-03-31

    I need to select a number of attributes for all of the users in a particular group from a PHP application. I realize that I could query the 'member' attribute of the group to get the dn of every member and then make a separate LDAP query for the attr

Copyright (C), All Rights Reserved.

processed in 0.139 (s). 11 q(s)