Custom table repeater with edit and delete functionality

Lokendra Jain asked on March 24, 2017 10:05

Hi I am having few custom tables. I have submitted my data using custom table form webpart. Displaying the list of data in custom table repeater webpart. I have added transformation into the custom table repeater webpart to show the list with edit and delete buttons. I am unable to understand how to perform the edit and delete of custom table item using these edit and delete buttons.

Please suggest me.

Thanks

Lokendra Jain

Correct Answer

Lokendra Jain answered on March 24, 2017 15:35

I have checked the event log and its showing below message.

I have imported this webpart from site/import. the webpart is showing in the cms but not exists physically in the custom table folder.

Message: The file '/CMSWebParts/CustomTables/CustomTableInputEdit.ascx' does not exist.

Exception type: System.Web.HttpException Stack trace: at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at CMS.Base.Web.UI.ControlDefinition.Load(Page page) at CMS.Base.Web.UI.ControlsExtensions.LoadUserControl(Page page, ControlDefinition control) at CMS.PortalEngine.Web.UI.CMSWebPartZone.LoadWebPart(Control container, CMSWebPartZone zone, WebPartInstance part, Boolean reloadData, Boolean isVariant)

0 votesVote for this answer Unmark Correct answer

Recent Answers


Peter Mogilnitski answered on March 24, 2017 11:16 (last edited on March 24, 2017 11:16)

Take a look at Custom table API, but . I guess you are looking for functionality that is already implemented in Admin\Custom Tables\Table Name\Data i.e. UniGrid. Take a look at Advanced UniGrid example, but instead of UserInfoProvider use CustomTableInfoProvider.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 24, 2017 13:47

On the Marketplace there is a webpart which allows you to perform inserts AND updates/edits. You could take that and add the delete functionality to it as well.

0 votesVote for this answer Mark as a Correct answer

Lokendra Jain answered on March 24, 2017 15:13 (last edited on March 24, 2017 15:13)

Hi Brenden

I have imported the webpart and set all the required properties. Its showing error while loading the page.

I am currently using Kentico CMS version 10. does this webpart supports kentico cms 10.0.

[Error loading the WebPart 'CustomTableInputEdit' of type 'CustomTableInputEdit']

Thanks

Lokendra Jain

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 24, 2017 15:15

We did upgrade it for v10. You might look and check your event log for the specific error.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 24, 2017 15:37

The problem is you didn't import the files. In the .zip there are specific instruction on how to import the webpart. Most specifically, when you get to the second import screen, choose Import files option. This will copy the files needed for the webpart to run correctly.

0 votesVote for this answer Mark as a Correct answer

Lokendra Jain answered on August 3, 2017 07:08

Hello Brenden Kehren,

Thanks for your suggestion it working fine for me.

thanks again

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.