﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Deriving from WebGridColumn gives javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Deriving-from-WebGridColumn-gives-javascript-error/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Deriving from WebGridColumn gives javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Deriving-from-WebGridColumn-gives-javascript-error/</link><pubDate>Thu, 29 Apr 2010 11:52:47 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Huzefa,&lt;/p&gt;&lt;p&gt;Currently, It is a little hard to guess what kind of error that showed up. It would be better if you could provide us a simple runable sample about how you implementing your custom WebGrid Column. We can try to investigate if the error rised up.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Deriving from WebGridColumn gives javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Deriving-from-WebGridColumn-gives-javascript-error/</link><pubDate>Thu, 29 Apr 2010 09:05:15 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Sorry but this is not what i was looking for..&lt;/p&gt;
&lt;p&gt;I mean i want to replace your WebGridColumn by deriving WebGridColumn into my CustomClass.&lt;/p&gt;
&lt;p&gt;Then i add this Custom Class to Web Grid..&lt;/p&gt;
&lt;p&gt;An example shown below&lt;/p&gt;&lt;pre&gt;public class CustomColumn : WebGridColumn&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//Then in Page i will use like....&lt;br /&gt;protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)&lt;br /&gt;    {&lt;br /&gt;       &lt;br /&gt;        CustomColumn newColumn = new CustomColumn ("NewColumn", "New Column");&lt;br /&gt;&lt;br /&gt;        newColumn.Width = new System.Web.UI.WebControls.Unit(200, UnitType.Pixel);&lt;br /&gt;        newColumn.Position = 1;&lt;br /&gt;        newColumn.ColumnType = ColumnType.Textbox;&lt;br /&gt;        WebGrid1.RootTable.Columns.Add(newColumn);&lt;br /&gt;    }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When i do this, it does not give me any compile time error but when the control is rendered then it gets errored out.&lt;/p&gt;
&lt;p&gt;How can i create my own GridColumn deriving from WebGridColumn?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Huzefa&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Deriving from WebGridColumn gives javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Deriving-from-WebGridColumn-gives-javascript-error/</link><pubDate>Thu, 29 Apr 2010 04:10:31 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Huzefa,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Please let me know if this is not what you are looking for. I have created a simple WebGrid and add them with a custom column template. In this column, I attached them with an ASP Label, which you can change it with any other control.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Kindly try and give me a feedback. I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Deriving from WebGridColumn gives javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Deriving-from-WebGridColumn-gives-javascript-error/</link><pubDate>Wed, 28 Apr 2010 09:24:55 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have created my own CustomWebGrid control deriving from WebGrid control. Now i try to create my own GridColumn by deriving a class from WebGridColumn.&lt;/p&gt;
&lt;p&gt;But when i add my custom created column into RootTable.Columns.Add() then when the column is rendered onto the client i get some weird javascript error saying it does not recognize the CustomWebGridColumn.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Can you please tell me why this is hapenning and what can i do to override this.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Huzefa&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>