Exemplo n.º 1
0
 private JTClientField RenderField(SPField field) {
     JTClientField f = new JTClientField();
     f.Id = field.Id;
     TableRow tr = new TableRow();
     _td = new TableCell();
     _td.Controls.Add(new LiteralControl(field.Title));
     tr.Controls.Add(_td);
     _td = new TableCell();
     _td.Controls.Add(new LiteralControl(field.Description + "<br />"));
     switch (field.TypeAsString) {
         default:
             RenderFieldInner(field.TypeAsString, field);
             break;
     }
     tr.Controls.Add(_td);
     _tbl.Rows.Add(tr);
     return f;
 }
Exemplo n.º 2
0
        private JTClientField RenderField(SPField field)
        {
            JTClientField f = new JTClientField();

            f.Id = field.Id;
            TableRow tr = new TableRow();

            _td = new TableCell();
            _td.Controls.Add(new LiteralControl(field.Title));
            tr.Controls.Add(_td);
            _td = new TableCell();
            _td.Controls.Add(new LiteralControl(field.Description + "<br />"));
            switch (field.TypeAsString)
            {
            default:
                RenderFieldInner(field.TypeAsString, field);
                break;
            }
            tr.Controls.Add(_td);
            _tbl.Rows.Add(tr);
            return(f);
        }