Implementation of Webpart "Object management buttons" into the Custom Table Transformations

Alena Mikhalchanka asked on August 12, 2014 14:45

Hi, I wanted to create webpart to display and manage the custom table data the same way as it is possible to do on the Kentico Admin/Pages/Custom table data but on live site but without moving Up or Down.

Another way to solve my problem is to use the WebPart "Object management buttons" in transformations together with WebPart "Custom table datalist". This way I like much more. This way supplies me with full necessary functionalities!Can You help me with advice? How it is possible to input WebPart "Object management buttons" into transformation? It is very important to me.

Thank You in advance, Alena

Recent Answers

Brenden Kehren answered on August 13, 2014 00:23

You can look further into the Object management buttons webpart and see what user control is used and then include that in your transformation without an issue. Key is you don't want to use a webpart in your transformation, you want to use a user control.

This would be what you referenced in your transformation:

<cms:CMSObjectManagementButtons ID="objButtons" runat="server" />

You'd then have to set the properties accordingly in the OnInit method like so:

<script runat="server">
protected override void OnInit(EventArgs e) 
  objButtons.ObjectID = Eval("ID");
  objButtons.AnotherProperty = "";
1 votesVote for this answer Mark as a Correct answer

Alena Mikhalchanka answered on August 13, 2014 10:02

Thank You very much!!! It works.

Best regards, Alena

0 votesVote for this answer Mark as a Correct answer

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