protected void GridView_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { //UpdateNavBarName(); //List<bool> ActivedList = new List<bool>(); //List<bool> BlockedList = new List<bool>(); //for (int i = 0; i < GridView.VisibleRowCount; i++) //{ // ActivedList.Add((bool)GridView.GetRowValues(i, "Actived")); // BlockedList.Add((bool)GridView.GetRowValues(i, "Blocked")); //} //e.Properties["cpActived"] = ActivedList; //e.Properties["cpBlocked"] = BlockedList; //if (bool.Parse(HttpContext.Current.Session["isActBloChanged_Com"].ToString())) //{ // HttpContext.Current.Session["isActBloChanged_Com"] = false; // e.Properties["cpAllCount"] = StandardTypeProvider.Count(x => true); // e.Properties["cpInActivedUnBlockedCount"] = StandardTypeProvider.Count(x => x.Actived == false && x.Blocked == false); // e.Properties["cpActivedBlockedCount"] = StandardTypeProvider.Count(x => x.Actived == true && x.Blocked == true); // e.Properties["cpInactivedBlockedCount"] = StandardTypeProvider.Count(x => x.Actived == false && x.Blocked == true); // e.Properties["cpActivedUnBlockedCount"] = StandardTypeProvider.Count(x => x.Actived == true && x.Blocked == false); // e.Properties["cpOwnerCount"] = StandardTypeProvider.Count(x => x.UserName == User.Identity.Name); //} }
protected void grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { var grid = sender as ASPxGridView; var filterExpression = ((GridViewDataColumn)grid.Columns["BirthDate"]).FilterExpression; if (!string.IsNullOrEmpty(filterExpression)) { var co = (GroupOperator)CriteriaOperator.Parse(filterExpression); DateTime start = new DateTime(); DateTime end = new DateTime(); foreach (BinaryOperator op in co.Operands) { OperandValue val = (OperandValue)op.RightOperand; if (op.OperatorType == BinaryOperatorType.GreaterOrEqual) { start = (DateTime)val.Value; } else if (op.OperatorType == BinaryOperatorType.Less) { end = ((DateTime)val.Value).AddDays(-1); } else if (op.OperatorType == BinaryOperatorType.LessOrEqual) { end = (DateTime)val.Value; } } var dates = new Dates(); dates.DateFrom = start; dates.DateTo = end; e.Properties["cpDates"] = dates; } }
protected void gvPartSelections_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; int startIndex = grid.PageIndex * grid.SettingsPager.PageSize; int end = Math.Min(grid.VisibleRowCount, startIndex + grid.SettingsPager.PageSize); object[] PartNo = new object[end - startIndex], Description = new object[end - startIndex] , Pos = new object[end - startIndex], Pos2 = new object[end - startIndex] , Qty = new object[end - startIndex], QtyUsed = new object[end - startIndex], QtyRemain = new object[end - startIndex]; for (int n = startIndex; n < end; n++) { PartNo[n - startIndex] = grid.GetRowValues(n, "PartNo"); Description[n - startIndex] = grid.GetRowValues(n, "Description"); Pos[n - startIndex] = grid.GetRowValues(n, "Pos"); Pos2[n - startIndex] = grid.GetRowValues(n, "Pos2"); Qty[n - startIndex] = grid.GetRowValues(n, "Qty"); QtyUsed[n - startIndex] = grid.GetRowValues(n, "QtyUsed"); QtyRemain[n - startIndex] = grid.GetRowValues(n, "QtyRemain"); //titles[n - startIndex] = grid.GetRowValues(n, "title"); } e.Properties["cpPartNo"] = PartNo; e.Properties["cpDescription"] = Description; e.Properties["cpPos"] = Pos; e.Properties["cpPos2"] = Pos2; e.Properties["cpQty"] = Qty; e.Properties["cpQtyUsed"] = QtyUsed; e.Properties["cpQtyRemain"] = QtyRemain; //e.Properties["cpDescription"] = Description; }
protected void Grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { var grid = (ASPxGridView)sender; var summaryTemplate = (SummaryFooterCellTemplate)grid.Templates.FooterCell; e.Properties["cpSummaryTexts"] = summaryTemplate.SummaryTexts; }
protected void grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { List <int> indexesUnselected = Session["WebManagement_IndexesUnselected"] as List <int>; List <int> indexesSelected = Session["WebManagement_IndexesSelected"] as List <int>; e.Properties["cpIndexesUnselected"] = indexesUnselected; e.Properties["cpIndexesSelected"] = indexesSelected; }
protected void grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = (ASPxGridView)sender; if (grid.IsEditing && !grid.IsNewRowEditing) { // Pass the editing row version to the client e.Properties["cpEditRowVersion"] = GetVersionField(grid); } }
protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; string filterControlID = String.Format("{0}$DXPFCForm$DXPFC", grid.UniqueID); if (Request["__CALLBACKID"] != null && Request["__CALLBACKID"].Equals(filterControlID)) { e.Properties["cpRequirePatchFilterExpression"] = true; } }
protected void Grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { List <bool> list = new List <bool>(); for (int i = 0; i < Grid.VisibleRowCount; i++) { list.Add((bool)Grid.GetRowValues(i, "Discontinued")); } e.Properties["cpDiscontinued"] = list; }
protected void gvw_car_no_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = (ASPxGridView)dde_car_no.FindControl("gvw_car_no"); string cpcar_nos = string.Empty; for (int i = 0; i < grid.VisibleRowCount; i++) { cpcar_nos += grid.GetRowValues(i, "car_no") + ","; } e.Properties["cpcar_nos"] = cpcar_nos.TrimEnd(','); }
protected void gv_ProductSeries_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { int startIndex = gv_ProductSeries.PageIndex * gv_ProductSeries.SettingsPager.PageSize; int end = Math.Min(gv_ProductSeries.VisibleRowCount, startIndex + gv_ProductSeries.SettingsPager.PageSize); object[] Id = new object[end - startIndex]; for (int n = startIndex; n < end; n++) { Id[n - startIndex] = gv_ProductSeries.GetRowValues(n, "id"); } e.Properties["cpId"] = Id; }
protected void GridView_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = (ASPxGridView)DropDownEdit.FindControl("GridView"); object[] employeeNames = new object[grid.VisibleRowCount]; object[] keyValues = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { employeeNames[i] = grid.GetRowValues(i, "FirstName") + " " + grid.GetRowValues(i, "LastName"); keyValues[i] = grid.GetRowValues(i, "ID"); } e.Properties["cpEmployeeNames"] = employeeNames; e.Properties["cpKeyValues"] = keyValues; }
protected void OpsLiveGrid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { Dictionary <object, int> visibleIndices = new Dictionary <object, int>(); for (int i = 0; i < OpsLiveGrid.VisibleRowCount; i++) { if (!visibleIndices.ContainsKey(OpsLiveGrid.GetRowValues(i, OpsLiveGrid.KeyFieldName))) { visibleIndices.Add(OpsLiveGrid.GetRowValues(i, OpsLiveGrid.KeyFieldName), i); } } e.Properties["cpIndices"] = visibleIndices; }
protected void gridPopGst_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; object[] GstCode = new object[grid.VisibleRowCount]; object[] GstValue = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { GstCode[i] = grid.GetRowValues(i, "Code"); GstValue[i] = grid.GetRowValues(i, "GstValue"); } e.Properties["cpGstCode"] = GstCode; e.Properties["cpGstValue"] = GstValue; }
protected void gridPopCont_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; object[] Code = new object[grid.VisibleRowCount]; object[] Des = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { Code[i] = grid.GetRowValues(i, "Code"); Des[i] = grid.GetRowValues(i, "AcDesc"); } e.Properties["cpCode"] = Code; e.Properties["cpDes"] = Des; }
protected void gridPopCont_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; object[] contNs = new object[grid.VisibleRowCount]; object[] contTypes = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { contNs[i] = grid.GetRowValues(i, "ContainerNo"); contTypes[i] = grid.GetRowValues(i, "ContainerType"); } e.Properties["cpContType"] = contTypes; e.Properties["cpContN"] = contNs; }
protected void GridView_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = (ASPxGridView)DropDownEdit.FindControl("GridView"); object[] employeeNames = new object[grid.VisibleRowCount]; object[] keyValues = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { employeeNames[i] = grid.GetRowValues(i, "EmployerNo") + "/ " + grid.GetRowValues(i, "FundName"); keyValues[i] = grid.GetRowValues(i, "EmployeeIDFundID"); } e.Properties["cpEmployeeNames"] = employeeNames; e.Properties["cpKeyValues"] = keyValues; }
protected void grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { int startIndex = grid.PageIndex * grid.SettingsPager.PageSize; int end = Math.Min(grid.VisibleRowCount, startIndex + grid.SettingsPager.PageSize); object[] titleId = new object[end - startIndex], titles = new object[end - startIndex]; for (int n = startIndex; n < end; n++) { titleId[n - startIndex] = grid.GetRowValues(n, "title_id"); titles[n - startIndex] = grid.GetRowValues(n, "title"); } e.Properties["cpTitleId"] = titleId; e.Properties["cpTitles"] = titles; }
protected void gridGstType_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; object[] keyValues = new object[grid.VisibleRowCount]; object[] code = new object[grid.VisibleRowCount]; object[] gstValue = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { keyValues[i] = grid.GetRowValues(i, "SequenceId"); code[i] = grid.GetRowValues(i, "Code"); gstValue[i] = grid.GetRowValues(i, "GstValue"); } e.Properties["cpId"] = keyValues; e.Properties["cpCode"] = code; e.Properties["cpGstValue"] = gstValue; }
protected void gridPopCont_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; object[] keyValues = new object[grid.VisibleRowCount]; object[] name = new object[grid.VisibleRowCount]; object[] code = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { keyValues[i] = grid.GetRowValues(i, "Id"); name[i] = grid.GetRowValues(i, "Name"); code[i] = grid.GetRowValues(i, "IcNo"); } e.Properties["cpName"] = name; e.Properties["cpCode"] = code; e.Properties["cpKeyValues"] = keyValues; }
protected void MailGrid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { if (MailTree.SelectedNode.Name == "Inbox") { var list = new List <IMessage>(); for (var i = 0; i < MailGrid.VisibleRowCount; i++) { if (MailGrid.IsGroupRow(i)) { continue; } var message = MailGrid.GetRow(i) as IMessage; if (message != null) { list.Add(message); } } e.Properties["cpVisibleMailKeysHash"] = GetMessagesKeyMap(list); } }
protected void Grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { var result = new Hashtable(); foreach (var col in Grid.AllColumns) { var dataCol = col as GridViewDataColumn; if (dataCol != null) { result[dataCol.FieldName] = new Dictionary <string, object>() { { "groupIndex", dataCol.GroupIndex }, { "sortIndex", dataCol.SortIndex }, { "sortOrder", dataCol.SortOrder } }; } } e.Properties["cpColumnsProp"] = result; }
protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { var grid = sender as ASPxGridView; var keySumPairs = new Hashtable(); var groups = grid.GetGroupedColumns() .OrderBy(g => g.GroupIndex) .Select(g => g.FieldName) .ToArray(); for (int i = grid.VisibleStartIndex; i < grid.VisibleRowCount; i++) { if (grid.IsGroupRow(i)) { continue; } var key = grid.GetRowValues(i, grid.KeyFieldName); var groupValue = grid.GetRowValues(i, groups); keySumPairs.Add(key, groupValue); } e.Properties.Add("cp_keys", keySumPairs); e.Properties.Add("cp_groups", groups); }
protected void Grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpDataColumnMap"] = Grid.DataColumns.ToDictionary(c => Grid.DataColumns.IndexOf(c), c => c.FieldName); }
protected void gvStockImportDetails_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpTotal"] = gvStockImportDetails.VisibleRowCount; if (gvStockImportDetails.VisibleRowCount > 0) e.Properties["cpCurrentTotal"] = EU.getSumColumnBySession(globalSessionKey, globalTableTempName, "sum"); //e.Properties["cpCurrentTotal"] = gvStockImportDetails.GetTotalSummaryValue(gvStockImportDetails.TotalSummary["Total"]); else e.Properties["cpCurrentTotal"] = 0; }
protected void gvReportDataDetallado_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpGroupCount"] = gvReportDataDetallado.GroupCount; }
protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { gridCustomJSProperties(ASPxGridView1, e); }
protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpLastVisibleRowIndex"] = (ASPxGridView1.PageIndex == -1) ? ASPxGridView1.VisibleRowCount : Math.Min(ASPxGridView1.SettingsPager.PageSize * (ASPxGridView1.PageIndex + 1), ASPxGridView1.VisibleRowCount) - 1; }
protected void gvInvoiceDetails_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { //e.Properties["cpTotal"] = gvInvoiceDetails.VisibleRowCount; //if (gvInvoiceDetails.VisibleRowCount > 0) // e.Properties["cpTONGSOLUONG"] = gvInvoiceDetails.GetTotalSummaryValue(gvInvoiceDetails.TotalSummary["Total"]); //else // e.Properties["cpTONGSOLUONG"] = 0; if (gvInvoiceDetails.VisibleRowCount > 0) { e.Properties["cpTONGSOLUONG"] = EU.getSumColumnBySession(globalSessionKey, globalTableTempName, "quantity"); } }
//protected void grid_HtmlRowCreated(object sender, // DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e) //{ // if (e.RowType != DevExpress.Web.ASPxGridView.GridViewRowType.Data) return; // // Label ctrl = this.gv.FindRowCellTemplateControl(e.VisibleIndex, null, "lblDay") as Label; // //lblDuration // // Label ctrlduration = this.gvweek1.FindRowCellTemplateControl(e.VisibleIndex, null, "lblDuration") as Label; // ASPxDateEdit ctrleDate = this.gv.FindRowCellTemplateControl(e.VisibleIndex, null, "ASPxDateEdit1") as ASPxDateEdit; // if (ctrleDate != null) // { // ctrleDate.Date = Convert.ToDateTime(e.GetValue("Date")); //"03/09/2012" // } //} protected void GridView_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { //ASPxGridView grid = (ASPxGridView)DropDownEdit.FindControl("gv"); //object[] employeeNames = new object[grid.VisibleRowCount]; //object[] keyValues = new object[grid.VisibleRowCount]; ////DateTime dt_eff, dt_exp; ////object obj; ////Type tp; //for (int i = 0; i < grid.VisibleRowCount; i++) //{ // //obj = grid.GetRowValues(i, "EffectiveDate"); // //tp = obj.GetType(); // //dt_eff = grid.GetRowValues(i, "EffectiveDate").GetType(); // //employeeNames[i] = "Effective Date: " + grid.GetRowValues(i, "EffectiveDate") + " Expiry Date: " + grid.GetRowValues(i, "ExpiryDate"); // employeeNames[i] = grid.GetRowValues(i, "EffectiveDate"); // keyValues[i] = grid.GetRowValues(i, "EffectiveDate"); //} //e.Properties["cpEmployeeNames"] = employeeNames; //e.Properties["cpKeyValues"] = keyValues; }
protected void gridPhieuThu_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpTotal"] = gridPhieuThu.VisibleRowCount; e.Properties["cpTongTienPhaiTra"] = gridPhieuThu.GetTotalSummaryValue(gridPhieuThu.TotalSummary["Sotienphaithu"]); }
protected void GRIDFORNECEDORES_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = GRIDFORNECEDORES; object[] pesCod = new object[grid.VisibleRowCount]; object[] pesNome = new object[grid.VisibleRowCount]; object[] pesCNPJ = new object[grid.VisibleRowCount]; object[] pesCPF = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { pesCod[i] = grid.GetRowValues(i, "PESCOD"); pesNome[i] = grid.GetRowValues(i, "PESNOME"); pesCNPJ[i] = grid.GetRowValues(i, "PESCNPJ"); pesCPF[i] = grid.GetRowValues(i, "PESCPF"); } e.Properties["cpPESCOD"] = pesCod; e.Properties["cpPESNOME"] = pesNome; e.Properties["cpPESCNPJ"] = pesCNPJ; e.Properties["cpPESCPF"] = pesCPF; }
protected void GRIDITENSCONTRATO_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = GRIDITENSCONTRATO; object[] nomeItem = new object[grid.VisibleRowCount]; object[] QtdeContratada = new object[grid.VisibleRowCount]; object[] Saldo = new object[grid.VisibleRowCount]; object[] valorUnitario = new object[grid.VisibleRowCount]; object[] codItem = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { nomeItem[i] = grid.GetRowValues(i, "IDTNOME"); QtdeContratada[i] = grid.GetRowValues(i, "LCI_QTDE"); Saldo[i] = grid.GetRowValues(i, "SALDO"); valorUnitario[i] = grid.GetRowValues(i, "LCI_VALOR"); codItem[i] = grid.GetRowValues(i, "ITDCOD"); } e.Properties["cpNomeItem"] = nomeItem; e.Properties["cpQtdeContratada"] = QtdeContratada; e.Properties["cpSaldo"] = Saldo; e.Properties["cpValorUnitario"] = valorUnitario; e.Properties["cpCodItem"] = codItem; }
protected void ASPxGridView2_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { if (Session["valorGrid"] != null) { e.Properties["cpNUMERO"] = Session["valorGrid"].ToString(); } }
protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { //if(!string.IsNullOrEmpty(txtFiltro.Text)){ // ASPxGridView1.FilterExpression = "[IDTNOME] like '%" + txtFiltro.Text + "%'"; // ASPxGridView1.DataBind(); // } }
private void Grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpNewTabViewUrl"] = GetDetailViewUrl(); e.Properties["cpUrlKeyPlaceholder"] = UrlKeyPlaceholder; }
protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpTotal"] = ASPxGridView1.VisibleRowCount; }
protected void grid_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = sender as ASPxGridView; e.Properties["cpPageSize"] = grid.SettingsPager.PageSize; }
protected void gridHistoricos_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = gridHistoricos; object[] historico = new object[grid.VisibleRowCount]; object[] data = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { historico[i] = grid.GetRowValues(i, "HISTORICO"); data[i] = grid.GetRowValues(i, "DATA"); } e.Properties["cpHISTORICO"] = historico; e.Properties["cpDATA"] = data; }
protected void gvInvoiceDetails_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { if (gvInvoiceDetails.VisibleRowCount > 0) { e.Properties["cpTONGSOLUONG"] = EU.getSumColumnBySession(globalSessionKey, globalTableTempName, "quantity"); } }
protected void GRIDDOTACOES_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView grid = GRIDDOTACOES; object[] dotReduzido = new object[grid.VisibleRowCount]; object[] natureza = new object[grid.VisibleRowCount]; object[] natDescricao = new object[grid.VisibleRowCount]; object[] pa = new object[grid.VisibleRowCount]; object[] projAtividade = new object[grid.VisibleRowCount]; object[] total = new object[grid.VisibleRowCount]; object[] fonCod = new object[grid.VisibleRowCount]; object[] fonNome = new object[grid.VisibleRowCount]; object[] controlaSaldo = new object[grid.VisibleRowCount]; for (int i = 0; i < grid.VisibleRowCount; i++) { dotReduzido[i] = grid.GetRowValues(i, "DOTREDUZIDO"); natDescricao[i] = grid.GetRowValues(i, "NATNOME"); pa[i] = grid.GetRowValues(i, "PA"); projAtividade[i] = grid.GetRowValues(i, "PRJNOME"); natureza[i] = String.Format(@"{0:0\.0\.00\.00\.00}", Convert.ToInt64(grid.GetRowValues(i, "DOTELEMENTO"))); total[i] = grid.GetRowValues(i, "TOTAL"); fonCod[i] = grid.GetRowValues(i, "FONCOD"); fonNome[i] = grid.GetRowValues(i, "FONNOME"); if (!Convert.IsDBNull(grid.GetRowValues(i, "CONTROLASALDO"))) { controlaSaldo[i] = grid.GetRowValues(i, "CONTROLASALDO"); } else { controlaSaldo[i] = string.Empty; } } e.Properties["cpKeyValues"] = dotReduzido; e.Properties["cpnatureza"] = natureza; e.Properties["cpnatDescricao"] = natDescricao; e.Properties["cppa"] = pa; e.Properties["cpprojAtividade"] = projAtividade; e.Properties["cpTotal"] = total; e.Properties["cpFonCod"] = fonCod; e.Properties["cpFonNome"] = fonNome; e.Properties["cpControlaSaldo"] = controlaSaldo; }
protected void gvInvoiceDetails_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpTotal"] = gvInvoiceDetails.VisibleRowCount; e.Properties["cpCurrentTotal"] = gvInvoiceDetails.GetTotalSummaryValue(gvInvoiceDetails.TotalSummary["sum"]); }
protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties.Add("cpGps", FncGenerarDataGps()); }
protected void gridPhieuChi_CustomJSProperties1(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpTotal"] = gridPhieuChi.VisibleRowCount; }
protected void gridSearchView_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { int startIndex = gridSearchView.PageIndex * gridSearchView.SettingsPager.PageSize; int end = Math.Min(gridSearchView.VisibleRowCount, startIndex + gridSearchView.SettingsPager.PageSize); object[] rschId = new object[end - startIndex]; for (int n = startIndex; n < end; n++) { rschId[n - startIndex] = gridSearchView.GetRowValues(n, "rschId"); } e.Properties["cprschId"] = rschId; }
protected void gvProducts_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { ASPxGridView gridView = sender as ASPxGridView; UpdateGridViewButtons(gridView); }
protected void gvStockexportDetails_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpTotal"] = gvStockexportDetails.VisibleRowCount; if (gvStockexportDetails.VisibleRowCount > 0) e.Properties["cpCurrentTotal"] = gvStockexportDetails.GetTotalSummaryValue(gvStockexportDetails.TotalSummary["sum"]); else e.Properties["cpCurrentTotal"] = 0; }
public void gridCustomJSProperties(ASPxGridView gv, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpPageSize"] = gv.SettingsPager.PageSize; }
protected void gridViewResearches_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { Hashtable table = new Hashtable(gridViewResearches.DetailRows.VisibleCount); for (int i = 0; i < gridViewResearches.VisibleRowCount; i++) { if (gridViewResearches.DetailRows.IsVisible(i)) table[i] = true; } e.Properties["cpVisibleDetails"] = table; }
protected void grdGeneric_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { int startIndex = ((ASPxGridView)sender).PageIndex * ((ASPxGridView)sender).SettingsPager.PageSize; int end = Math.Min(((ASPxGridView)sender).VisibleRowCount, startIndex + ((ASPxGridView)sender).SettingsPager.PageSize); object[] jobId = new object[end - startIndex], jobType = new object[end - startIndex], jobTriggerId = new object[end - startIndex], inputSchemaProcedure = new object[end - startIndex], jobTriggerStatus = new object[end - startIndex]; for(int n = startIndex; n < end; n++) { if (((ASPxGridView)sender).ClientInstanceName == "grdDailyJobs") { jobTriggerStatus[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "JobTriggerStatus"); jobId[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "Job.JobId"); jobType[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "Job.JobType"); jobTriggerId[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "JobTriggerId"); if (((ASPxGridView)sender).GetRowValues(n, "Job.InputSchemaProcedure") == null){ inputSchemaProcedure[n - startIndex] = ""; } else { inputSchemaProcedure[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "Job.InputSchemaProcedure"); } } else { jobType[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "JobType"); jobId[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "JobId"); if (((ASPxGridView)sender).GetRowValues(n, "InputSchemaProcedure") == null) { inputSchemaProcedure[n - startIndex] = ""; } else { inputSchemaProcedure[n - startIndex] = ((ASPxGridView)sender).GetRowValues(n, "InputSchemaProcedure"); } } } e.Properties["cpJobId"] = jobId; e.Properties["cpJobType"] = jobType; e.Properties["cpJobTriggerId"] = jobTriggerId; if (((ASPxGridView)sender).ClientInstanceName == "grdDailyJobs") e.Properties["cpJobTriggerStatus"] = jobTriggerStatus; e.Properties["cpSPName"] = inputSchemaProcedure; }