This is a migrated thread and some comments may be shown as answers.

Not getting expected value when hiding some elemetns :

7 Answers 54 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Aarsh
Top achievements
Rank 1
Aarsh asked on 23 Nov 2013, 04:31 AM
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 ?

7 Answers, 1 is accepted

Sort by
0
Aarsh
Top achievements
Rank 1
answered on 25 Nov 2013, 01:44 PM
  • 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
0
Aarsh
Top achievements
Rank 1
answered on 27 Nov 2013, 02:12 PM
...
0
Kate
Telerik team
answered on 27 Nov 2013, 07:02 PM
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.
0
Aarsh
Top achievements
Rank 1
answered on 27 Nov 2013, 07:31 PM

Sure.


Telerik Web.UI :



Version : 2013.3.1114.40

Runtime Version : v4.0.30319





0
Accepted
Kate
Telerik team
answered on 02 Dec 2013, 05:05 PM
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.
0
Aarsh
Top achievements
Rank 1
answered on 10 Dec 2013, 05:16 PM
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
0
Kate
Telerik team
answered on 11 Dec 2013, 04:21 PM
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.
Tags
RibbonBar
Asked by
Aarsh
Top achievements
Rank 1
Answers by
Aarsh
Top achievements
Rank 1
Kate
Telerik team
Share this question
or