Solved the problem of refreshing the page after the Extjs TextField carriage return event.

Source: Internet
Author: User

Adds a search and positioning function for the tree, as shown below:

 // Search box
Var _ panel = new Ext. Panel ({
RenderTo: 'query ',
Listeners :{
"Render": function (_ panel ){
_ Panel. add (new Ext. form. TextField ({
Id: "txt_name ",
Width: 213,
Listeners :{
Specialkey: function (textfield, e ){
If (e. getKey () = Ext. EventObject. ENTER ){
Alert (111 );

However, it is found that the entire tree is refresh and reloaded when you press enter to query the input data, which obviously cannot meet the requirements.

The study found that we only needed to put the 'query' div area of the aspx page out of form, and I directly removed form:

 <body style="background:#bed3f0;" onload="GetTreeListType();">
<%--<form id="form1" runat="server">--%>
<div id="Query">
<div id="QY">
<div id="DL">


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: 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.