Not getting expected value when hiding some elemetns :

8 posts, 1 answers
  1. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 22 Nov 2013 Link to this post

    I am  observing this. I had to hide first 2 of three elements and though apparently it seemed to be working but not actually, From the screen shot attached, instead getting the value, "value3" I am getting "value1"
    <telerik:RadRibbonBar ID="RadRibbonBar1" runat="server"
                EnableQuickAccessToolbar="False" RenderInactiveContextualTabGroups="False"
                SelectedTabIndex="-1" Skin="Windows7" onmenuitemclick="RadRibbonBar1_MenuItemClick">
                <telerik:RibbonBarTab>
                <telerik:RibbonBarGroup>
                <Items>
                <telerik:RibbonBarMenu ID="rbmCaseCloneOptions" ViewStateMode="Disabled" Text="Telerik Raid">
                                                        <Items>
                                                            <telerik:RibbonBarMenuItem ID="rbmi_Item1" ViewStateMode="Disabled" Text="text 1" Value="value1"></telerik:RibbonBarMenuItem>
                                                            <telerik:RibbonBarMenuItem ID="rbmi_Item2" ViewStateMode="Disabled" Text="text 2" Value="value2"></telerik:RibbonBarMenuItem>
                                                            <telerik:RibbonBarMenuItem ID="rbmi_Item3" ViewStateMode="Disabled" Text="text 3" Value="value3"></telerik:RibbonBarMenuItem>
                                                        </Items>
                                                    </telerik:RibbonBarMenu>
                </Items>
                </telerik:RibbonBarGroup>
                </telerik:RibbonBarTab>
            </telerik:RadRibbonBar>

    .aspx.cs


    public partial class WebForm2 : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                RibbonBarMenu rbmHandle = (RibbonBarMenu)RadRibbonBar1.FindControl("rbmCaseCloneOptions");
                rbmHandle.FindMenuItemByValue("value1").Visible = false;
                rbmHandle.FindMenuItemByValue("value2").Visible = false;
                rbmHandle.FindMenuItemByValue("value3").Visible = true;
            }
     
            protected void RadRibbonBar1_MenuItemClick(object sender, Telerik.Web.UI.RibbonBarMenuItemClickEventArgs e)
            {
                string s = e.Item.Value;
            }
        }

    and the string s, keeps getting value of value1 ... Am I missing something ?
  2. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 25 Nov 2013 Link to this post

    • I was also able to reproduce this issue on firfox 25.0.1 ( latest, as of writing this post )
    • I am using this control for asp.net ajax for .net 4.0 from my VS2k10 Win 7 Pro
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 27 Nov 2013 Link to this post

    ...
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 27 Nov 2013 Link to this post

    Hi Aarsh,

    Can you clarify what is the version of the RadControls that you are currently using, so we can test it locally and check the behavior? 

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 27 Nov 2013 Link to this post

    Sure.


    Telerik Web.UI :



    Version : 2013.3.1114.40

    Runtime Version : v4.0.30319





  7. Answer
    Kate
    Admin
    Kate avatar
    1898 posts

    Posted 02 Dec 2013 Link to this post

    Hello Aarsh,

    Indeed the issue that you describe is a bug of the control that we already logged in our system. I have already reported it to our development team so that they can fix it shortly. You can also find your Telerik points updated.

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  8. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 10 Dec 2013 Link to this post

    Thank you, Yes, Boyan Dimitrov already has created a ticket for me. I'd like to get notified when this gets fixed. If I can have any expected date for this bug-fix, I'd greatly appreciate it.

    Thanks,
    -Aarsh
  9. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 11 Dec 2013 Link to this post

    Hi Aarsh,

    Thank you for your interest. We will notify you once we resolve the issue with the RadRibbonBar control.

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017