Obtain a value of a row in the table in dojo.

Source: Internet
Author: User

Obtain a value of a row in the table in dojo.

In dojo, operations on a row in a table are often performed, such as clicking modify or delete a row. So how can we get the unique identifier of a row?

If a column in the query table has a userId, which is unique, you can use it to access this column.

The specific operation code is as follows:

var grid = dijit.byId("gridId");function btnClick(e){    userId = grid._by_idx[e.rowIndex].item.userId;}dojo.connect(grid,"onRowClick",btnClick);
dojo.xhrPost({    url:"",    handleAs:"json",    content:{       "userId":userId     },    handle:function(resp){        console.dir(resp);    },    error:function(error){        console.error(error);    }});


How does ajax obtain the value of a text box in a certain column of a table row?

Javascript
Each row of each table has a row index rowIndex
The cells in each row also have cell indexes.
For example, I want to set the value of the text box in the first column of Table l.
Document. getElementById (tablename). rows [0]. cells [0]. childNodes [0]. value
Of course, jquery is simpler.

How can I find the value corresponding to the intersection of a row and a column in an EXCEL table? Give a comprehensive formula.

= OFFSET ($ A $1, 2)

This is the value of cell C3.
You may want to change the number.

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.