Display an image in image control

  1. #1

    Display an image in image control

    How to display an image in image control sending you the url from an entity model

    I have this code:
    @model BE.Content 
    @(
        Html.X().Window()
        .ID("winPreviewImage")
        .Title("Preview "+ (string)Model.contentName)
        .Icon(Icon.Eye)
        .Closable(true)
        .Resizable(false)
        .Draggable(false)
        .Layout(LayoutType.Fit)
        .Modal(true)   
        .Width(600)      
        .Height(400)
        .BodyPadding(5)     
        .Items
        (
            Html.X().FormPanel()
            .ID("pnlPreviewImage")
            .BodyStyle("background-color: transparent;")
            .DefaultAnchor("100%")
            .BodyPadding(5)
            .Border(false)
            .Items
            (                        
                Html.X().Image()            
                .ID("Image")   
                .ImageUrl("")             
                .Width(500)
                .Height(300)                                                                  
            )
        )
    )
    I want something like this

     Html.X().HtmlEditorFor(m => m.contentText)
                .ID("txtContentText")
                .EscapeValue(true)
                .FieldLabel("Content")
    Last edited by Juanma; Jan 15, 2013 at 3:43 PM.

Similar Threads

  1. Display image in GridPanel AND FormPanel
    By nazmulrockon in forum 2.x Help
    Replies: 4
    Last Post: May 09, 2014, 2:32 AM
  2. Replies: 1
    Last Post: May 16, 2012, 12:57 PM
  3. [CLOSED] ext:Image - How I can show a menu when click in ext:Image?
    By supera in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 10, 2012, 8:56 PM
  4. Replies: 3
    Last Post: Nov 06, 2009, 10:46 AM
  5. Replies: 0
    Last Post: Oct 21, 2009, 6:42 PM

Posting Permissions