Пример #1
0
    protected void RadGrid1_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
    {
        GridTableView tableView = e.Item.OwnerTableView;

        e.Canceled = true;
        GridSortExpression expression = new GridSortExpression();

        expression.FieldName = "Customer";
        if (tableView.SortExpressions.Count == 0 || tableView.SortExpressions[0].FieldName != "Customer")
        {
            expression.SortOrder = GridSortOrder.Descending;
        }
        else if (tableView.SortExpressions[0].SortOrder == GridSortOrder.Descending)
        {
            expression.SortOrder = GridSortOrder.Ascending;
        }
        else if (tableView.SortExpressions[0].SortOrder == GridSortOrder.Ascending)
        {
            expression.SortOrder = GridSortOrder.None;
        }
        tableView.SortExpressions.AddSortExpression(expression);
        tableView.Rebind();

        LoadDataForRadGrid1();
        RadGrid1.DataBind();
    }
Пример #2
0
 protected void grdBill_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     if (e.SortExpression == "Insert")
     {
         Response.Redirect("Bill.aspx");
     }
 }
Пример #3
0
 protected void grdInvoices_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     if (e.SortExpression == "Insert")
     {
         e.Canceled = true;
         Server.Transfer("Invoice.aspx");
     }
 }
Пример #4
0
        // method for sorting behaviour;
        protected void onGridSort(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
        {
            GridSortExpression sortExpr = new GridSortExpression();

            sortExpr.FieldName = e.SortExpression;
            sortExpr.SortOrder = GridSortOrder.Ascending;

            e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
        }
        static void grdOrders_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
        {
            if (!e.Item.OwnerTableView.SortExpressions.ContainsExpression(e.SortExpression))
            {
                GridSortExpression gridSortExpression = new GridSortExpression();
                gridSortExpression.FieldName = e.SortExpression;
                gridSortExpression.SortOrder = GridSortOrder.Ascending;

                e.Item.OwnerTableView.SortExpressions.AddSortExpression(gridSortExpression);
            }
        }
Пример #6
0
 protected void RadGrid1_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     try
     {
         this.RadGrid1.Rebind();
     }
     catch (Exception ex)
     {
         ErrorManager(ex, "RadGrid1_SortCommand");
     }
 }
Пример #7
0
 /// <summary>
 /// Handles the SortCommand event of the gvTasks control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Telerik.Web.UI.GridSortCommandEventArgs"/> instance containing the event data.</param>
 protected void gvTasks_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     if (e.SortExpression.Length > 0)
     {
         GridSortExpression sortExpr = new GridSortExpression();
         sortExpr.FieldName = e.SortExpression;
         sortExpr.SortOrder = e.NewSortOrder;
         gvTasks.MasterTableView.SortExpressions.AddSortExpression(sortExpr);
         e.Canceled = true;
         gvTasks.Rebind();
     }
 }
    protected void RadGrid1_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
    {
        if (!e.Item.OwnerTableView.SortExpressions.ContainsExpression(e.SortExpression))
        {
            GridSortExpression sortExpr = new GridSortExpression();
            sortExpr.FieldName = e.SortExpression;
            sortExpr.SortOrder = GridSortOrder.Ascending;

            e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
            e.Item.OwnerTableView.Rebind();
        }
    }
Пример #9
0
        /// <summary>
        /// Handles the SortCommand event of the rgProjectTeam control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Telerik.Web.UI.GridSortCommandEventArgs"/> instance containing the event data.</param>
        protected void rgProjectTeam_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
        {
            searchUsers.HideNotifications();

            if (e.SortExpression.Length > 0)
            {
                GridSortExpression sortExpr = new GridSortExpression();
                sortExpr.FieldName = e.SortExpression;
                sortExpr.SortOrder = e.NewSortOrder;

                rgProjectTeam.MasterTableView.SortExpressions.Clear();
                rgProjectTeam.MasterTableView.SortExpressions.AddSortExpression(sortExpr);

                e.Canceled = true;
                rgProjectTeam.Rebind();
            }
        }
Пример #10
0
        /// <summary>
        /// Handles the SortCommand event of the gvBookingDetails control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Telerik.Web.UI.GridSortCommandEventArgs"/> instance containing the event data.</param>
        protected void gvBookingDetails_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
        {
            if (e.SortExpression.Length > 0)
            {
                GridSortExpression sortExprByCompany = new GridSortExpression();
                sortExprByCompany.FieldName = "ItemTypeId";
                sortExprByCompany.SortOrder = GridSortOrder.Ascending;

                GridSortExpression sortExpr = new GridSortExpression();
                sortExpr.FieldName = e.SortExpression;
                sortExpr.SortOrder = e.NewSortOrder;

                gvBookingDetails.MasterTableView.SortExpressions.Clear();
                gvBookingDetails.MasterTableView.SortExpressions.AddSortExpression(sortExprByCompany);
                gvBookingDetails.MasterTableView.SortExpressions.AddSortExpression(sortExpr);

                e.Canceled = true;
                gvBookingDetails.Rebind();
            }
        }
Пример #11
0
 protected void GenderGrid_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     LoadGridChart();
 }
Пример #12
0
 /// <summary>
 /// RadGrid1_SortCommand
 /// </summary>
 /// <param name="source"></param>
 /// <param name="e"></param>
 protected void RadGrid1_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     LoadData();
 }
Пример #13
0
 protected void RadGrid1_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     LoadDataForRadGrid1();
 }
Пример #14
0
 protected void rdgvFairmadanGelenIstekler_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
 }
 protected void grdReferansKalibrasyonlari_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     grdReferansKalibrasyonlariBagla();
 }
Пример #16
0
 protected void SAloneListView_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     LoadStandingAloneGrid();
 }
Пример #17
0
 protected void cityGrid_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     loadData();
 }
Пример #18
0
 protected void gvWellTestDeviceDataRad_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     BindGridViewWellDevice(GetWellDataDeviceWise(Request.QueryString["WellName"], Request.Form["txtStartDate"], Request.Form["txtEndDate"]), GetPiChartData(Request.QueryString["WellName"], Request.Form["txtStartDate"], Request.Form["txtEndDate"]));
 }
Пример #19
0
 protected void OccupantsGrid_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     LoadGridChart1();
 }
Пример #20
0
 protected void VacantGridView_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     //LoadGridLevelV();
 }
 protected void RadGridWeeklySummary_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     ReBindGrid();
 }
Пример #22
0
 protected void RadGridDistributors_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     this.ReBindGrid();
 }
Пример #23
0
 protected void ErrorCheckView_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     LoadErrorCheckGrid();
 }
Пример #24
0
 protected void gvWellTestDataRad_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     BindGridViewWellTest(GetWellTestData(ddlDeviceName.SelectedValue, Request.QueryString["WellName"], Request.Form["txtStartDate"], Request.Form["txtEndDate"]));
 }
Пример #25
0
 protected void rdgvEgitim_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
 }
Пример #26
0
 protected void StaffandOthersView_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
 }
 protected void RadGrid1_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     ManageGrid();
 }
Пример #28
0
 protected void gvWellTestDataRad_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     BindGridView(ConnectAndQuery(Request.QueryString["DeviceName"], bool.Parse(rbtnAbondonWell.SelectedValue), Request.Form["txtStartDate"], Request.Form["txtEndDate"]));
 }
 protected void rdgvSertifiKaTipineGoreKalibrasyonlar_SortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
 }
 protected void onSortCommand(object sender, Telerik.Web.UI.GridSortCommandEventArgs e)
 {
     ScriptManager.RegisterClientScriptBlock(this, GetType(), "none", "<script>$('#shade').show();$('#tbl_grid').hide();</script>", false);
 }