protected void Store1_RefreshData(object sender, StoreReadDataEventArgs e) { //GEtting the filter from the page string filter = string.Empty; int totalCount = 1; //Fetching the corresponding list //in this test will take a list of News ListRequest request = new ListRequest(); request.Filter = ""; ListResponse <LoanType> routers = _loanService.ChildGetAll <LoanType>(request); if (!routers.Success) { return; } this.Store1.DataSource = routers.Items; e.Total = routers.Items.Count;; this.Store1.DataBind(); }
private void FillLoanType() { ListRequest branchesRequest = new ListRequest(); ListResponse <LoanType> resp = _loanService.ChildGetAll <LoanType>(branchesRequest); if (!resp.Success) { Common.errorMessage(resp); } ltStore.DataSource = resp.Items; ltStore.DataBind(); }