Hi,
I want to use the paging feature of asp.net ultra web grid.But I don't find any client side paging.When I use paging on grid for each new page click it makes server event/ajax event.Which is very expensive in my application.Can you tell me do I have such feature or can I implement with java script on client side.
Thanks in advance,
Shravan
Did you try following two properties to get client side paging?
ultraWebGrid.Browser = BrowserLevel.Xml;
ultraWebGrid.DisplayLayout.LoadOnDemand =
LoadOnDemand.Xml;
ojasmaru,
This configuration turns on the grid's AJAX functionality. When this is done, requests to change pages in the grid are still performed on the server. The difference is that the request is sent via AJAX, rather than through a postback.
Hello Vince,
I am using UltrawebGrid for the first time. After using those properties I thought the paging is happening on client side. It was after reading your post I actually placed a break point in InitializeDataSource event and realized that yes paging happens on server side. It’s just the calls are passed AJAX way.
Actually I am doing time consuming operations in InitializeDataSource event to get the data and bind it to grid. Now after your post I have realized that even InitializeDataSource is fired when I click on page numbers. How can I stop InitializeDataSource from getting fired or how can i identify that the InitializeDataSource fired due to paging and not actual loading of my grid or share point webpart.
Regards,
Ojas
Ojas,
If the time-consuming operations are necessary to getting data for the grid, you'll need to do that logic within InitializeDataSource for the grid to handle paging correctly. This is because the grid re-binds to its data source as part of changing pages.
Hi McDonald,
I am using custom paging. I have clear button on which i clear search criteria and data in ultrawebgrid.
I want to clear page numbers on footer of grid. How I can do it from client side?
Thanks in advance
Sandip
I have custom paging working for infragistics web v14.2.
Here are the functions I needed:
function updatePaging() {
$find('<%=yourgrid.clientid%>').get_behaviors().get_paging().updatePager(
getPageSize(),
getPageIndex(),
getPageCount())
}
function getSequencePageCount() {
var count = getResultsCount() / getPageSize()
if (count <= 0=) {
count = cont + 1
return count
You'll need to create your own functions for keeping up with the current page, page size, and page count and update them on the client side binding event