Welcome Guest Search | Active Topics | Sign In | Register

Grid Custom Column ClientSideGetText Options
DH
Posted: Tuesday, December 4, 2007 9:37:42 PM
Rank: Member
Groups: Member

Joined: 11/19/2007
Posts: 25
EO.web.dll v5.0.11.2 Asp.net 2

I'm having trouble using a custom column ClientSideGetText. I have a grid that works until I add the custom column and try to use the client function. I am using your example javascript function which should return "Excellent" defined in the page head.

Here is the column definition:
<eo:CustomColumn ClientSideGetText="on_column_gettext" DataField="cpasswd" HeaderText="Set Password">
</eo:CustomColumn>

Here is the sql for the OleDbDataReader that I am using:
Grid1.DataSource = this.user.GetReader("SELECT UserId, UserName, FirstName, LastName, '5' as cpasswd FROM USERS");

It works if I use all StaticColumn.

Here is the stack trace:
Error: 11:20:14 PM Tuesday, December 04, 2007
http://localhost:2210/Admin/Default.aspx
Object reference not set to an instance of an object.
at EO.Web.CustomColumn.get_EditorInstance()
at EO.Web.CustomColumn.a()
at EO.Web.Grid.a(EventArgs A_0)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-------------------------------
eo_support
Posted: Wednesday, December 5, 2007 5:47:35 AM
Rank: Administration
Groups: Administration

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

Try to give the column an EditorTemplate like the sample does. Currently CustomColumn has to have editor template. We will change it so that it can function just fine without one.

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.