Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
256 views
Hi,

I was wondering how I would go about hiding a sub menu item based on the users permission rights.  I can hide the parent menu item just fine but I am having trouble getting at the child menu item.  Is this possible?  I am trying to hide the ACN Managment tab but keep the eligible recruits visible.

Thanks,
Chad

Code below.

<

 

 

telerik:RadMenuItem Text="ACN" Value="ACN">

 

<Items>

 

<telerik:RadMenuItem Text="ACN MANAGEMENT">

 

<Items>

 

<telerik:RadMenuItem Text="Manage ACNS" NavigateUrl="ACN/ACNMangement.aspx"></telerik:RadMenuItem>

 

<telerik:RadMenuItem Text="Manage Locks" NavigateUrl="ACN/ACNLocks.aspx"></telerik:RadMenuItem>

 

<telerik:RadMenuItem Text="Manage Permissions" NavigateUrl="ACN/ACNPermissions.aspx"></telerik:RadMenuItem>

 

<telerik:RadMenuItem Text="Request ACN" NavigateUrl="ACN/ACNRequest.aspx"></telerik:RadMenuItem>

 

</Items>

 

</telerik:RadMenuItem>

 

<telerik:RadMenuItem Text="Eligible Recruits" NavigateUrl="ACN/EligibleRecruits.aspx"></telerik:RadMenuItem>

 

</Items>

 

</

telerik

:

RadMenuItem

>

CODE BEHIND

 

 

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load

 

If Not IsPostBack Then

 

'Get the name of the current User logged in.

 

Dim Username As String = GetName()

lblWelcome.Text =

 

"Welcome " & Username

 

End If

 

'If CheckJ1Admin() = False Then

 

' Dim ACNMenu As RadMenuItem = rmMenu.Parent.FindChildByValue("ACN")

 

' ACNMenu.Visible = False

 

'End If

 

End Sub



 

 

 

 

Princy
Top achievements
Rank 2
 answered on 28 Feb 2014
1 answer
161 views
I have radcombobox inside of ItemTemplate of RadLIghtboxItem and it seems it will not drop down when clicked.  If on the same page, if it put the combobox outside of the lightbox, the control works fine.  Why is that?
Shinu
Top achievements
Rank 2
 answered on 28 Feb 2014
4 answers
288 views
I've heard that the RadDatePicker does not support multiple dates. I need a workaround that doesn't involve having a big calendar on my screen. What are the work around for this lack of functionality??
Shinu
Top achievements
Rank 2
 answered on 28 Feb 2014
1 answer
74 views
Have a radgrid with a templateitem:

​ <telerik:GridTemplateColumn HeaderText="Category" ItemStyle-Width="200px" HeaderStyle-HorizontalAlign="Center" >
<ItemTemplate>
<telerik:RadComboBox ID="RadComboBox_Category" runat="server" DataSourceID="SqlDataSource_Categories" DataTextField="Code" DataValueField="ComboBox_GUID" SelectedValue='<%# Eval("Category_GUID") %>' Enabled="false" />
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox_Category" runat="server" OnSelectedIndexChanged="RadComboBox_Category_SelectedIndexChanged" AutoPostBack="true" DataSourceID="SqlDataSource_Categories" DataTextField="Code" DataValueField="ComboBox_GUID" SelectedValue='<%# Bind("Category_GUID") %>' />
</EditItemTemplate>
</telerik:GridTemplateColumn>


This worked great. Item was disabled and viewable when not in edit mode. put in edit mode, the combobox displays.

Now after IOS 7.0.6, when the item is not in edit mode, it appears the text color and background color of the combobox are the same (or very very close to being the same) such that the combobox appears "blank". putting the combobox in edit mode will display the value, it is only when the combobox is on a record not being editing that it appears "invisible".

is there a way to change the CSS of the combobox to display when it is disabled?

I have attempted to add

CssClass="comboBoxDisabled"

and

.comboBoxDisabled
{
color: black;
}

so it will show up, to no avail, on the ItemTemplate comboBox.

Any other workarounds?
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
 answered on 27 Feb 2014
4 answers
350 views
Application Version: 2014.1.210.1
Description: Application needs to close
Details:
System.ArgumentException: operations

Server stack trace:
   at Telerik.OperationFramework.Operation.OperationSequence..ctor(IOperationDependencies operationDependencies)
   at Telerik.OperationFramework.OperationManager.QueueSequence(IOperationInfoDependencies operationInfos)
   at Telerik.CommonInstaller.Application.ProductInstaller.InstallProduct(IInstallable product)
   at Telerik.CommonInstaller.Application.Actions.InstallAction.GetSequenceCookie()
   at Telerik.CommonInstaller.Application.Actions.InstallActionBase.Initialize()
   at Telerik.CommonInstaller.Application.Services.InstallationService.TrackAndStartActions(IList`1 actions)
   at Telerik.CommonInstaller.Application.Services.InstallationService.StartActions(IList`1 actions)
   at Telerik.CommonInstaller.InstallerUIBase.ViewModels.InstallationProgressPageViewModelBase.<OnNavigated>b__12()
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at System.Action.EndInvoke(IAsyncResult result)
   at Telerik.CommonInstaller.InstallerUIBase.ViewModels.InstallationProgressPageViewModelBase.<>c__DisplayClass16.<>c__DisplayClass19.<OnNavigated>b__15()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


There's a proxy setting in the settings box, is it a requirement to always have a proxy?
Missing User
 answered on 27 Feb 2014
1 answer
108 views
Hi,
I am looking to select files, and then allow the user to give the file a description, and then upload the files in 'batch'. So I would allow the user to choose files, add the filename to a grid(?), add a title for each file, and then upload them.

I may want to do this as a 'local' upload or an 'azure' upload.

What is the best way to approach this please?

Thanks

Pete
Hristo Valyavicharski
Telerik team
 answered on 27 Feb 2014
2 answers
75 views
Can i open 2 radtooltips at same time in client side?

radToolTip = $find("RadToolTipPerfil1");
$("#TextoTruco1").text("Sem chance !!!");
radToolTip.show();
radToolTip1 = $find("RadToolTipPerfil3");
$("#TextoTruco3").text("Sem chance !!!");
 radToolTip1.show();

It showing only one.

Thanks
Gilberto
Top achievements
Rank 1
 answered on 27 Feb 2014
4 answers
293 views
Hi all
I need to show a RadAlert with a link (anchor tag) for the user.
When i include the <a tag> the window doesn't popup.

string message = "<A process with this ID already exists <br />, you can find the process <a href='http://mydomain.com'>Here</a>";

(i have reference to the element)
radWindowAlert.radalert(message,330,180,"Process Exists", null);

If i remove the a tag it shows the rest of the text.

(asp.net C#)
Omer B
Top achievements
Rank 1
 answered on 27 Feb 2014
1 answer
119 views
Hi

I have a RadMenu inside a RadGrid Template row. The goal is to use Eval() to configure properties of the menu items by operating on the grid row, not the menu. I understand that because the menu is a naming container itself this is not directly possible.

for example <telerik:radMenuItem text='<%# Eval("SomeFieldName") %>' /> and the result would be that the text of the menu item is taken from the value of the "SomeFieldName" column of the row that it appears on.

There is a similar thread here from five years ago:
http://www.telerik.com/forums/radgrid-template-column-and-binding-to-radmenu

which offers a workaround but the link to that workaround is dead.

So, five years later and this is still a problem. We need to be able to bind radmenu items to the rows of a radgrid. It seems really obvious to me that this is something everyone would want to do, and to do it easily.

What can you suggest as a practical solution?

Thanks
Chris
Plamen
Telerik team
 answered on 27 Feb 2014
5 answers
157 views
Hi,
i'm using rad controls version 2013.2.611.40 and i need to have in a pivot grid a calculated with a formula.
How is possible to do it?

Thanks.
Vasil
Telerik team
 answered on 27 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?