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
I'm using the
and, a template for a column:
This works great for all the rows in the grid, except the New Row. The New Row (at the top of the grid) doesn't load the template. It defaults to the standard checkbox. How do I get the New Row to use the template?
regards,
David Parkin
Hi David,
Attached is a simple sample using Northwind database under your scenario. However, in here, I have created a class object which created a check box object.
So before you run the project, please ensure to copy the .cs file into app_code folder in your project. I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
In current build of WebGrid 7, it is possible to add ASP.NET server controls to the WebGridCell using Template Column Type. When using the Template Column Type, you can put any server side controls inside the CellTemplate property of the WebGridColumn.
Editing (means, both edit or add new row) is not affected with Templated Column. In order to have custom edit type, you can use your favorite editing control and “hook” it up into WebGrid. This great and powerful feature will allow you to use virtually any types of controls as WebGrid’s EditType, whether it is an ASP.NET Server Control or a DHTML Client Control.
For more detail information about this ‘Custom Editor Open Architecture’, please check on WebGrid’s documentation in ‘Custom Editor Open Architecture’ topic.
Once the custom edit type is implemented, you can simply set the value of ‘NewRowEditType’ property to “SameAsEditType” in order to have WebGrid uses custom edit type both on in-line editing or add-new row.
Hope this helps.
Yudi,
I am setting
bt.ColumnName = ColumnName;
bt.KeyColumnName = KeyColumn;
I neglected to mention that.
Why doesn't it work?
Attached is a screen shot of the results.
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