MVC Widget Inline Editing "Add", "Delete"

Posted by Community Admin on 04-Aug-2018 15:48

MVC Widget Inline Editing "Add", "Delete" Sitefinity 10 with Feather

All Replies

Posted by Community Admin on 04-Jan-2018 00:00

I have inline editing enabled for site.

I am able to perform inline editing for elements.

However, I see no ability to add an item i.e. list item content block on the fly.

So for example

1. I have a list widget

2. I can successfully perform inline editing

3. There is NO Add button to add a new list item

4. There is NO Delete button to Delete list item

I know there is the IsInlineEditingMode attribute and since this if feather can I do something like the following etc

@if(SystemManager.IsInlineEditingMode)

// Output some button to allow adding. 
   <button>Add</button>

Posted by Community Admin on 04-Jan-2018 00:00

You are correct the inline editing does not have the features to add/remove items. https://docs.sitefinity.com/inline-editing

As for adding the feature I think you are the right track.  Once you have the button you will need to create a 'form' maybe in a modal? Then I would use the oData web services to create the item or potential delete.  https://docs.sitefinity.com/create-a-web-service

 

Posted by Community Admin on 04-Jan-2018 00:00

Thanks for reply. So I assume this is a little false advertising in this video. It does not mention these editing tools are custom. Or am I missing something

www.bing.com/.../search

Posted by Community Admin on 04-Jan-2018 00:00

The video is quite dated 5+ years old also on version 5.0 of Sitefinity.  I've been working with Sitefinity since v5 and don't ever recall seeing the add/delete options with inline editing.   Also according to sitefinity.com/timeline inline editing did not come out till 6.2, so my guess is that was custom work done by someone (adding/deleting) 

This thread is closed