|
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.
|
|
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!
|
|
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?
|
|
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.aspxYou 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.aspxHope this helps. Thanks
|
|
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.
|
|
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
|
|
Rank: Newbie Groups: Member
Joined: 6/10/2010 Posts: 9
|
I've worked it out anyway
|
|
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!
|
|