Running Treeview Control
For perfection, list 4 contains the final treevie control of VB. NET version and or C # version. To make it easier to use, I have redefined the structure and code. The keydown control is added to support some default shortcut keys, such as control-N (new), F2 (edit), and del (delete ).
It seems that there is no need to attach any event, so the final API contains a method and eight attributes. They are listed in Table 1. Most of them are simple signs or default switches,
EasyUI Editable Tree, easyuieditable
Effect
Create Tree
Set the url, createUrl, updateUrl, destroyUrl, and dndUrl attributes to automatically synchronize data to the server.
Url: returned tree data
CreateUrl: when a new node is created, the tree will pass in a parameter named parentId, indicating the parent node ID.
UpdateUrl: when updating a node, the id and text parameters are passed in to the server.
DestroyUrl: When a node is destroyed, the id
EasyUI DataGrid: editable cell, easyuidatagrid
Effect
First, add an editor attribute to the column to be editable. The column is defined as the numberbox editing type.
When a user clicks a row, we start an editing action.
$ ('# Dg '). datagrid ({onClickCell: function (index, field, value) {$ (this ). datagrid ('ineinedit ', index); var ed = $ (this ). datagrid ('geteditor', {index: index, field: f
Brief tutorials
This is an editable Microsoft Word style document made with HTML and CSS3. This effect provides a predefined set of styles for creating word-style document effects of various sizes in a Web page. The styles it provides include:
SHEETS-OF-PAPER-A4.CSS:A4 paper (21cmx29.7cm)
SHEETS-OF-PAPER-A3.CSS:A3 paper (29.7cmx42cm)
Sheets-of-paper-usletter.css:us Letter (21.6cmx27.9cm)
Sheets-of-paper-uslegal.css:us Legal (21.6cmx35.
text boxes such as form input are read-only and not editable in HTMLSometimes, we want the text box in the form to be read-only, so that the user cannot modify the information in it, such as the contents of input text, China Two words can not be modified sometimes, we want the text box in the form to be read-only, so that the user cannot modify the information in it, such as making Method 1:onfocus=this.blur () leave the focus when the mouse is not pl
Make an editable, checked treegrid, and the code is quite concise:
See the Code:
Make an editable, checked treegrid. The code is quite concise: Please refer to the Code: [javascript] view plaincopyprint?
Recently, I had a little problem with my work, so I learned the new tag attribute--contenteditable.What I need to achieve is a phone-side interface that is particularly simple for a page, such as;The first thing I think about in my mind is a form form and then it's wrapped in a textarea tag so simple, thinking that the interface can be done in 10 minutes at most.Then open the editor and I'll start writing the code as follows;Simply write a good style and then open the browser to switch to mobile
The drop-down list box is not editable by default, and here's a good way to make the Drop-down list box editable, as follows, and you need a friend to refer to the following nbsp; Code as follows: ;nbsp; nbsp;
The combobox control is used for programming today, but the ComboBox in Silverlight is not the same as it used to be, no matter how the settings are not editable, so come up with this soil method, the principle is to let the ComboBox and the textbox position overlap, TextBox on top.The following actions are implemented:1. Add ComboBox and TextBox controls to the foreground design code, and add unique identities to each space name2. Bind the ComboBox w
function:
Click cell selection to replace the selected cell with the arrow keys in the selection process, press Enter in the selection process, or double-click the cell to enter the editable state, and save the modified content when the cell loses focus.
Main realization Idea:
Select, move the selected area and so on by relying on the jquery powerful API to implement. The editable cells actually add input
Copy Code code as follows:
Make Page not editable
function Disableocx () {
var form = document.forms[0];
for (var i = 0; i var element = Form.elements[i];
Some elements can be numbered element.name is the element custom name
if (element.name!= "Auditentity.auditcontent")
element.name!= "Auditentity.auditautograph"
element.name!= "Auditentity.audittime"
element.name!= "Auditentity.auditstate"
element.name!= "Submitbtn"
element.name
complete the function of the input link, but also can choose Mailto, FTP and other types of links, more convenient
ExecCommand ("Createlink")
In IE4.0, there is no built-in link input window, so you need to embed the link in the following ways
ExecCommand ("Createlink", "" ", Turl)
Insert a picture-because the embedded editable controls in IE are for local resources, the default picture resources are local, so web content editors are best to make the
Sometimes, we want the text box in the form to be read-only, so that the user cannot modify the information in it, such as making Method 1:onfocus=this.blur ()Method 2:readonlyMethod 3:disabledHTML: Make form text box read-only, non-editable method
Sometimes, we want the text boxes in the form to be read-only, so that users cannot modify the information in them.If you make "China" Two words can not be modified. Implementation of the way to summarize,There are several.Method 1:onfocus=this.blur () Method 2:readonly Method 3:disabled HTML: Make form text box read-only, non-editable method
var_window=newExt.Window({title:‘窗口‘,width:‘800‘,height:500,modal:true,//模态的后面的页面就不能点了frame:true,layout:‘fit‘,items:[...]});Plus modal:true, this configuration item can beExtJS pops a new window, how to make the old page non-editable
The results we will eventually achieve are as follows:
When you click on the Learning Number column, you can edit it:
When you click ESC, the action is canceled, and when you click Enter, the modification takes effect (no interaction with the background)The page code is as follows (asp.net):
CSS (EIDTTABLE.CSS)
Table
{
border:1px solid black;
Border-collapse:collapse;
width:500px;
}
Table th
{
border:1px solid black;
width:50%;
}
Table TD
{
border:1px
Many scenes will be encountered on the Web page, users like to use Excel, directly to the HTML table content to operate, so write a convenient use of plug-ins
CSDN Download Address: http://download.csdn.net/detail/w172087242/9589681
Upgrade Download Address
Here is the JavaScript code:
/*** * Function: Make the read-only form editable table * Support custom event for Edit * table style can be set by itself * Only responsible for TBODY section * Dat
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.