Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
151 views
Hi There!

Can anyone suggest me, what is the best radcontrol for implementing user role based implementation.
For Example/-

                   where a single user can have multiple roles (reviewer, submitter) and they have there related functionality. So how to show on one page where the user should be able to choose which role he wants to assume and what functionality he want to do . please suggest me how can we design a page using rad controls with the above requirement. I don't know which control will be the best control for user based

I am using ASP.NET, VB.NET.
Its urgent......

Thank You,
--Aruna
Prangadj
Top achievements
Rank 1
 answered on 21 May 2010
1 answer
164 views
Hi Telerik Team,


I am using RadMenu with RadPanelbar like the code below:

 <telerik:RadMenu ID="RadMenu1" Skin="" Style="margin-left: 0px; margin-bottom: 0px;  
                                                                margin-top: -1px; margin-right: 0px;" DefaultGroupSettings-OffsetY="2" EnableOverlay="true" 
                                                                DefaultGroupSettings-OffsetX="-30" runat="server" Flow="Vertical" Width="17">  
                                                                <Items> 
                                                                    <telerik:RadMenuItem ImageUrl="images/main_menu.gif" Value="0" Width="17">  
                                                                        <Items> 
                                                                            <telerik:RadMenuItem Value="1">  
                                                                                <ItemTemplate> 
                                                                                    <telerik:RadPanelBar runat="server" ID="RadPanelBarLeft" ExpandMode="SingleExpandedItem" 
                                                                                        OnClientMouseOver="ExpandItems" EnableEmbeddedSkins="false" Skin="ILPanelSkin" 
                                                                                        Style="width: 197px; height: 500px; background: #e6eaef;" OnItemClick="RadPanelBarLeft_ItemClick">  
                                                                                    </telerik:RadPanelBar> 
                                                                                </ItemTemplate> 
                                                                            </telerik:RadMenuItem> 
                                                                        </Items> 
                                                                    </telerik:RadMenuItem> 
                                                                </Items> 
                                                            </telerik:RadMenu> 
 
My functionality is to open/close the panel bar on mouseover/mouseout of "main_menu.gif" image.Its working fine. I have set the height of panelbar to 500px, so that it covers whole div on which it opens. Its working fine if there is no vertical scroll bar in your page.But, if vertical scroll bar comes then Radpanelbar goes up from its original position.In otherwords this should open always parallel to "main_menu.gif" image.

Please help me in this regard.

Thanks,

Ankesh Bharti



Peter
Telerik team
 answered on 21 May 2010
1 answer
52 views
I have the RadAsyncUpload control on my form and when I have it in a disabled state, when you move the cursor over the control, *sometimes* it will throw the following javascript error:

'tagName' is null or not an object
RadUpload.js
Line: 154
Char: 1
Code: 0
URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.415/Upload/RadUpload.js

Why is my app using an external resource from anothr domain?

Genady Sergeev
Telerik team
 answered on 21 May 2010
2 answers
212 views

Hello,

We want to implement the following with the RadGrid.

If the user clicks the filter icon, the filter expression 'contains' is being executed. The filter icon changes. A filter icon with an angled red line through is being showed. If the user then click the filter icon the expression 'nofilter' is being executed and the original filter icon gets back.

In fact we want a toggle filter per column.

How can we implement this?

Regards,
Pieter

Pieter
Top achievements
Rank 1
 answered on 21 May 2010
3 answers
137 views
I open radwindow, but the window looks so weird with some stange green boards. Could you help me to find out why?

 

 

<telerik:RadWindowManager ID="WinMan" runat="server"

 

 

 

ShowContentDuringLoad="False" Behavior="Default"

 

 

 

InitialBehavior="None" DestroyOnClose="True">

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="WID_FORGOT_1" runat="server" AutoSize="True"

 

 

 

Behaviors="Resize, Close, Move" BorderStyle="Solid" BorderWidth="3px"

 

 

 

ClientIDMode="Static" KeepInScreenBounds="True" ReloadOnShow="True"

 

 

 

VisibleStatusbar="False">

 

 

 

</telerik:RadWindow>

 

 

 

</Windows>

 

 

 

</telerik:RadWindowManager>

 


<

 

 

script type="text/javascript">

 

 

 

function forgotUserid() {

 

 

 

var widUrl = "./Public/Forgot.aspx?i=u&id=";

 

 

 

var widId = "WID_FORGOT_1 ";

 

openWidget(widUrl, widId,

 

"USERNAME");

 

}

 

 

function forgotPassword() {

 

 

 

var widUrl = "./Public/Forgot.aspx?i=p&id=" + document.getElementById("UsernameTextBox").value;

 

 

 

var widId = "WID_FORGOT_1 ";

 

openWidget(widUrl, widId,

 

"PASSWORD");

 

}

 

 

function openWidget(widUrl, widId, type) {

 

closeWidget();

 

 

var oMan = GetRadWindowManager();

 

 

 

var oWnd = oMan.open(widUrl, widId);

 

 

 

if (type == "USERNAME")

 

oWnd.SetSize(360, 290);

 

//width, height

 

 

 

else {

 

 

 

if (document.getElementById("UsernameTextBox").value != "")

 

oWnd.SetSize(360, 290);

 

 

else

 

oWnd.SetSize(360, 340);

}

oWnd.set_visibleStatusbar(

 

false);

 

oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize);

oWnd.SetTitle(

 

"FORGOT " + type);

 

oWnd.setActive();

 

 

return oWnd;

 

}

 

 

function closeWidget() {

 

 

 

var allWindows = GetRadWindowManager().GetWindows();

 

 

 

for (var i = 0; i < allWindows.length; i++) {

 

 

 

var oWnd = allWindows[i];

 

 

 

if (oWnd._title.match("FORGOT") != null) {

 

oWnd.close();

 

 

break;

 

}

}

}

 

 

</script>

 

Svetlina Anati
Telerik team
 answered on 21 May 2010
1 answer
121 views

Hai all,

I got an error while redirect to mypage.aspx .how to solve this problem and  i want to know the reason for this problem.

Server Error in '/lms' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request failed.]
Telerik.Web.UI.StringToObjectTypeConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) +0
System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType) +16
System.Web.Compilation.CodeDomUtility.GenerateExpressionForValue(PropertyInfo propertyInfo, Object value, Type valueType) +432
System.Web.UI.SimplePropertyEntry.GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator, CodeExpression ctrlRefExpr) +125
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethodInternal(ControlBuilder builder, Type ctrlType, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, CodeStatementCollection statements, Boolean fStandardControl, Boolean fControlFieldDeclared, String deviceFilter, Boolean fControlSkin) +2407
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin) +536
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1187
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1051
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1051
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1051
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() +61
System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers() +12
System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() +920
System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath) +45
System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) +102
System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) +99


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049
Lini
Telerik team
 answered on 21 May 2010
11 answers
461 views
        <telerik:RadTreeView runat="server" ID="RadTreeView1" Skin="Outlook"
            <Nodes> 
                <telerik:RadTreeNode Text="The Greatest Rock Albums" Expanded="true" CssClass="root-node"
                    <Nodes> 
                        <telerik:RadTreeNode Text="Rolling Stones" Expanded="true"
                            <NodeTemplate> 
<div class="toggle_container" id="A3d"
                        <div class="block">  
                            <table width="100%" align="center" cellpadding="0" cellspacing="0"
                                <tr> 
                                    <th align="center" colspan="2"><b><asp:Label runat="server" ID="lblA3Descr" Text="Indirizzo Produttivo" /></b></th> 
                                    <th align="center"><b><asp:Label runat="server" ID="lblA3Bio" Text="Biologica" /></b></th> 
                                    <th align="center"><b><asp:Label runat="server" ID="lblA3Conv" Text="Convenzionale" /></b></th> 
                                </tr> 
                                <tr> 
                                    <td align="left"><asp:Label runat="server" ID="lblTipo1" Text="Cerealicolo" /></td
                                    <td align="right"><asp:Label runat="server" ID="lblRISO" Text="Riso" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3RISOBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3RISOCONV" /></td
                                </tr> 
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblFRUMDURO" Text="Frum. Duro" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUMDUROBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUMDUROCONV" /></td
                                </tr>  
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblFRUMTENERO" Text="Frum. Tenero" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUMTENEROBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUMTENEROCONV" /></td
                                </tr>  
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3MAIS" Text="Mais" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3MAISBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3MAISCONV" /></td
                                </tr>  
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3ALTRICEREALI" Text="Frum. Duro" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3ALTRICEREALIBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3ALTRICEREALICONV" /></td
                                </tr>       
                                <tr> 
                                    <td align="left"><asp:Label runat="server" ID="lblTipo2" Text="Orticolo" /></td
                                    <td align="right"><asp:Label runat="server" ID="lblPIENOCAMPO" Text="Pieno Campo" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3PIENOCAMPOBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3PIENOCAMPOCONV" /></td
                                </tr> 
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblPROTETTA" Text="Colt. Prottetta" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3PROTETTABIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3PROTETTACONV" /></td
                                </tr> 
                                <tr> 
                                    <td align="left" colspan="2"><asp:Label runat="server" ID="lblINDUSTRIALE" Text="Colt. Industriale" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3INDUSTRIALIBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3INDUSTRIALICONV" /></td
                                </tr>   
                                <tr> 
                                    <td align="left"><asp:Label runat="server" ID="lblTipo3" Text="Frutticolo" /></td
                                    <td align="right"><asp:Label runat="server" ID="lblA3POMACEE" Text="Riso" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3POMACEEBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3POMACEECONV" /></td
                                </tr> 
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3DRUPACEE" Text="Drupacee" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3DRUPACEEBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3DRUPACEECONV" /></td
                                </tr>  
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3AGRUMI" Text="Agrumi" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3AGRUMIBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3AGRUMICONV" /></td
                                </tr>  
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3FUTTASECCA" Text="Frutta Secca" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUTTASECCABIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUTTASECCACONV" /></td
                                </tr>  
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3UVATAVOLA" Text="Uva da Tavola" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3UVATAVOLABIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3UVATAVOLACONV" /></td
                                </tr> 
                                <tr>                                 
                                    <td colspan="2" align="right"
                                        <asp:Label runat="server" ID="lblbA3FRUTTAALTRO" Text="Altro" /> 
                                        <telerik:RadTextBox runat="server" ID="txtA3FRUTTAALTRO_Descr" MaxLength="50" /> 
                                    </td> 
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUTTAALTROBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FRUTTAALTROCONV" /></td
                                </tr> 
                                <tr> 
                                    <td align="left"><asp:Label runat="server" ID="lblTipo4" Text="Vitivinicolo" /></td
                                    <td align="right"><asp:Label runat="server" ID="lblA3VINOTAVOLA" Text="Da Tavola" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3VINOTAVOLABIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3VINOTAVOLACONV" /></td
                                </tr>     
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3VINODOC" Text="A Denominazione" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3VINODOCBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3VINODOCCONV" /></td
                                </tr>   
                                <tr> 
                                    <td align="left"><asp:Label runat="server" ID="lblTipo5" Text="Olivicolo" /></td
                                    <td align="right"><asp:Label runat="server" ID="lblA3OLIOMENSA" Text="Da Mensa" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3OLIOMENSABIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3OLIOMENSACONV" /></td
                                </tr>     
                                <tr>                                 
                                    <td colspan="2" align="right"><asp:Label runat="server" ID="lblA3OLIOOLIO" Text="Da Olio" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3OLIOOLIOBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3OLIOOLIOCONV" /></td
                                </tr> 
                                <tr> 
                                    <td align="left" colspan="2"><asp:Label runat="server" ID="lblA3FORAGGERO" Text="Foraggero" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FORAGGEROBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3FORAGGEROCONV" /></td
                                </tr>   
                                <tr> 
                                    <td align="left" colspan="2"><asp:Label runat="server" ID="lblA3VIVSEMENTIERO" Text="Viv-Sementiero" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3VIVSEMENTIEROBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3VIVSEMENTIEROCONV" /></td
                                </tr>   
                                <tr> 
                                    <td align="left" colspan="2"
                                        <asp:Label runat="server" ID="lblA3ALTRO" Text="Altro" /> 
                                        <telerik:RadTextBox runat="server" ID="txtA3ALTRO_Descr" MaxLength="50" /> 
                                    </td> 
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3ALTROBIO" /></td
                                    <td align="center"><asp:CheckBox runat="server" ID="chkA3ALTROCONV" /></td
                                </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                            </table> 
                        </div> 
                    </div>                         
                            </NodeTemplate> 
                </telerik:RadTreeNode> 
            </Nodes> 
        </telerik:RadTreeView> 

hi w/ this treeview how cn i find the control designed inside of this telerik control?

Webster Velasco
Top achievements
Rank 2
 answered on 21 May 2010
1 answer
109 views
<telerik:RadToolTip   
                ID="rttSearchCriteria" 
               runat="server" 
              HideDelay="500" 
              ManualClose="true" 
              Position="MiddleRight" 
              Animation="Resize" 
              RelativeTo="element" 
              ShowCallout="true" 
              ShowDelay="200" 
              ShowEvent="OnClick" 
            EnableEmbeddedSkins="true" 
              TargetControlID="lblSearchCriteria">  
                
              <asp:Label ID="lblSearchString" runat="server"  /> 
              </telerik:RadToolTip> 

There is my tooltip code.  In the code behind I assign a formated string to the label.  The first click of the target control pops up the tool tip, but the styles are not applied.  The second click of it then does correctly display the content and format.  Attached are first and second click images.
Svetlina Anati
Telerik team
 answered on 21 May 2010
10 answers
792 views
Hai I had developed a project few months back....using telerik  rad controls. It was working fine. Now i had to modify my project...so when i opened and tried to run my system i am getting following error..\

" Could not load file or assembly RadComboBox.Net2 or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with or it was delay signed but not fully signed with the correct private key. (Exception from HRESULt:0x80131045)

Can anyone help me with this please.
T. Tsonev
Telerik team
 answered on 21 May 2010
3 answers
193 views
A bit of background: I had created a user control (ascx) that contained a RadPanelBar containing two RadPanelItems each with their own item templates with various other controls. I have everything working just as I like it.

I am now in the process of converting that control into a server control and ran into a problem. I followed an example provided in the documentation that explained how to programmatically add a RadPanelBar with ItemTemplates (Found in the docs here: Controls/RadPanelBar/Templates/Adding Templates at run-time) and I was able to display the panel bar exactly as it describes, but the panels won't expand or collapse.

What am I missing?

Here's my code so far:
[ToolboxData("<{0}:CustNameSidErpDeptProd runat=server></{0}:CustNameSidErpDeptProd>")]  
    public class CustNameSidErpDeptProd : WebControl  
    {
        #region Member Variables  
 
        private readonly RadPanelBar _radPanelBar = new RadPanelBar();  
        private readonly RadPanelItem _rpi = new RadPanelItem("PanelItem1");
        #endregion  
 
        #region Properties
        #endregion  
 
        #region Overrides  
 
        protected override void OnInit(EventArgs e)  
        {  
            _radPanelBar.AllowCollapseAllItems = true;  
            _radPanelBar.ExpandMode = PanelBarExpandMode.SingleExpandedItem;  
            _radPanelBar.EnableViewState = true;  
            _radPanelBar.Width = Unit.Percentage(100);  
            _rpi.ItemTemplate = new TextBoxTemplate();  
            base.OnInit(e);  
        }  
        protected override void OnLoad(EventArgs e)  
        {  
            _radPanelBar.Items.Add(_rpi);  
            _radPanelBar.Items.Add(new RadPanelItem("PanelItem2"));  
            _radPanelBar.DataBind();  
            Controls.Add(_radPanelBar);  
        }
        #endregion  
 
        #region Public Methods
        #endregion  
 
        #region Private Methods
        
        #endregion  
    } 
Nikolay Tsenkov
Telerik team
 answered on 21 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?