Dynamically add widget properties through code behind

Vadlamani . asked on September 29, 2020 10:01

Hello, For dynamic content, we can use page types or custom tables in portal engine. Can I have those inputs provided in Widget's property instead using page types or custom tables?

Like, on click of "Add" , I can input data ?

Recent Answers


David te Kloese answered on September 29, 2020 10:30

Hi,

So if I understand correctly you want to directly create an item (e.g. page or custom table item) when inserting them. Without moving away in the editor interface?

Out of the box there is no such thing. However you can create you own control that isn't even that complicated.

See how to create a custom control: docs.kentico.com/.../example-developing-custom-form-controls

and the API examples on how to create custom table items directly from code: docs.kentico.com/...#Customtabledata-Addingdatarecordstoacustomtable

0 votesVote for this answer Mark as a Correct answer

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