More in this section
Forums / Developing with Sitefinity / MVC Widget Inline Editing "Add", "Delete" Sitefinity 10 with Feather

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

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. Bryan
    Bryan avatar
    0 posts
    Registered:
    27 Jul 2017
    04 Jan
    Link to this post

    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>

    }

  2. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    04 Jan
    Link to this post

    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

     

  3. Bryan
    Bryan avatar
    0 posts
    Registered:
    27 Jul 2017
    04 Jan in reply to Jonathan
    Link to this post

    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

    https://www.bing.com/videos/search?q=sitefinity+inline+editing&&view=detail&mid=C7D6D4EC9A688297A898C7D6D4EC9A688297A898&FORM=VRDGAR

  4. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    04 Jan in reply to Bryan
    Link to this post
    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) 
4 posts, 0 answered