Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Event Handlers for updating web part properties View modes: 
User avatar
Member
Member
zen.dev01-yahoo - 2/17/2012 3:03:53 AM
   
Event Handlers for updating web part properties
Hi,

I would like to know if this is possible. I created a webpart in CMS SiteManager with a textbox for entering ProductID.

As users are adding/editing the webpart in CMS Desk, upon clicking Ok / Apply at the webpart properties page, can i catch the click event and perform a validation on the ProductID textbox to see if it exists?

Also, how much can i customize the form controls in web part properties page? I am thinking of a category dropdown which onSelectionChanged then populates a product dropdown.


Cheers,
Z

User avatar
Member
Member
kentico_michal - 2/17/2012 4:11:44 AM
   
RE:Event Handlers for updating web part properties
Hello,

I would recommend you to create a custom form control in which you can perform custom validation according to your requirements. You can then use this control for the ProductID field instead of the standard textbox. For more information, I would like to point you to the following section of Developer's guide: Developing form controls.

Best regards,
Michal Legen