how to set FieldDefault in server side?

  1. #1

    how to set FieldDefault in server side?

    I want to set fielddefault for formpanel in server side. How to do it?

    the following is server side code for create formpanel. how to set FieldDefault for this formpanel in server side. like client side code: <FieldDefaults LabelWidth="190" />
               var fp = new FormPanel()
                {
                    ID = "ff" + docType.DocTypeID.ToString(),
                    Header = false,
                    Frame = true, 
                    AnchorHorizontal = "96%",
                    ShrinkWrap= ShrinkWrap.Both, 
                    Layout = "Form"
    
                };
    Thanks
  2. #2
    Hello
    Not sure I got your question correctly, are you looking for this?
    var fp = new FormPanel()
    		{
    			ID = "ff" + docType.DocTypeID.ToString(),
    			Header = false,
    			Frame = true,
    			AnchorHorizontal = "96%",
    			ShrinkWrap = ShrinkWrap.Both,
    			Layout = "Form",
    			Defaults =
    			{
    				new Parameter("labelWidth","190")
    			}
    		};
    Regards
    Zdenek
  3. #3

    Thanks. It works.

    Thanks. It works.

Similar Threads

  1. Replies: 6
    Last Post: Mar 31, 2015, 9:52 AM
  2. Server-side Render to Create Client-Side Snippets of code (For Handlers)
    By michaeld in forum User Extensions and Plugins
    Replies: 4
    Last Post: Mar 07, 2014, 9:54 AM
  3. Replies: 3
    Last Post: Dec 26, 2011, 1:32 PM
  4. Replies: 1
    Last Post: Dec 01, 2010, 5:14 PM
  5. Replies: 4
    Last Post: Mar 19, 2010, 11:35 AM

Posting Permissions