iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
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.
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.
Can you please tell me why this is hapenning and what can i do to override this.
Thanks,
Huzefa
Hi Huzefa,
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.
Kindly try and give me a feedback. I hope it helps. Thank you and have a nice day.
Best Regards,
Andi santoso
Sorry but this is not what i was looking for..
I mean i want to replace your WebGridColumn by deriving WebGridColumn into my CustomClass.
Then i add this Custom Class to Web Grid..
An example shown below
public class CustomColumn : WebGridColumn{}//Then in Page i will use like....protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e) { CustomColumn newColumn = new CustomColumn ("NewColumn", "New Column"); newColumn.Width = new System.Web.UI.WebControls.Unit(200, UnitType.Pixel); newColumn.Position = 1; newColumn.ColumnType = ColumnType.Textbox; WebGrid1.RootTable.Columns.Add(newColumn); }
When i do this, it does not give me any compile time error but when the control is rendered then it gets errored out.
How can i create my own GridColumn deriving from WebGridColumn?
Hello Huzefa,
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.
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname