Sladescross's Blog

Blogging about Sharepoint related stuff

About July 4, 2009

I am a developer specialising in Sharepoint. 

Working with Sharepoint means a truck load of other software that you need to install or configure.

This blog is an aide memoire for the things that need doing and some of my experiences from the field.

And I hope it helps you as well!


2 Responses to “About”

  1. Shayne Judkins Says:

    Hi, you have some great advice on your site. I was hoping I might trouble you for a push in the right direction?

    I have a SharePoint List that has about 60 fields in it. If I pushed this application out using the default Add/Edit SharePoint List Forms (and Rendering Templates), the users would hate it. The default forms use a rendering template that basically lays out all the list fields, one per (HTML) Row. Within that Row there are two (HTML) columns. The first one contains the “Label” for the field, and the second (HTML) column is the actual editor for the “FormField” (Text Box or whatever). Because of the number of fields in the list, the user would have to scroll several pages just to get to the bottom.

    I am trying to figure out how to write a template or use some other approach, but I would rather use OutOfTheBox SharePoint controls if possible. (I am an ASP .Net Developer and have written several applications. So,I thought about creating a regular ASP “CRUD” application using FormView/GridView bound to the SharePoint List, but is that EVEN possible?)

    The solution I had come up with is to use a Custom Field Type with two Cutom Property Variables for each of these fields. The Custom Property Variables (Zone and Order) would allow the administrators of the “application” to control where they want these fields to appear on the Add and Edit forms. The Zone Property can contain one of three values: “Left”, “Middle” or “Right”. The Order would just contain the order to sort the fields in, within their “zone”. Obviously, the “zone” would indicate where on the form the field would appear (left, middle or right). I thought I might be able to use three Divs and render the apropriate List Columns in the appropriate DIVS. Or, following the default rendering template, I could possibly use 6 (HTML) Columns instead of 2.

    I quickly figured out how to make a new Field Type with Custom Properties (I used the Property Schema element in the XML definition, even though Microsoft says NOT to use that in SharePoint 2010, it was just so easy and I couldn’t figure out how to add them otherwise??????).

    For the last week, I have tried to figure out how to actually implement my idea. I thought about going the ASP .Net route, but realized I would need quite a bit of knowledge about the CSS, how to wire up to a SharePoint Data Source, etc in order to make the application “look, behave and feel” like a real SharePoint Application. I want the users of this application to be able to add new fields dynamically, so I can’t put any static field references in these forms. Next, I started looking at modifying the default forms. I have read about the Rendering Templates and the ListFieldIterator (and the new Content Iterator), but I can’t seem to pull it all together and create an actual solution. The part that is throwing me off is how to query and render three different “sets” of fields at once (since the rendering is going to happen from “top to bottom”).

    Does this make senses? If you have advice, samples, etc or can give me a good puch in the right direction, I would be very grateful!

    Shayne Judkins

  2. sladescross Says:

    If you need to replace the default ListView web part and so on and still be integrated into the Sharepoint list presentation in Sharepoint then I think the best approach is to use a content type which then lets you specifiy your own add/edit ASP.NET form which can be written using Sharepoint web controls.

    Otherwise I have seen Telerik controls for Sharepoint used effectively for the grid functionality.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 63 other followers