Beispiel #1
0
        private void rgv_FieldFilterEditorCreated(object sender, Telerik.Windows.Controls.GridView.EditorCreatedEventArgs e)
        {
            //get the StringFilterEditor in your RadGridView
            var stringFilterEditor = e.Editor as StringFilterEditor;

            if (stringFilterEditor != null)
            {
                stringFilterEditor.MatchCaseVisibility = Visibility.Hidden;

                //e.Editor.Loaded += (s1, e1) =>
                //{

                //    var textBox = e.Editor.ChildrenOfType<TextBox>().Single();

                //    textBox.TextChanged += (s2, e2) =>
                //    {
                //        //e.Editor.ChildrenOfType<TextBox>().ToString().ToUpper();
                //        textBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
                //        // textBox.GetBindingExpression(TextBox.TextProperty).
                //        this.lblRows.Text = rgv.Items.Count.ToString() + " Registros";
                //    };

                //};
            }
        }
        private void SLRadGridView_FieldFilterEditorCreated(object sender, Telerik.Windows.Controls.GridView.EditorCreatedEventArgs e)
        {
            var stringFilterEditor = e.Editor as StringFilterEditor;

            if (stringFilterEditor != null)
            {
                stringFilterEditor.MatchCaseVisibility = Visibility.Hidden;
            }
        }
        private void radTreeListView_FieldFilterEditorCreated(object sender, Telerik.Windows.Controls.GridView.EditorCreatedEventArgs e)
        {
            //get the StringFilterEditor in your RadGridView
            var stringFilterEditor = e.Editor as StringFilterEditor;

            if (stringFilterEditor != null)
            {
                stringFilterEditor.MatchCaseVisibility = Visibility.Hidden;
                e.Editor.Loaded += (s1, e1) =>
                {
                    var textBox = e.Editor.ChildrenOfType <TextBox>().Single();
                    textBox.TextChanged += (s2, e2) =>
                    {
                        textBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
                    };
                };
            }
        }