Welcome Guest Search | Active Topics | Sign In | Register

Grid Question Options
Martin Bell
Posted: Friday, December 5, 2008 3:49:12 AM
Rank: Newbie
Groups: Member

Joined: 11/28/2008
Posts: 1
Hi,
I'm new to this and was wondering if you have any further documentation on your controls other than the live demo ones.

What I'm trying to do is populate a second grid based on the selection made in a first grid.

The first grid would contain an acount number and customer name.

the second would display all current open orders for the selection.

Have you any examples or tips on how to populate one grid from another.

Any help would be greatly appreciated.
eo_support
Posted: Friday, December 5, 2008 5:32:19 AM
Rank: Administration
Groups: Administration

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

You can find the online version of the production documentation here:

http://www.essentialobjects.com/ViewDoc.aspx

The same contents are also offline as a .chm file on your local machine. You can go to Start -> All Programs -> EO.Web Controls 2008 -> EO.Web Controls for ASP.NET 1.1/2.0 -> Documentation.

In order to populate a second grid, you will need to:

1. Respond when an item is selected in the first Grid. There are a number of ways to do this. One way is to handle the Grid's ClientSideOnItemSelected with JavaScript. You can find a sample on how to use this feature at here:

http://www.essentialobjects.com/Demo/Default.aspx?path=Grid\_i1\_i11

2. The above sample changes the innerHTML of a DIV element to display some information when an item is selected. You will need to change that to populate the second Grid. Populating the second Grid is no different than the populating the first one, except that you must populate it on the server side, while your ClientSideOnItemSelected handler is on the client side. Thus you need to use a CallbackPanel to trigger an AJAX call to the server side. You would do this by calling eo_Callback global function. The whole sample project uses this method to load demos. For example, when you select a node in the TreeView on the left side, it calls eo_Callback to trigger an AJAX callback to the server, which then load the corresponding demo on the right side;

For detailed information about populating the Grid or triggering an AJAX Callback, please refer to the documentation for those two controls. You will also want to go over this topic if you are not already familiar with our client side JavaScript interface:

http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.html

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.