Questions tagged [paging]

1

votes
1

answer
11k

Views

Remove Gridview row in rowDataBound event asp.net c#

I have a gridview which checks some values on rowDataBound event.I want to remove some rows based on conditions checked in rowDataBound.I tried putting all controls in a Panel and hiding that panel ie, TRY 1 : protected void grdFeatured_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row...
sajanyamaha
1

votes
3

answer
2.1k

Views

Performance of Skip and Take in Linq to Objects

"Searching for alternative functionalities for "Skip" and "Take" functionalities" 1 of the link says "Everytime you invoke Skip() it will have to iterate you collection from the beginning in order to skip the number of elements you desire, which gives a loop within a loop (n2 behaviour)" Conclusion:...
user2361573
1

votes
2

answer
1.3k

Views

Recommended strategy for ASP.NET paging with large data, and optional sorting

The project I am currently working requires retrieving/searching from large amount of data, the flow as below:- Enter a keyword and search from about 500,000 members Retrieve only top 6 members. Allow sorting based on the member country or gender. Requirements: Using EF5.0 The data is currently disp...
cherhan
1

votes
1

answer
185

Views

Running multiple executables linked to 0x400000

I'm interested in operating systems topic and I have a dummy question. Standard PE executable files are linked to 0x400000. My question is how can operating system load multiply executables with same image base, when virtual memory just maps virtual addresses to physical. Is it storing PDE and PTE i...
user35443
1

votes
2

answer
587

Views

Entity Framework Take statement, cause EF generates unefficient SQL query

I'm using Take and Skip statements in EF CodeFirst, for implementing Paging(as Zoran Maksimovic said in this post), these statements cause EF generate a sql query like this(my page size is 100): SELECT TOP (100) [Filter1].[Id] AS [Id], [Filter1].[SendDuration] AS [SendDuration]...
Masoud
1

votes
1

answer
313

Views

get all pages from the page cache

I am trying to write a function in Linux kernel space that walks over a page cache, and searches for a page that contains a specific block. I don't know how to get the pages in the page-cache one-by-one. I saw that find_get_page is a function that can help me, but I don't know how to get the first...
Ygandelsman
1

votes
1

answer
108

Views

In memory allocation - what is the 12 bit page offset actually for?

After a lecture on paging, page allocation and page replacement I am still unsure about what the 12 bit page offset for each page is actually for. I understand that it holds an address for the 4096 byte space of each page but what does it actually point to and why?
hally9k
1

votes
2

answer
3.1k

Views

Losing all view model data when using paged list

Just finished adding paging to my view using the Paged List plugin and I am able to bring data back for one page only. If you click "Next" or any other page number available the page will resubmit itself and you wind up with a blank form. I stepped through the code and saw that the view model objec...
NealR
1

votes
2

answer
726

Views

SQL Server : With Syntax

I have a table of employeeSomething tb_EmployeeSomething EmpID| TypeID 1 | 1 1 | 1 1 | 1 1 | 2 1 | 2 2 | 2 2 | 2 2 | 2 Now I'm using paging in my program and the return must be EmpID| TypeID| RowNum 1|1|1 1|2|2 2|2|3 Here what I've tried Declare @start int Declare @end int With Tmp2 as ( With Tmp1 a...
user2530833
1

votes
3

answer
1.1k

Views

jquery-1.3.1.min.js not working when jquery-1.10.2.js was called

i need those both js file, one for adding row, and another for tablesort and pager. my problem neither script works, if they are both called. this is my code so far : jQuery plugin: Tablesorter 2.0 $(document).ready(function() { $(document).on("click","#tdAdd",function(){ var newRow = $(""); var c...
bumbumpaw
1

votes
1

answer
109

Views

L1 Buffer handling

The L1 instruction cache contains..... instructions. For what type of instructions would the CPU fetch an instruction from the icache and then need to look-up a virtual address using the L1 instruction Translation Lookaside Buffer (iTLB)? I can see why an instruction would be fetched and then the L1...
user3811839
1

votes
2

answer
503

Views

Displaying current page stats for RadGrid

So, I'm trying to display something like "Displaying 1-20 of 100" using a RadGrid control. I put the following code in the RadGrid1_PageIndexChanged event: int showingRowsFrom = ((e.NewPageIndex + 1) * rgResults.PageSize) - rgResults.PageSize + 1; int showingRowsTo; if ((e.NewPageIndex + 1) == rgRes...
Relevant
1

votes
1

answer
691

Views

this.proxy is undifened EXT JS paging

I have a store : var store = new Ext.data.JsonStore({ root: 'list', fields: rec, totalProperty:'totalCount', pruneModifiedRecords:true }); And want to do paging. my paging toolbar : var paging = new Ext.PagingToolbar({ pageSize : limit, width : 600, store : store, displayInfo :...
ROOT
1

votes
1

answer
782

Views

Azure DocumentDB paging with stored procedure?

However DocumentDB query is not supporting to get count and order by functions. We can write stored procedure to get working the orderby and count functions. DocumentDB supporting paging concept with continuation token. Can We implement a stored procedure to get fully paging concept in terms of get...
satish kumar V
1

votes
1

answer
1.6k

Views

Sorting, Filtering and Paging Restful using Spring

how can i implement a pagination usign Spring? some advice? public class ClienteServiceImpl implements ClienteService { public List findAllClientes(final String ragioneSociale, final String partitaIva, String sortBy, String sortOrder, Integer startResult, Integer maxRows) { Sort sort = null; Specifi...
Silvio Troia
1

votes
2

answer
1.2k

Views

UIScrollView Paging with Animation Completion Handler

I have a UIScrollview with buttons that I use for paging right and left: @IBAction func leftPressed(sender: AnyObject) { self.scrollView!.setContentOffset(CGPointMake(0, 0), animated: true) } I'd like to perform an action after the scrollview has finished the paging animation. Something like: @IBA...
tjlsmith
1

votes
2

answer
1.2k

Views

Paging all results in servicestack ormlite

Is there any way to page the results of an Ormlite query that retrieves all results. From another post on here, I have found the following: var result = db.Select( q => q.Where(predicate).Limit(skip:5, rows:10 )); However, I'd like to query without the 'Where' clause. When omitting this bit of code,...
envio
1

votes
1

answer
447

Views

Intel SGX HeapMaxSize and EPC page swapping

The .edl files contain a HeapMaxSize entry. The SDK User Guide states that this is because Enclave memory is a limited resource. Maximum heap size is set at enclave creation. But doesn't the SGX specification allow EPC page swapping (EPA, EBLOCK, ETRACK, EWB)? Or in a more practical sense: is there...
Freddy
4

votes
0

answer
442

Views

Android pagination boundary callback clarification

I've integrated the pagination component in my app and it's working perfectly fine (almost). I've Database + network model. Database initially has some items which are consumed by LivePagedListBuilder. I observe this LiveData and ultimately feed the list to PagedListAdapter#submitList(PagedList pag...
Yashasvi
6

votes
2

answer
145

Views

Paging library returns empty list initially

I'm using Paging library to paginate a list of items I'm retrieving from my server. Initially, when my fragment is loaded, it returns an empty list. But after changing fragments and going back to that fragment, I can see the list loaded. After debugging I saw that data was actually being fetched, bu...
Saurabh Thorat
2

votes
1

answer
713

Views

NHiberate 3 linq paged query + total count 1 hit to the database

I would like to be able to get the total row count from an NHibernate 3 LINQ query while using paging but with only 1 hit to the database. Is this possible? var query = (from c in Session.Query() where c.State == "CT").Skip(50).Take(10); The total count of customers in the state of CT is what I am n...
Paul Speranza
15

votes
6

answer
11.2k

Views

Algorithm / pseudo-code to create paging links?

Can someome provide code or pseudo-code for how the paging links on StackOverflow are generated? I keep racking my brain but can't think of a decent way to build the dynamic links that always show the 2 pages around the current, plus the first and last. Example: 1 ... 5 6 7 ... 593
Geoff
9

votes
3

answer
714

Views

Problem UIScrollView pagingenabled in IOS 3.1.3

I have set paging property of scroll view to 'scrollview.pagingEnabled = YES'. When tested it seems to be working in IOS 4 and above but it is not working on iOS 3.1.3. Can any one help me with this?
PgmFreek
3

votes
1

answer
682

Views

How to implement Paging in Netsuite?

Netsuite returns only 1000 records at a time, and when i am trying to fetch more than 1000 records then it goes on time out. to resolve this we can use paging mechanism. Does anybody have any experience with paging in NetSuite? Thanks in Advance.
Siddharth
2

votes
1

answer
1.5k

Views

Filtering and paging

Hi people thanks for the help. Im trying to implement a simple pagination that filter, hiding li's by class. The example is here. I'm new in this but with some help the main idea is working. The only problem is that when i click to filter i wanna paginate just the li's in that category. So if i clic...
fecapeluda
2

votes
4

answer
997

Views

Tabbar App with Paging between tabs

I've been struggling for about four days now trying to figure out how to implement the functionality I need. Basically I want to make a tabbar app that you can swipe back and forth between the tabs. Say I have 4 tabs. Would it make any sense just to create a scrollview that's 4 times as wide as t...
user558076
2

votes
1

answer
4.1k

Views

ObjectDataSource paging and extra parameters

I'm using an ObjectDataSource to sort/page/filter as below: The gridview consuming the ObjectDataSource: I want to pass in a number of parameters like the one above into SelectParameters. The method call 'GetCompaniesSubset' executes but on the return I get the following error: ObjectDataSource 'ods...
adamwtiko
2

votes
1

answer
4.8k

Views

jqgrid paging not working …need help

below is my jqgrid code $(function() { jQuery("#jsonmap").jqGrid({ url: 'Handler.ashx', datatype: "json", colNames: ['Inv No', 'Name','Email'], colModel: [{ name: 'id', index: 'id', width: 100}, { name: 'name', index: 'name', width: 200 }, { name: 'email', index: 'email', width: 200}], rowNum: 10,...
user601367
2

votes
2

answer
3k

Views

Paging uiscrollview automatically scrolls to the first page

I've been working on a paging scrollview with several images and a tableview as a table of content. Using the table I can jump to specific pages. I've got everything working except the jump to page method which when I touch the screen brings the scroll view to the first page UNLESS I scroll to the n...
Ahmed
2

votes
1

answer
8.3k

Views

Paging: Basic, Hierarchical, Hashed, and Inverted

With respect to operating systems and page tables, it seems there are 4 general methods to paging and page tables Basic - A single page table which stores the page number and the offset Hierarchical - A multi-tiered table which breaks up the virtual address into multiple parts Hashed - A hashed page...
Bobby S
2

votes
2

answer
627

Views

How to pass additional parameters for paging

I know paging requires start and limit parameters that is passed to the controller... but I also use couple more parameters that needs to be passed... which is 'STATE' and 'ID'... I tried baseParams, params... nothing works... this is my store this.myStore = Ext.create('Ext.data.Store', { scope: thi...
EagleFox
16

votes
4

answer
24.3k

Views

“Incorrect syntax near 'OFFSET'” modift sql comm 2012 to 2008

I'm listing questions with this SELECT q.qTitle, q.qDescription, q.qCreatedOn, u.uCode, u.uFullname, qcat.qcatTitle, q.qId, q.qStatus FROM tblQuestion AS q INNER JOIN tblUser AS u ON q.uId = u.uId INNER JOIN tblQuestionCategory AS qcat ON q.qcatId = qcat.qcatId WHERE (q.qStatus = 1) ORDER BY q....
Tayfun Yaşar
2

votes
1

answer
162

Views

Observing LiveData from Room causes PagedListAdapter to refresh, ViewModel refreshes data also on orientation changes

I'm building an app that uses ArticleBoundaryCallback to init a call to an API, and store the response in Room. I'm also listening to that table using LiveData, and displaying the items in a PagedListAdapter. The problem is that every time new data is inserted in Room's(Article) table, the entire l...
jorjSB
17

votes
1

answer
10.6k

Views

Paging UIScrollView with different page widths

I would like to have a horizontal scrolling UIScrollView with paging enabled. The pages in this scrollview have different widths, so the scrolling distance differs from page to page. The goal is to make a picker for different points in time, e.g.: | Now | Yesterday evening | Last Week | Last M...
liefersfl
17

votes
2

answer
9.8k

Views

Why using hierarchical page tables?

I'm learning the Linux kernel and reading the book The Linux Kernel. Can anybody explain why can't we just use the table which maps directly between logical and physical memory instead of the tree-like multilevel structure? Added: The total number of entries needed is fixed, so I assume that it's mo...
Determinant
1

votes
2

answer
123

Views

Code not working, Sorting MySQL results into pages

Ok so iv got this code which is suppose to bring back all my results from my database and display 5 results per page. At the moment I have 12 results in my database and it is only showing 10, it wont show the 3rd page as there isnt 5 results to display. Here is my code //$_GET['page'] is to get t...
Ben
2

votes
1

answer
4k

Views

jqgrid paging - always shows 0 of 1

I am trying to get paging work on my jqgrid, but it always reads "1 of 0", I am loading data using addRowData to populate data on my grid. for (var i = 0; i
jack
2

votes
1

answer
1.1k

Views

Gridview paging using linq in asp.net

I am retrieving data from sql database. I want to split the records and binding it in three different grids. Everything is working fine before applying paging. I am getting The data source does not support server-side data paging. error Code: DataTable StoreDisplayTypeList = storeDisplayBL.GetStore...
Geeth
2

votes
2

answer
586

Views

When using Paging Library, observer showing list size as zero

I am trying to use paging library with newer versions. I am using volley to fetch my data from network. Whenever I fetch data from network, the data is fetched but when the call goes to observer the list size shown there is zero. I am unsure what I am doing wrong. I am new to android so don't know m...
Matrix
1

votes
2

answer
6.7k

Views

ExtJS paged combo with remote JSON store. Display selected value with paging

I've got an ExtJS combo with remote store, which returns to me data in JSON format. When I select a value on the first page (for example) and then navigate to another page, the combo display selected id, not the value. How can I always display a selected value? Code: Ext.onReady(function() { Ext.d...
colotiline

View additional questions