[CLOSED] Dynamic Hyperlink adding HTML Line break after

  1. #1

    [CLOSED] Dynamic Hyperlink adding HTML Line break after

    Hi,
    I'm adding hyperlinks dyamically to a button group using:

    
                                l = new Ext.Net.HyperLink();
                                l.NavigateUrl = string.Format("/Workflow.aspx?soeId={0}", w.WorkflowSoeId);
                                l.Text = string.Format("{0}-{1}", w.Title, w.StatusName);
                                l.ToolTips.Add(new ToolTip(new ToolTip.Config() { Title = " More Information", Html = string.Format("Due Date:  {0}<br/> New/Update:  {1}", w.DueDate, (w.Repetition) ? "Update" : "New") }));
    
                                l.Render(this.btnGrpWrk, RenderMode.AddTo);
    I'd like to be able to add a <BR> after each hyperlink, how can I do this?
  2. #2

    RE: [CLOSED] Dynamic Hyperlink adding HTML Line break after

    Hi,

    As I see you use AddTo mode. It is mean that you use layout. Layout cannot contains br tags. Thereforefore use RowLayout (or VBoxLayout) inside container which contains hyperlinks
  3. #3

    RE: [CLOSED] Dynamic Hyperlink adding HTML Line break after

    You can also just style the link to have display:block.

    var linkControl = new Ext.Net.LinkButton() {
                        Text = "LinkText",
                        StyleSpec="display:block;padding-bottom:5px;"
                    };

Similar Threads

  1. Replies: 12
    Last Post: Sep 20, 2011, 2:33 PM
  2. [CLOSED] Adding custom html attribute
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 30, 2011, 12:25 AM
  3. Adding a hyperlink to Xtemplate
    By GolchK in forum 1.x Help
    Replies: 0
    Last Post: Nov 02, 2009, 12:52 PM
  4. [CLOSED] no line break in text area
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 07, 2009, 4:53 AM
  5. Replies: 21
    Last Post: Jun 20, 2008, 2:50 PM

Posting Permissions