Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SPField.FieldRenderingControl equivalent to CSOM or JSOM

$
0
0

Using the Microsoft.SharePoint, I can render SP Fields in custom application page using the below server side code. 

BaseFieldControl editControl = field.FieldRenderingControl;
editControl.ID = field.Id.ToString()                
editControl.ControlMode = SPControlMode.New;
editControl.ListId = list.ID;
editControl.FieldName = field.InternalName;

pnlFields.Controls.Add(editControl);

Now, we're converting our farm solutions to Addins/SPFx. I cannot find an equivalent of the above code via CSOM/JSOM. What is the way to render SP Fields in a custom page via client side programatically (Addins/SPFx) and How?

This will be used in a custom Batch Edit page that will dynamically render the SP Fields visible in the default editform of the list. And the user can input their item updates on the Batch Edit page (just like entering inputs on the default edit form of the list). 

Because I can only see samples about CSR and File Customizer on customizing the behaviors of fields (when rendered on newform/editform/viewform), but not actually rendering the field on a different page.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>