Welcome Guest Search | Active Topics | Sign In | Register

Inhibit or hide the paging footer in grid Options
Camarate
Posted: Thursday, September 2, 2010 8:45:51 AM
Rank: Advanced Member
Groups: Member

Joined: 9/2/2010
Posts: 120
Hi All,

In a grid control to get handle the button column click event in server side I must set the RunningMode parameter to Server, right? But, when I set the RunningMode parameter, appear a footer in the grid to data paging.

How do I inhibit or hide this footer?

Regards, Camarate
eo_support
Posted: Thursday, September 2, 2010 8:56:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I assume you meant the pager. RunningMode and pager are not directly related. You can turn on/off pager by setting AllowPaging to true/false.

That being said, one of the most important reason to set RunningMode to Server is because there are too much data to be displayed at once so you want to do paging on the server side (the Grid can do paging for you on the client side all data has to be transferred to the client first, which is not practically when there are a lot of data).

You do not have to set RunningMode to server if you just want server side ButtonColumn click event. You can set RunningMode to Client, then handle the event on the client side with JavaScript but calls the following function in your JavaScript handler:

http://doc.essentialobjects.com/library/1/jsdoc.public.grid.raiseitemcommandevent.aspx

You can start with this sample:

http://demo.essentialobjects.com/Demos/Grid/Features/Button%20Column/Demo.aspx

The code will be something like this:

Code: JavaScript
function OnItemCommand(grid, itemIndex, colIndex, commandName)
{
    grid.raiseItemCommandEvent(itemIndex, "whatever");
}


The second parameter is a value that you can pass to your server side code. It will appear as the "CommandName" of the event argument.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.