We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

namespace name 'RadialBadge' and RadialMenuSlider

Hi Syncfusion Team

I'm try to implement the code for radial menu, but getting this error; can you help me ; full code that i using as attach


  • The type or namespace name 'RadialBadge' could not be found (are you missing a using directive or an assembly reference?)

    1. Syncfusion.JavaScript.Models.RadialBadge val = new RadialBadge();
  • The type or namespace name 'RadialMenuSlider' could not be found (are you missing a using directive or an assembly reference?)

    1. Syncfusion.JavaScript.Models.RadialMenuSlider stroke = new RadialMenuSlider();

  • Attachment: radialmenufeature_fd051d8.rar

    3 Replies

    SS Selvamani Sankarappan Syncfusion Team September 18, 2017 10:22 AM UTC

    Hi Haryzad, 
     
    Thanks for contacting Syncfusion support. 
     
    We have checked your reported error and we were able to reproduce it. You need to import the namespace as like below code: 
     
    @{ 
            Syncfusion.JavaScript.Models.RadialBadge val = new Syncfusion.JavaScript.Models.RadialBadge(); 
            val.Enabled = true; 
            val.Value = 2; 
            Syncfusion.JavaScript.Models.RadialMenuSlider stroke = new Syncfusion.JavaScript.Models.RadialMenuSlider(); 
            stroke.StrokeWidth = 1; 
            stroke.Ticks = new List<double> { 0, 2, 4, 6, 8, 10, 12, 14 }; 
        } 
     
    Note:  ASP .Net core support for radial menu is provided from 15.3.0.26 version only. 
     
    Refer to the following sample: 
     
    Please let us know if you need any further assistance. 
     
    Regards, 
     
    Selvamani S. 



    HA haryzad September 20, 2017 01:12 AM UTC

    Hi Selvamani S. 

    Thanks for your support, it's resolve my issues by updating the reference.

    But, need your advise and assistant on this matters, based on the radial menu; i try to navigate to another view (controller/action); can it be done if i want to

    1. Using div to trigger the radial menu, cause some of my view using the div element

    2. how to navigate to another controller / action using  :

         a. e-radial-menu-item

         b. e-radial-menu-child-item

    refer attachment if it can help to understand my issues



    Attachment: syncfusion_support_1a054ba8.rar


    SS Selvamani Sankarappan Syncfusion Team September 20, 2017 09:51 AM UTC

    Hi Haryzad, 
     
    Thanks for the update. 
     
    You can navigate to the controller while clicking the radial menu icon using AJAX post at corresponding icon click event. Please refer to the following code example: 
     
    [cshtml] 
    <ej-radial-menu id="nestedradialmenu" image-class="imageclass" auto-open="false"> 
            <e-radial-menu-items> 
                <e-radial-menu-item image-url="http://mvc.syncfusion.com/demos/web/Images/RadialMenu/copy.png" text="Copy" click="copy" enabled="true"> 
                </e-radial-menu-item> 
     
    [script] 
    function copy(e) { 
                $.ajax({ 
                    url: "Home/Filter", 
                    type: 'POST', 
                    dataType: "json", 
                    success: function (result) { 
     
                    } 
                }); 
                rteObj.executeCommand("copy"); 
            } 
     
    [cs] 
    [HttpPost] 
            public IActionResult Filter() 
            { 
                return View(); 
            } 
     
    Refer to the following sample: 
     
    Please let us know if you need any further assistance. 
     
    Regards, 
     
    Selvamani S. 


    Loader.
    Live Chat Icon For mobile
    Up arrow icon