Toolbar Extra Final Separator - SharePoint Customization - SharePoint for All - Dell Community

Toolbar Extra Final Separator

Toolbar Extra Final Separator

This question has been answered by DELL-Yi Liao

Hi, I've added, to a Toolbar within a qListView, a Custom Action at position 0. So far, so good.

But whenever I try to add a Separator at position 1 (after my custom action) this duplicates the separator at the end of the toolbar.

Something like

CustomAction | New | ..... | Delete || <-- extra separator

The red one is the one I added at position 1 and the one at the end gets generated, to my knowledge, for no reason.

Any help would be most appreciated.

Thx!

Verified Answer
  • Hello,

    I can reproduce this case. As a workaround, you can try to add some script to modify this element:

    1. Add a HTML Form Web Part into the page;
    2. Edit this web part source;
    3. Add below code into the text editor:

    <script>

    $telerik.$(document).ready(function(){

    $telerik.$('.rmSeparator').last().removeClass('rmSeparator');

    });

    </script>

    1. Save all;

    That script will find the last separator and clear its class.

    Kenny.

All Replies
  • Hello,

    I can reproduce this case. As a workaround, you can try to add some script to modify this element:

    1. Add a HTML Form Web Part into the page;
    2. Edit this web part source;
    3. Add below code into the text editor:

    <script>

    $telerik.$(document).ready(function(){

    $telerik.$('.rmSeparator').last().removeClass('rmSeparator');

    });

    </script>

    1. Save all;

    That script will find the last separator and clear its class.

    Kenny.

  • Kenny, thx for the response.

    I figured some JS would've done the trick, but thought I was doing something wrong

    Thx again