Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • George 28 posts 71 karma points
    Nov 22, 2011 @ 06:50
    George
    0

    Creating a read only / disabled UltimatePicker dropdown

    My site has a document type with a set of data all set programmatically. No user should never be able to edit the data for a document of this type in the backend.

    This is easily accomplished for "text" fields - I've created a new datatype "textstring (uneditable)" which renders the "no edit" control.

    However one of the fields is an UltimatePicker. How can I configure this field so that it isn't user editable?

    I looked through the UltimatePicker source, and the OnInit() of ultimatePickerDataEditor.cs creates a DropDownList for rendering. I think all I would have to do is mark that dropdown as disabled, so that the resulting HTML got the "disabled" attribute set properly.

    I don't want to write a completely new datatype for this when that would mean reimplementing everything that UltimatePicker already does.

    Is there an easy way to extend the UltimatePicker source so that I could have a readonly UltimatePicker datatype?

Please Sign in or register to post replies

Write your reply to:

Draft