Example #1
0
        private void chkKategori_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            this.fromChk = true;
            if (this.resetValue.ToLower() == "Kategori".ToLower())
            {
                chkKategori.Checked = true;
                return;
            }

            ddIdxKategori.Enabled = chkKategori.Checked;
            if (chkKategori.Checked)
            {
                this.agenda_variable.Add("{kategori}");
            }
            else
            {
                int idx = this.agenda_variable.IndexOf("{kategori}");
                RemoveGridIdx(idx);
                this.agenda_variable.RemoveAt(idx);
                ddIdxKategori.SelectedIndex = -1;
            }
            GenerateIDX();
            ChangeIndex();
            this.fromChk = false;
        }
Example #2
0
        private void rrbMode_TCP_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            var on = args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On;

            lblPort.Enabled     = on;
            nud_TCPPort.Enabled = on;
        }
Example #3
0
        private void radToggleButton1_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            RadToggleButton myButton = (RadToggleButton)sender;

            switch (args.ToggleState)
            {
            case ToggleState.On:
                if (StartPressent() == true)
                {
                    myButton.Text = "end";
                }
                break;

            case ToggleState.Off:
                if (EndPressent() == true)
                {
                    d = new TimeSpan(00, 00, 0000);
                    lbl_clock.Text = d.ToString();
                    myButton.Text  = "start";
                }
                break;

            default:
                break;
            }
        }
Example #4
0
 void optAvailableDrivers_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     if (args.ToggleState == ToggleState.On)
     {
         FilterDriver();
     }
 }
Example #5
0
 private void rdoPegawai_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     UncheckedRdoPegawai(false);
     hakAksesUser.Clear();
     ClearRdoAdministrator();
     pnlPegawai.Enabled = rdoPegawai.IsChecked;
 }
Example #6
0
        private void chkIncludeYear_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            this.fromChk = true;
            if (this.resetValue.ToLower() == "Yearly".ToLower() || this.resetValue.ToLower() == "Monthly".ToLower() || this.resetValue.ToLower() == "Daily".ToLower())
            {
                chkIncludeYear.Checked = true;
                return;
            }

            ddIdxIncludeYear.Enabled = chkIncludeYear.Checked;
            ddFormatYear.Enabled     = chkIncludeYear.Checked;
            //nLenYear.Enabled = chkIncludeYear.Checked;
            ddFormatYear.SelectedIndex = 0;

            if (chkIncludeYear.Checked)
            {
                this.agenda_variable.Add("{year}");

                ddFormatYear.SelectedIndex = 0;
                //nLenYear.Value = 1;
            }
            else
            {
                int idx = this.agenda_variable.IndexOf("{year}");
                ddFormatYear.SelectedIndex = -1;
                //nLenYear.Value = 1;
                RemoveGridIdx(idx);
                this.agenda_variable.RemoveAt(idx);
                ddIdxIncludeYear.SelectedIndex = -1;
            }
            GenerateIDX();
            ChangeIndex();
            this.fromChk = false;
        }
Example #7
0
 private void radCheckBox2_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     for (int i = 0; i < lvTkKeamanan.Items.Count; i++)
     {
         lvTkKeamanan.Items[i].CheckState = Telerik.WinControls.Enumerations.ToggleState.On;
     }
     lvTkKeamanan.Enabled = !radCheckBox2.Checked;
 }
Example #8
0
        private void OnRadioStackPositionSetting_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            RadRadioButton radioButton = sender as RadRadioButton;

            if (radioButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                (this.pageView1.ViewElement as RadPageViewStackElement).StackPosition = (StackViewPosition)radioButton.Tag;
            }
        }
Example #9
0
        private void superscriptButtonElement_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            if (stylesInitializing)
            {
                return;
            }

            this.radRichTextBox1.ToggleSuperscript();
            this.radRichTextBox1.Focus();
        }
Example #10
0
 private void radCheckBoxFit_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     if (radCheckBoxFit.ToggleState == ToggleState.On)
     {
         this.radGridView1.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
     }
     else
     {
         this.radGridView1.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
     }
 }
Example #11
0
 private void cbZoomImage_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     if (cbZoomImage.Checked)
     {
         pImage.BackgroundImageLayout = ImageLayout.Zoom;
     }
     else
     {
         pImage.BackgroundImageLayout = ImageLayout.Center;
     }
 }
Example #12
0
        private void radBtnPrintLayout_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            if (stylesInitializing)
            {
                return;
            }

            DocumentLayoutMode layout = DocumentLayoutMode.Flow;

            if (args.ToggleState == ToggleState.On)
            {
                layout = DocumentLayoutMode.Paged;
            }

            this.radRichTextBox1.LayoutMode = layout;
            this.radRichTextBox1.Focus();
        }
Example #13
0
 private void chkSeleccionar_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     if (chkSeleccionar.Checked)
     {
         gridClientes.Columns[0].IsVisible = true;
         btnActivar.Visible    = true;
         btnDesactivar.Visible = true;
         btnEliminar.Visible   = true;
     }
     else
     {
         gridClientes.Columns[0].IsVisible = false;
         btnActivar.Visible    = false;
         btnDesactivar.Visible = false;
         btnEliminar.Visible   = false;
     }
 }
Example #14
0
 private void chkSelect_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     if (chkSelect.Checked)
     {
         foreach (GridViewRowInfo rd in radGridView1.Rows)
         {
             rd.Cells["chk"].Value = true;
         }
     }
     else
     {
         foreach (GridViewRowInfo rd in radGridView1.Rows)
         {
             rd.Cells["chk"].Value = false;
         }
     }
 }
Example #15
0
        private void radNumberingList_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            if (stylesInitializing)
            {
                return;
            }

            ListStyle style = DefaultListStyles.None;

            if (args.ToggleState == ToggleState.On)
            {
                style = DefaultListStyles.Numbered;
            }

            this.radRichTextBox1.ChangeListStyle(style);
            this.radRichTextBox1.Focus();
        }
Example #16
0
 private void rb_Desc_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     if (rb_Desc.IsChecked == true)
     {
         combo_CamposBusqueda.Enabled = false;
         txt_BusquedaOtros.Text       = "";
         txt_BusquedaOtros.Enabled    = false;
         txt_BusquedaNombre.Text      = "";
         txt_BusquedaNombre.Enabled   = true;
     }
     else
     {
         combo_CamposBusqueda.Enabled = true;
         txt_BusquedaOtros.Text       = "";
         txt_BusquedaOtros.Enabled    = true;
         txt_BusquedaNombre.Text      = "";
         txt_BusquedaNombre.Enabled   = false;
     }
 }
 protected virtual void OnToggleButtonToggleStateChanged(
     RadToggleButtonElement button,
     StateChangedEventArgs args)
 {
     this.PropertyGridElement.PropertyTableElement.EndEdit();
     if (this.alphabeticalToggleButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On && this.categorizedToggleButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
     {
         this.PropertyGridElement.PropertyTableElement.PropertySort = PropertySort.CategorizedAlphabetical;
     }
     else if (this.alphabeticalToggleButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On && this.categorizedToggleButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.Off)
     {
         this.PropertyGridElement.PropertyTableElement.PropertySort = PropertySort.Alphabetical;
     }
     else if (this.alphabeticalToggleButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.Off && this.categorizedToggleButton.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
     {
         this.PropertyGridElement.PropertyTableElement.PropertySort = PropertySort.Categorized;
     }
     else
     {
         this.PropertyGridElement.PropertyTableElement.PropertySort = PropertySort.NoSort;
     }
 }
Example #18
0
        private void OnRadioSizingMode_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            if (radRadioNone.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                radComboDemo.DropDownSizingMode = Telerik.WinControls.UI.SizingMode.None;
            }

            else if (radRadioRightBottom.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                radComboDemo.DropDownSizingMode = Telerik.WinControls.UI.SizingMode.RightBottom;
            }

            else if (radRadioUpDown.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                radComboDemo.DropDownSizingMode = Telerik.WinControls.UI.SizingMode.UpDown;
            }

            else if (radRadioBottomUpDown.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                radComboDemo.DropDownSizingMode = Telerik.WinControls.UI.SizingMode.UpDownAndRightBottom;
            }
        }
Example #19
0
        private void radRadioButton1_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            this.shapedForm.Hide();
            this.shapedForm.Controls.Clear();
            if (this.radRadioRound.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                this.shapedForm.BackgroundImage = null;
                this.shapedForm.Shape           = new RoundRectShape();
                this.shapedForm.Size            = new Size(200, 100);

                this.shapedForm.Controls.Add(titleBar);
                this.titleBar.Dock = DockStyle.Top;
            }

            if (this.radRadioCD.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                this.shapedForm.SuspendLayout();
                DonutShape s = new DonutShape();
                s.Thickness                    += 85; // Magic, makes the form look like a CD.
                this.shapedForm.Shape           = s;
                this.shapedForm.Size            = new Size(280, 280);
                this.shapedForm.BackgroundImage = LoadImage("Telerik.Examples.WinControls.Forms.ShapedForm.label.png");
                CenterFormInPanel();
            }

            if (this.shapedForm.Parent == null)
            {
                CenterFormOnScreen();
            }
            else
            {
                CenterFormInPanel();
            }

            this.shapedForm.Invalidate();
            this.shapedForm.Show();
        }
 private void chkActive_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
 }
Example #21
0
 private void chkIsTheyRefugees_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     txtAddress2.Enabled = args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On ? true : false;
 }
Example #22
0
 private void OnCheckRightToLeft_StateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     this.radSpinDemo.RightToLeft = this.radCheckBox1.Checked ? System.Windows.Forms.RightToLeft.Yes : System.Windows.Forms.RightToLeft.No;
 }
 private void checkBoxElement_ToggleStateChanged(object sender, StateChangedEventArgs args)
 {
     this.OnToggleStateChanged(args);
 }
Example #24
0
        protected virtual void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            if (this.suspendProcessingToggleStateChanged)
            {
                return;
            }
            if (this.ViewTemplate != null && !this.ViewTemplate.IsSelfReference && !this.MasterTemplate.IsSelfReference)
            {
                this.MasterTemplate.BeginUpdate();
            }
            else
            {
                this.TableElement.BeginUpdate();
            }
            object state = (object)DBNull.Value;

            if (args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                state = (object)true;
            }
            else if (args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.Off)
            {
                state = (object)false;
            }
            else if (args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.Indeterminate)
            {
                state = (object)null;
            }
            this.RaiseToggleStateEvent();
            if (!this.shouldCheckDataRows)
            {
                if (this.ViewTemplate == null || this.ViewTemplate.IsSelfReference || this.MasterTemplate.IsSelfReference)
                {
                    return;
                }
                this.MasterTemplate.EndUpdate(true, new DataViewChangedEventArgs(ViewChangedAction.DataChanged));
            }
            else
            {
                this.GridViewElement.EditorManager.EndEdit();
                this.TableElement.BeginUpdate();
                this.MasterTemplate.MasterViewInfo.TableSearchRow.SuspendSearch();
                GridViewColumn columnInfo          = this.ColumnInfo;
                bool           shouldCheckDataRows = this.shouldCheckDataRows;
                this.shouldCheckDataRows = false;
                List <FilterDescriptor> filterDescriptorList = new List <FilterDescriptor>();
                for (int index = 0; index < this.ViewTemplate.Columns.Count; ++index)
                {
                    filterDescriptorList.Add(this.ViewTemplate.Columns[index].FilterDescriptor);
                    this.ViewTemplate.Columns[index].FilterDescriptor = (FilterDescriptor)null;
                }
                List <GridViewRowInfo> rowsToIterateOver = this.GetRowsToIterateOver();
                this.suspendHeaderSynchronization = true;
                foreach (GridViewRowInfo gridViewRowInfo in rowsToIterateOver)
                {
                    GridViewGroupRowInfo row = gridViewRowInfo as GridViewGroupRowInfo;
                    if (row != null)
                    {
                        this.CheckAllCheckBoxInChildRows(row, state);
                    }
                    else
                    {
                        gridViewRowInfo.Cells[this.ColumnIndex].Value = state;
                    }
                }
                this.suspendHeaderSynchronization = false;
                this.MasterTemplate.MasterViewInfo.TableSearchRow.ResumeSearch();
                this.TableElement.EndUpdate(false);
                this.TableElement.Update(GridUINotifyAction.DataChanged);
                if (this.ViewTemplate != null && !this.ViewTemplate.IsSelfReference && !this.MasterTemplate.IsSelfReference)
                {
                    this.MasterTemplate.EndUpdate(true, new DataViewChangedEventArgs(ViewChangedAction.DataChanged));
                }
                else
                {
                    this.TableElement.EndUpdate(false);
                }
                if (this.ViewTemplate != null)
                {
                    for (int index = 0; index < filterDescriptorList.Count; ++index)
                    {
                        this.ViewTemplate.Columns[index].FilterDescriptor = filterDescriptorList[index];
                    }
                }
                this.shouldCheckDataRows = shouldCheckDataRows;
            }
        }
Example #25
0
 private void rdoAdministrator_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     hakAksesUser.Clear();
     pnlAdministrator.Enabled = rdoAdministrator.IsChecked;
     rdoRoot.Focus();
 }
Example #26
0
 private void radCheckBox2_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     this.radCarouselDemo.VirtualMode = this.radCheckVirtualMode.Checked;
 }
Example #27
0
 private void radCheckBoxFormatting_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     this.radTreeView1.TreeViewElement.Update(RadTreeViewElement.UpdateActions.StateChanged);
 }
Example #28
0
 void owner_ToggleStateChanged(object sender, StateChangedEventArgs args)
 {
     this.NotifyClients(AccessibleEvents.Focus);
 }
Example #29
0
 private void radCheckBox3_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
 {
     this.radCarouselDemo.EnableAutoLoop = this.radCheckAutoLoop.Checked;
 }
Example #30
0
		private void chkFiltering_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
		{
            this.radGridView1.MasterTemplate.EnableFiltering = chkFiltering.ToggleState == ToggleState.On;
            this.radGridView1.MasterTemplate.ShowFilteringRow = chkFiltering.ToggleState == ToggleState.On;
		}