public JsonAutoCompleteTextBox()
            : base()
        {
            this.input = new JsonTextBox();
            this.DataTemplateName = "AutoComplete";
            this.images = new JsonImageSequence();
            this.eventSource = new JsonScriptObjectEventSource();

            this.AddJsonFunction(this.eventSource);

            this.preSearch = new JsonFunction();
            this.preSearch.ExecutionType = JavascriptExecutionTypes.Call;

            this.postSearch = new JsonFunction();
            this.postSearch.ExecutionType = JavascriptExecutionTypes.Call;

            this.attacher = new JsonFunction();
            this.attacher.ExecutionType = JavascriptExecutionTypes.OnWindowLoad;

            this.MinimumInputLength = 2;

            this.Styles["display"] = "none";
            this.ItemTagName = "div";
            this.InvokeOnce = false;
        }
Exemple #2
0
        public JsonAutoCompleteTextBox()
            : base()
        {
            this.input            = new JsonTextBox();
            this.DataTemplateName = "AutoComplete";
            this.images           = new JsonImageSequence();
            this.eventSource      = new JsonScriptObjectEventSource();

            this.AddJsonFunction(this.eventSource);

            this.preSearch = new JsonFunction();
            this.preSearch.ExecutionType = JavascriptExecutionTypes.Call;

            this.postSearch = new JsonFunction();
            this.postSearch.ExecutionType = JavascriptExecutionTypes.Call;

            this.attacher = new JsonFunction();
            this.attacher.ExecutionType = JavascriptExecutionTypes.OnWindowLoad;


            this.MinimumInputLength = 2;

            this.Styles["display"] = "none";
            this.ItemTagName       = "div";
            this.InvokeOnce        = false;
        }
        protected override void OnInit(EventArgs e)
        {
            if (this.UseImage)
            {
                this.togglerImage = new JsonImageSequence(this.CollapsedImageUrl);
                this.togglerImage.AddImage(this.JsonId + "_expandImg", this.ExpandedImageUrl);
                this.togglerImage.ClientClickFunction = this.togglerScript.JsonId;

                this.ParentJavascriptPage.AddJsonControl(this.togglerImage);
            }
            base.OnInit(e);
        }
        protected override void OnInit(EventArgs e)
        {
            if (this.UseImage)
            {
                this.togglerImage = new JsonImageSequence(this.CollapsedImageUrl);
                this.togglerImage.AddImage(this.JsonId + "_expandImg", this.ExpandedImageUrl);
                this.togglerImage.ClientClickFunction = this.togglerScript.JsonId;

                this.ParentJavascriptPage.AddJsonControl(this.togglerImage);

            }
            base.OnInit(e);
        }