Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
is there a way to determine if an uploaded file is an image? is it possible to automatically check the extension of a file and determine (in client side) that the file is an image?
after determining if a file is an image, is it possible to determine (client side) the dimensions of the uploaded image
rashad kabbara
Top achievements
Rank 1
 answered on 21 May 2010
1 answer
80 views
Hi,

I got stuck with CSS in RADMenu.

I am having a CSS file for RAD Menu. It is having a lot of CSS class for a single RADMenu.
Its applied fine. I added a new CSS class named '.InnerSubMenu'.
I am applying the css in ".RadMenu1 .rmGroup .rmItem .rmLink .InnerSubMenu". Here, I am changing the font size to 8px. I also mentioned the font size as !important .
But I am having another one css class named ".RadMenu1 .rmGroup .rmItem .rmLink .rmText". Here the font size is 12px.

On examining, i found that the InnerSubMenu css class is applied initially.
But the rmText css class replaces the font size to 12px.

I cant change the rmtext class as it is applied for all nodes in the menu.

The innerSubmenu needs to be applied at particular point of time.

Kindly let me know, how can i achieve the scenario.

Thanks,
Vinoth
Dimitar Milushev
Telerik team
 answered on 21 May 2010
7 answers
241 views
I have a RadGrid with GridClientSelectColumn  to select and unselect row(s) client-side. I am using it to select/unselect all the rows using the check box at the header. If  the check box in the header is checked,  all the check boxes are checked (all rows selected). But the issue is that,  even if a single check box (row) is unchecked (unselected) the "Select All" check box  in the header is still checked. Is there any way to mark the header check box unchecked in the above case ?
I don't want to use RowSelected/RowDeselected client events to achieve this as it causes performance issues if the grid has many items.
Any immedaite help is appreciated.

Tsvetoslav
Telerik team
 answered on 21 May 2010
7 answers
408 views
Hi
    I am using Rad Grid in my application. I am adding the columns to the grid at the runtime. I have filtering enabled for all the columns except a gridbutton column . How to enable filtering and sorting for the column. Also i have set the AllowFilteringByColumn to true. Please help me out in this issue.

Thanks
Gayatri
Prangadj
Top achievements
Rank 1
 answered on 21 May 2010
1 answer
156 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
174 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
56 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
222 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
150 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
127 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?