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) -------------------------------
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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
|