protected void Page_Load(object sender, EventArgs e) { // DepositPaymentGrid control _linqDataSourceDepositPayment = DepositPaymentGrid1.GetLinqDataSourceDepositPayment(); _radGridDepositPayment = DepositPaymentGrid1.GetRadGridDepositPayment(); _radGridDepositPayment.RowDrop += _radGridDepositPayment_RowDrop; // init FileDownloadList1.InitFileDownloadList((int)CConstValue.Upload.Deposit); FileDownloadList1.SetVisibieUploadControls(false); if (!IsPostBack) { // todo: here fix var excel = DepositInfoToolbar.FindItemByText("Excel"); if (CurrentGroupId == (int)CConstValue.UserGroupForAccountExcelExport.Accounting || CurrentGroupId == (int)CConstValue.UserGroupForAccountExcelExport.IT) { excel.Visible = true; } } DepositListSearch(); }
protected void Page_Load(object sender, EventArgs e) { // find user control _linqDataSourceDepositPayment = DepositPaymentGrid1.GetLinqDataSourceDepositPayment(); _radGridDepositPayment = DepositPaymentGrid1.GetRadGridDepositPayment(); _linqDataSourceDepositPayment.WhereParameters.Clear(); _linqDataSourceDepositPayment.WhereParameters.Add("DepositId", DbType.Int32, Request["id"]); _linqDataSourceDepositPayment.Where = "DepositId == @DepositId"; }