EXT Today study Summary _yui. Ext Related

Source: Internet
Author: User
Not double hit Open is not read, plainly like Open the message: have read and unread. The first question is my idea is shielding ie F5 Refresh in the request grid grid data! Just ok!. The second one is to write a return style inside the Veiwconfig! Changing the Isread state in the record is ok!
First question: code:
Copy Code code as follows:

Document.onkeydown = function () {
if (Event.keycode = = 116) {
event.keycode=0;
Event.returnvalue=false;
Request Grid grid Data But it's like win+r can refresh.
You can go to set breakpoint debugging see Even.keycode code leave it to everyone.
}
}

Expand: Previously written a to prevent the withdrawal of the system, some form settings only read down by the exit system is very depressed!
Code:
Copy Code code as follows:

Document.onkeydown = function () {
if (Event.keycode = = 8) {
if ((Event.srcElement.nodeName!= "INPUT" && event.srcElement.nodeName!= "TEXTAREA") | | Event.srcElement.readOnly = = True)
{
Event.cancelbubble = true;
return false;
}
}
}

Hey, second question! I thought I had written grid grids to change the data! By! It says to become bold!
I'm going to use an article I've written before--Get the style! Just the first page does not know with Delphi processing of my F12 debugging tools also did not! I'm so depressed! Also not fitted vs series! It's been a long day!
There's a problem!
The style has previous:
Copy Code code as follows:

. x-grid-record-red table{
Color: #FF0000;
}

Become
Copy Code code as follows:

. x-grid-record-red tabel{
Font-weight:bolder;
}

I can't believe I'm dead! I'm crazy about Google and debugging
Then I don't know what to read that article wrote what I turned Tabel into a TD on the line I fainted!
To rewrite the state to read in the double-click Open event
Copy Code code as follows:

' Rowdblclick ': function (grid,i) {
Grid.store.data.items[i]. Set (' Isread ', ' 2 ');//1 unread 2 read
}

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.