Try Now
More in this section

Forums / Developing with Sitefinity / How to create custom property of a Custom Form Controls

How to create custom property of a Custom Form Controls

2 posts, 0 answered
  1. Ruchira
    Ruchira avatar
    1 posts
    05 Jul 2014
    23 Jul 2014
    Link to this post


    I have developed one custom form widget with designer for file Upload and submit button controls.

    I need to introduce custom  property like MinFileSize/MaxFileSize for my widget to restrict the file size range.

    I am able to get the properties in my Edit Widget Window but it is not reflacting to the code behing.I need to put the server side validation  for the Size but I am not able to get the entered value persist at codebehind.

    Here I hv attached some file for referance.

    Please help me out on this .

    I am going to demonstrate this app to the client to purchase licence version for sitefinity.




  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    17 Oct 2016
    28 Jul 2014
    Link to this post
    Hello Ruchira,

    This functionality is available out-of-the-box in the File upload form field.

    From other hand, please check if the values of the properties could be get on the widget's initialize controls and if the values are saved correctly in the designer.

    If this do not helps, please attache your widget with the designer in order to test and inspect it.

    Svetoslav Manchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered