Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > 'CMS.SiteProvider.CustomTableItem' does not contain a constructor that takes 2 View modes: 
User avatar
Member
Member
mauricio-thewebsitemarketinggroup.com - 3/25/2013 11:59:49 PM
   
'CMS.SiteProvider.CustomTableItem' does not contain a constructor that takes 2
I am having the following problem
"'CMS.SiteProvider.CustomTableItem' does not contain a constructor that takes 2 arguments
Stack Trace: "

I have Kentico v7.0.26 and I am following the api to build a filter:

http://devnet.kentico.com/docs/7_0rc/devguide/index.html?custom_tables_api_examples_managing_custom_table_data.htm

MY CODE
// Create object from DataRow
// Loop through the individual items
....
foreach (DataRow customTableItemDr in customTableItems.Tables[0].Rows)
{
// Create object from DataRow
CustomTableItem modifyCustomTableItem = new CustomTableItem(customTableItemDr, customTableClassName);
.....

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 3/29/2013 6:59:49 AM
   
RE:'CMS.SiteProvider.CustomTableItem' does not contain a constructor that takes 2
Hello Mauricio,

Regrettably, this seems to be a bug in the Developers Guide. I'm very sorry for this inconvenience. We will try fix it in the short time. Thank you for letting us know about this issue.

Best regards,
Martin Danko

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 3/29/2013 8:08:22 AM
   
RE:'CMS.SiteProvider.CustomTableItem' does not contain a constructor that takes 2
That documentation is for v7RC and not the final version. The final version documentation has the correct syntax.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 3/29/2013 8:20:19 AM
   
RE:'CMS.SiteProvider.CustomTableItem' does not contain a constructor that takes 2
Hi FroggEye,

Yes, you're right... I didn't noticed that in the documentation's link is RC. So everything is ok in that case. Have a nice Easter weekend guys!

Best regards,
Martin Danko

User avatar
Member
Member
mauricio-thewebsitemarketinggroup.com - 4/2/2013 5:42:49 PM
   
RE:'CMS.SiteProvider.CustomTableItem' does not contain a constructor that takes 2
Thank you now it is working