Dhtmlx using translation (5) dhtmlxgrid Column Operations

Source: Internet
Author: User

 

1.1.90 adjustcolumnsize (CIND)

Version: public version

Parameters:

CIND: column Index

Purpose: adjust the width of a column to make all data in the column visible. However, you must set the column width *

Reference instance:

Mygrid. adjustcolumnsize (0 );


1.1.91 deletecolumn (IND)

Version: Professional dhtmlxgrid_mcol.js support

Parameters:

CIND: column Index

Purpose: adjust the width of a column to make all data in the column visible.

Reference instance:

Mygrid. adjustcolumnsize (0 );


1.1.92 enablecolumnmove (mode, columns)

Version: Professional dhtmlxgrid_mcol.js support

Parameters:

Mode: True/false

Columns: Specifies whether a column is allowed.

Purpose: Set whether all or a column can be moved.

Reference instance:

// All columns can be moved

Mygrid. enablecolumnmove (true );

// A column can be moved

Mygrid. enablecolumnmove (true, "false, true ");


1.1.93 enableheadermenu

Version: Professional dhtmlxgrid_hmenu.js support

Parameters:

Purpose: Right-click the header and choose available from the menu.

Reference instance:


1.1.94 enableresizing (list)

Version: public version

Parameters:

List: sets whether the size of each column in the current grid is a variable parameter combination.

Purpose: Set whether the size of each column in the current grid is variable.

Reference instance:

Mygrid. enableresizing ("false, true ");


1.1.95 enabletooltips (list)

Version: public version

Parameters:

List: sets whether tooltip of each column in the current grid is available.

Purpose: Set whether tooltip of each column in the current grid is available, that is, whether the title of the current column is displayed.

Reference instance:

Mygrid. enableresizing ("false, true ");


1.1.96 getcolindexbyid (ID)

Version: public version

Parameters:

ID: column ID

Purpose: Obtain the column index by column ID

Reference instance:

VaR colindex = mygrid. getcolindexbyid ("col1 ");


1.1.97 getcoltype (INDEX)

Version: public version

Parameters:

Index: column Index

Purpose: Obtain the column data type through the column ID Index

Reference instance:

VaR type = mygrid. getcoltype (0 );


1.1.98 getcoltypebyid (CID)

Version: public version

Parameters:

CID: column ID

Purpose: Obtain the column data type by column ID

Reference instance:

VaR type = mygrid. getcoltypebyid ("column1 ");


1.1.99 getcolwidth (IND)

Version: public version

Parameters:

Index: column Index

Purpose: retrieve the column data width through the column ID Index

Reference instance:

VaR width = mygrid. getcolwidth (0 );


1.1.100 getcolumnid (CIN)

Version: public version

Parameters:

Cin: column Index

Purpose: Obtain the column ID through the column ID index.

Reference instance:

VaR colid = mygrid. getcolumnid (0 );


1.1.101 getcolumnlabel (CIN, IND)

Version: public version

Parameters:

Cin: column Index

IND: Row index of the table header. The default value is 0. It is only available for multiple tables.

Purpose: Obtain the column title.

Reference instance:

// The title of the first column

VaR collabel = mygrid. getcolumnlabel (0 );

// The title of the second header in the first column

VaR collabel = mygrid. getcolumnlabel (0, 1 );


1.1.102 getcolumnsnum

Version: public version

Parameters:

Purpose: obtain the number of columns.

Reference instance:

VaR colnum = mygrid. getcolumnsnum ();


1.1.103 getfooterlabel (CIN, IND)

Refer to getcolumnlabel (CIN, IND)

1.1.104 insertcolumn (IND, header, type, width, sort, align, valign, reserved, columncolor)

Version: Professional Edition requires dhtmlxgrid_mcol.js

Parameters:

IND: column Index

Header: List header title

Type: column data type

Width: column width

Sort: sorting method

Align: horizontal layout

Valign: vertical layout

Reserved: Invalid Parameter

Columncolor: column background color

Purpose: obtain the number of columns.

Reference instance:

// Minimum settings

Mygrid. insertcolumn (10 );

// Maximum parameter settings

Mygrid. insertcolumn (11, "some text", "Ed", 120, "Na", "Left", "TOP", null, "Red ")

1.1.105 iscolumnhidden (IND)

Version: Professional Edition

Parameters:

IND: column Index

Purpose: determine whether the current index column is hidden.

Reference instance:

VaR ishidden = mygrid. iscolumnhidden (0); // If hidden, true is returned. Otherwise, false is returned.

1.1.106 movecolumn (oldind, newind)

Version: Professional Edition requires dhtmlxgrid_mcol.js

Parameters:

Oldind: original column Index

Newind: new column Index

Purpose: adjust the column position through the column Index

Reference instance:

Mygrid. mygrid. movecolumn (0, 2 );


1.1.107 setcolumncolor (CLR)

Version: public version

Parameters:

CLR: Color-defined string

Purpose: Define the column background color.

Reference instance:

Mygrid. setcolumncolor ("White, # d5f1ff, # d5f1ff ");


1.1.108 setcolumnexcelltype (colindex, type)

Version: Professional Edition

Parameters:

Colindex: column Index

Type: extended type

Purpose: Define the column data as an extension type.

Reference instance:

Mygrid. setcolumnexcelltype (2, "ch ");


1.1.109 setcolumnhidden (IND, state)

Version: Professional Edition

Parameters:

IND: column Index

State: True/false

Purpose: Set whether the current index column is hidden.

Reference instance:

Mygrid. setcolumnhidden (0, false );


1.1.110 setcolumnid (IND, ID)

Version: public version

Parameters:

IND: column Index

ID: column ID

Purpose: set the column ID through the index

Reference instance:

Mygrid. setcolumnid (0, "column1 ");


1.1.111 setcolumnids (IDS)

Version: public version

Parameters:

IDS: column ID combination

Purpose: set the IDs of all columns in the grid, which can be defined repeatedly. However, when an index is read by ID, it is only valid for the first setting.

Reference instance:

Mygrid. setcolumnids ("sales, book, author, price, store, shipping, best, date ");


1.1.112 setcolumnlabel (COL, label, IND)

Version: public version

Parameters:

Col: header index

Lable: Title

IND: index when multiple headers exist

Purpose: set the grid header title.

Reference instance:

// Single header settings

Mygrid. setcolumnlabel (0, "new column label ");

// Configure multiple row headers

Mygrid. setcolumnlabel (0, "new column label", 1 );


1.1.113 setcolumnminwidth (width, IND)

Version: public version

Parameters:

Width: width

IND: column Index

Purpose: set the minimum width of a grid column and each column.

Reference instance:

// Set the first column

Mygrid. setcolumnminwidth (50, 0 );

// Set all columns

Mygrid. setcolumnminwidth ("50,100,100,150,200,100,150 ");


1.1.114 setcolumnsvisibility (list)

Version: Professional Edition

Parameters:

List: whether the parameter combination of each column is visible; false: visible; true: hidden

Purpose: Set whether the columns are visible.

Reference instance:

Mygrid. setcolumnsvisibility ("false, true ");


1.1.115 setfooterlabel (C, label, IND)

Version: public version

Parameters:

C: column Index

Lable: Title content, which can contain IMG: [imageurl] image reference format

Lnd: Row index when multiple tables exist

Purpose: Set the table footer title information.

Reference instance:


(Note: All my articles are original articles. Please indicate the source for reprinting! 20100624 is written in Shenzhen .)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.