Asp.net-fineui Development Practice-6 (iii)

Source: Internet
Author: User

Automatic completion is also a good thing, I do not know the drop-down list can be filtered why there are auto-incomplete, in fact, the automatic completion of the full use of or through the JQ to obtain the service end of the dynamic Data completion. I did not do dynamic examples, in fact, good to write, do not write.

1. Two JS packets are used

<script src= ". /.. /res/js/jquery.min.js "type=" Text/javascript "></script><script src=". /res/jqueryuiautocomplete/jquery-ui.min.js "type=" Text/javascript "></script>

  

2. The method used for the AutoComplete property is that the source value is an array

3. I've spelled the array in the background


4. Find the data frame, very simple F12


See me put it out:. X-form-trigger-input-cell input

You can get it here with JQ.

5. The input of the front desk can be bound, at this time to get an event, that is, click or double-clicking Edit dynamically generated input box after the user input binding complete data, very nerve-racking, in short, finally found only Beforeedit event can be in the edit box before the start, very disgusting, so did a delay processing, In the Fineui JS settimeout used a lot, to use.


6. Success, there should be data, this choice has two kinds of one is to choose the return, the second is the mouse click to select, to choose a bit of code to achieve a multi-column binding, I directly triggered the selection of the button click event, can be flexible write, complete code:


7. Press ENTER to have bug!, is because unlucky Triggerbox has the default return selection event, right-click to see the source code, search Ontriggerclick can see Specialkey return to trigger the selection event, Fineui project of course there is a generation, as if it is used
Enableedit control, throw away, add Enabledspecialkey property, default is False

<summary>        //whether to allow editing        ///</summary> [Category (categoryname.options)]        [ DefaultValue (True)]        [Description ("Allow editing")] public        bool Enableedit        {            get            {                Object obj = fstate["Enableedit"];                return obj = = null? true: (bool) obj;            }            Set            {                fstate["enableedit"] = value;            }        }        <summary>        //whether to trigger carriage return        //</summary> [Category (categoryname.validation)]        [ DefaultValue (false)]        [Description ("whether to trigger carriage return")] public        bool Enabledspecialkey        {            get            {                Object obj = fstate["Enabledspecialkey"];                return obj = = null? False: (bool) obj;            }            Set            {                fstate["enabledspecialkey"] = value;            }        }

  

It's all on the watch, okay?


I'm not going to write any more files ... , the Enter now does not trigger an event to open the window form.


All success, there are bugs to change their own.

Asp.net-fineui Development Practice-6 (iii)

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.