Example #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            RcboxCustomers.MultiColumnComboBoxElement.DropDownWidth = 300;
            RcboxCustomers.DataSource = CustomerViewModel.GetAllNonDeletedEntities();
            RcboxProducts.MultiColumnComboBoxElement.DropDownWidth = 400;
            RcboxProducts.DataSource   = ProductViewModel.GetAllNonDeletedEntities();
            RgvOrderDetails.DataSource = GridViewOrderDetails;

            DeselectCustomerComboBox();
            DeselectProductComboBox();
        }
Example #2
0
        private void RefreshPage()
        {
            ClearTopPanel();
            EnabledTopPanel(true);
            ClearProductPanel();
            InvisibleAllResultLabels();
            // Clear all items in GridOrderDetails
            GridViewOrderDetails.Clear();
            UpdateGridView();

            // Refresh RadCombobox Product and Customer
            RcboxCustomers.DataSource = CustomerViewModel.GetAllNonDeletedEntities();
            RcboxProducts.DataSource  = ProductViewModel.GetAllNonDeletedEntities();
        }