Create JavaScript Data Grid for Millions of Rows

Nancy Den
Updated on 23-Jun-2020 11:51:58

336 Views

To display million of rows of data to the users in a grid, use any of the following grids −S. NoGridDescription1DataTablesAllows adding advanced interaction controls to any HTML table.2IngridAllows resizing columns, paging, sorting, row and column styling to tables.3SlickGridUses virtual rendering to allow you to work with hundreds of thousands of items.Let us see the features of SlickGrid −Easily customizableComplete keyboard navigationEasily handles hundreds of thousands of rowsQuick rendering speedColumn autosizing availablePluggable cell formatters availableAllos creating new rows

Why Does JavaScript Need to Start with 'use strict'?

Ramu Prasad
Updated on 23-Jun-2020 11:51:06

178 Views

JavaScript uses a semi-colon (;) to avoid any confusion in code, especially the beginning of a new line.ExampleYou can still use the following to avoid any chaos in the code −return {    'var':myVal } // using semi-colon; (function( $ ) {    // }

Scope Resolution Operator in C#

karthikeya Boyini
Updated on 23-Jun-2020 11:50:48

1K+ Views

The scope resolution operator in C# has a different meaning as compared with C++. In C++ the :: is used for global variables, whereas in C# it is related to namespaces.If you have a type that share an identifier in different namespace, then to identify them use the scope resolution operator.For example, to reference System.Console class, use the global namespace alias with the scope resolution operator.global::System.ConsoleExample Live Demousing myAlias = System.Collections; namespace Program {    class Demo {       static void Main() {          myAlias::Hashtable h = new myAlias::Hashtable();          h.Add("Q", "1");   ... Read More

IsFixedSize Property of ArrayList Class in C#

Samual Sam
Updated on 23-Jun-2020 11:48:55

150 Views

The IsFixedSize property of ArrayList class is used to get a value indicating whether the ArrayList has a fixed size.The following is an example stating the usage of isFixedSize property.Example Live Demousing System; using System.Collections; class Demo {    public static void Main() {       ArrayList arrList = new ArrayList();       Console.WriteLine("Adding some numbers:");       arrList.Add(45);       arrList.Add(78);       Console.WriteLine(arrList.Count);       Console.WriteLine("myArrayList.IsFixedSize = " + arrList.IsFixedSize);    } }OutputAdding some numbers: 2 myArrayList.IsFixedSize = FalseAbove we have added an array list.ArrayList arrList = new ArrayList();Then we have checked whether ... Read More

IsReadOnly Property of ArrayList Class in C#

karthikeya Boyini
Updated on 23-Jun-2020 11:48:23

174 Views

The IsReadOnly property of ArrayList class is useful to get a value indicating whether the ArrayList is read-only.Firstly, we have the following ArrayList.ArrayList arrList = new ArrayList();Then we have checked using the IsReadOnly Property.Console.WriteLine("myArrayList.IsReadOnly = " + arrList.IsReadOnly);The following is an example showing how to work with IsReadOnly property in ArrayList class.Example Live Demousing System; using System.Collections; class Demo {    public static void Main() {       ArrayList arrList = new ArrayList();       Console.WriteLine("myArrayList.IsReadOnly = " + arrList.IsReadOnly);    } }OutputmyArrayList.IsReadOnly = False

Check Whether a List is Empty or Not in C#

Chandu yadav
Updated on 23-Jun-2020 11:48:02

10K+ Views

Use lists in C# to store elements and fetch it. Let us see an example.Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main(string[] args) {       var subjects = new List();       subjects.Add("Maths");       subjects.Add("Java");       subjects.Add("English");       subjects.Add("Science");       subjects.Add("Physics");       subjects.Add("Chemistry");       foreach (var sub in subjects) {          Console.WriteLine(sub);       }    } }OutputMaths Java English Science Physics ChemistryNow to check whether a list is empty or not, use the Count ... Read More

Length Property of BitArray Class in C#

Samual Sam
Updated on 23-Jun-2020 11:47:02

114 Views

The length property is used to gets or sets the number of elements in the BitArray.Our BitArray.BitArray arr = new BitArray( 5 );To calculate the length, use the length property.Console.WriteLine( "Length: {0}", arr.Length );You can try to run the following code to learn how to work with Length property of BitArray class.Example Live Demousing System; using System.Collections; public class Demo {    public static void Main() {       BitArray arr = new BitArray( 5 );       Console.WriteLine( "Count: {0}", arr.Count );       Console.WriteLine( "Length: {0}", arr.Length );    } }OutputCount: 5 Length: 5

Initialize and Compare Strings in C#

karthikeya Boyini
Updated on 23-Jun-2020 11:45:50

275 Views

To initializes a string in C# is an easy task. Let’s say you want to set a name “Amit”, for that, initialize your string as.String str1 = "Hello, World!";To compare strings, use the the following C# method.public static int Compare(string str1, string str2)To compare, if −String.Compare(str1, str2) == 0If the above is equal to 0, then both the strings are equal.The above method compares two specified string objects and returns an integer that indicates their relative position in the sort order.The following is an example that shows the comparison of one string to another.Example Live Demousing System; namespace Demo {   ... Read More

Set or Return Number of Columns in JavaScript

Arushi
Updated on 23-Jun-2020 11:45:39

172 Views

To divide a div into three columns, use the columnCount property. Set the column count and divide the div.ExampleYou can try to run the following code to return the numbers of columns an element is to be divided into with JavaScript −Live Demo           Click below to create 4 columns       Columns                This is demo text. This is demo text. This is demo text. This is demo text.          This is demo text. This is demo text. This is demo text. This ... Read More

Allow Long Words to Break and Wrap in JavaScript

V Jyothi
Updated on 23-Jun-2020 11:44:49

399 Views

Use the wordWrap property in JavaScript to allow long words to be broken and wrap to the next line.ExampleYou can try to run the following to learn how to work with wordWrap property −                    #box {             width: 150px;             height: 150px;             background-color: lightblue;             border: 1px solid black;          }                     Set                ThisisDemoText.ThisisDemoText.ThisisDemoText.ThisisDemoText.Thisis DemoText.ThisisDemoText.                      function display() {             document.getElementById("box").style.wordWrap = "break-word";          }          

Advertisements