Widget Validation

Posted by Community Admin on 03-Aug-2018 21:50

Widget Validation

All Replies

Posted by Community Admin on 21-Oct-2010 00:00

Hello,


If I have a form with validators on the default view for my widget, I'm unable to publish from the backend page editor (causes validation, so it won't submit).  Is there a way to code my widget so that it doesn't show the form when I'm in the backend page editor?

Thanks,
Matt

Posted by Community Admin on 21-Oct-2010 00:00

Hi Matt,

There is an extension that you can use IsDesignMode

if (this.IsDesignMode())
    this.Controls.Clear();
    this.Controls.Add(new LiteralControl("You cannot preview this control in Design mode));


All the best,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed