Welcome Guest Search | Active Topics | Sign In | Register

Problems with grid Options
Paul
Posted: Monday, July 12, 2010 10:42:20 AM
Rank: Newbie
Groups: Member

Joined: 6/10/2010
Posts: 9
Grid will not render in design mode, error "An error occured while rendering the control. Object reference is not set to an instance of an object".

This happens as soon as you add a buttoncolumn to the grid.

Also, grid will only paginate in client mode. When set to server mode grid simply re-draws 1st page.
eo_support
Posted: Monday, July 12, 2010 10:46:28 AM
Rank: Administration
Groups: Administration

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

Please confirm whether your first issue (design time rendering issue) is on Visual Web Developer 2008.

Your second issue can be normal. You must handle the Grid's PageIndexChanged event to repopulate the Grid when the Grid is in server mode. The purpose of the server mode is to avoid loading all the data all together like the client mode. Thus in server mode the Grid only loads a single page of data. As a result, you must reload it when the page index changes because it does not know what the next page's data will be.

Thanks!
Paul
Posted: Monday, July 12, 2010 10:53:18 AM
Rank: Newbie
Groups: Member

Joined: 6/10/2010
Posts: 9
The first issue is in Visual Web Developer 2008, it is a clean install with no previous versions of Eo.Web.Dll installed.

So let me get this straight: if I use client mode I lose the ability to fire the itemcommand event, but if I use server mode I lose the ability to paginate the grid?
eo_support
Posted: Monday, July 12, 2010 11:01:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Paul wrote:
The first issue is in Visual Web Developer 2008, it is a clean install with no previous versions of Eo.Web.Dll installed.

Thanks for the additional information. We will look into it and get back to you as soon as possible.

Paul wrote:
So let me get this straight: if I use client mode I lose the ability to fire the itemcommand event, but if I use server mode I lose the ability to paginate the grid?

No. Both statements are wrong. The difference is whether the Grid does it automatically or by default for you or not. The Grid has different default behaviors in different mode.

You can trigger ItemCommand event in client mode. The following sample is in client mode and it raises and handle ItemCommand event:

http://demo.essentialobjects.com/Demos/Grid/Features/ItemCommand%20Server%20Event/Demo.aspx

You can also do paging in server mode (otherwise server mode will be completely useless). This sample shows you how to do paging in server mode:

http://demo.essentialobjects.com/Demos/Grid/Features/Server%20Running%20Mode/Demo.aspx

Hope this helps.

Thanks
Paul
Posted: Monday, July 12, 2010 11:31:35 AM
Rank: Newbie
Groups: Member

Joined: 6/10/2010
Posts: 9
Yes, I've tried using the client side javascript as used in the demo. It doesn't do anything, the script never fires.

eo_support
Posted: Monday, July 12, 2010 11:46:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Paul wrote:
Yes, I've tried using the client side javascript as used in the demo. It doesn't do anything, the script never fires.


We neither troubleshoot user code nor code for our users, so if the sample works fine and your code does not, then you will need to work it out by yourself. I would recommend you to start by comparing your code with the sample code to see what is different.

Thanks
Paul
Posted: Monday, July 12, 2010 11:49:06 AM
Rank: Newbie
Groups: Member

Joined: 6/10/2010
Posts: 9
I've worked it out anyway

eo_support
Posted: Tuesday, July 13, 2010 9:30:25 AM
Rank: Administration
Groups: Administration

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

We have posted a new build that should fix the "An error occured while rendering the control. Object reference is not set to an instance of an object" problem. Please see your private message for download location.

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.