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

How do I get the container of RadMenu? eg

The code below removes the Menu not its container as well:
function OnClicking(sender, eventArgs)
{
var proceed = confirm("Are you sure you want to delete?");
if (!proceed)
{
return false;
}
else
{
alert(eventArgs.Item.Parent.LinkElement.id);
var ctrl = document.getElementById(eventArgs.Item.Parent.LinkElement.id);
ctrl.parentNode.removeChild(ctrl);
}


I want it to be:
ctrl.parentNode.PARENT.removeChild(ctrl);




More info:
My page consists of UserControls that users can reposition in the page.

Each UserControl has a Rad Menu. When a user swaps around 2 UserControls the radmenu.parent.parent result is incorrect because jquery modified the client-side html but the server-side isn't aware.Therefore using server-side code doesn't work,eg:

RadMenu_ItemClick(object sender, RadMenuEventArgs e)
{
 RadMenu radmenu = (RadMenu)sender;

MyUserControl myusercontrol = (MyUserControl)radmenu.Parent.Parent;


when 2 modules swap each others place on a page the myusercontrol is the wrong control.

Hence I'm trying to get the client side method to work, but for the life of me I cant work out how to detect the UserControl that a RadMenu's sits it.

Any help would be much appreciated
Atanas Korchev
Telerik team
 answered on 23 Apr 2008
2 answers
177 views
Hello,

I'm working on a site for a photographer who will need to upload images to the web server. When the photographer uploads his initial files it could include many files so, I was wondering if I could use an FTP "type" of control of some sort which will allow the user to select an entire folder and upload the images without having to browse and select each individual file.

I understand that FTP is a different protocol and not HTTP but I thought perhaps someone might have an idea of how to solve this scenario.

Please let me know and many thanks in advance,

Dave
Dave Navarro
Top achievements
Rank 2
 answered on 23 Apr 2008
1 answer
110 views
Telerik,

What's the replacement for the client-side method of 'RootElement' (in classic RadTreeView) ?

Rgds,
John
Atanas Korchev
Telerik team
 answered on 23 Apr 2008
1 answer
115 views
I'm using DNN 4.8.2 and have added a FormDecorator to the skin I'm using. Worked great until I went to add a new page and my permission grid check boxes didn't show up.

I've tested this with the skin I was using and with the DNN default skin (blue-horz-fixed). I have applied web20 and webblue and the permission grid check boxes don't show up. They do without the FormDecorator.

I also noticed that on the Module Install page the Browse button isn't getting skinned. I'm pretty sure it's a HTML File Input, I don't know the types for the permission grid.

Has anyone noticed any issues skinning HTML elements? (as apposed to ASP - The login button gets skinned )

Any advice on how to have the Form Decorator not make my permissions check boxes remain go invisible? I'm pretty sure they are still there... I think I can tab through them, but no outline or anything shows, it just doesn't JUMP around the page.
Martin
Telerik team
 answered on 23 Apr 2008
2 answers
202 views
I get this ajax error when I click on a header column to sort, and while the ajax is processing, I deliberately click on another column to sort again.

description: "Sys.InvalidOperationException: ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts."

In normal situations, the ajax request will be aborted when it is interrupted by another ajax request, but during grid sorting, things seem to behave differently.

I tried the method described in the FAQ -> Disable controls during AJAX, where I use a RequestStart(sender, args)
 script during Ajax request start, but it cannot work because args.EventTargetElement is null.

Ruben Sutcliffe
Top achievements
Rank 1
 answered on 23 Apr 2008
1 answer
163 views
I went through other messages in this thread but did not find similar question.

I am using Q1 2008 and I want to cancel the row-selecting event in some cases. here I have put a sample js method to call onrowselecting. looks like args.set_cancel(true) does not work at all. It should uncheck the checkbox that is being checked - but it does not do that. Also, if I click back on the checkbox which is already checked - it still calls - OnRowSelecting and OnRowSelected - instead of calling the Deselecting and DeSelected methods.

                <ClientEvents OnRowSelecting="onRowSelecting" />
                <Selecting AllowRowSelect="true" />

        function onRowSelecting(sender, args)
        {
            if (confirm("Do you want to cancel this?") == true)            args.set_cancel(true);
        }
Brandon
Top achievements
Rank 1
 answered on 22 Apr 2008
3 answers
252 views

Is there a simple way to bind a GridDropDownColumn to an enum?

By the way, the "Automatic operations"sample does not work for me when In-line edit is selected. I try to change any dropdown and then update the row and I get redirected to an un-existing page.
khetto
Top achievements
Rank 1
 answered on 22 Apr 2008
2 answers
341 views
I want to create a radgrid in the code-behind and then add it to a place holder which is easy enough but is there any documentation on creating template columns in this scenario? Having a tough time figuring this out...
Josh
Top achievements
Rank 1
 answered on 22 Apr 2008
2 answers
212 views
Hi,

I just changed my project settings to target .NET Framework version 3.5. After running a sample page that uses ScriptManager, RadWindowManager, and an UpdatePanel, I get the following error:

The control with ID 'Singleton' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

I've checked the GAC and both the 1.0 and 3.5 versions of System.Web.Extensions.dll are in there. Also, I've verified that web.config contains the correct BindingRedirect directives:

<runtime> 
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
            <dependentAssembly> 
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> 
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> 
            <dependentAssembly> 
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> 
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration> 
 
 


The code for the sample .aspx page follows. Note that if all of the RadWindow code is commented out but the UpdatePanel is left in, the error doesn't occur. If the RadWindow code is present with or without the UpdatePanel, the error always occurs.

<%@ Page Language="C#"   AutoEventWireup="true" CodeFile="calvintestradwindowiframe.aspx.cs" Inherits="Test_calvintestradwindowiframe" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
 
<html> 
<head> 
 
    <script language="javascript" type="text/javascript"> 
        var oWnd; 
        function Test(wizardID) 
        { 
            oWnd = $find( '<%= TestPopupWindow.ClientID %>' ); 
             
            oWnd.setUrl('http://www.yahoo.com'); 
            oWnd.show();   
        }     
         
        function TestClientCallBack(radWindow, returnParameters) 
        { 
         
        } 
               
    </script>  
</head> 
 
<body> 
<form name="form1" runat="server"> 
    <telerik:RadWindowManager id="Singleton" runat="server" Skin="Vista"> 
        <windows> 
            <telerik:RadWindow ID="TestPopupWindow" runat="server" Height="300" Width="300"  
                DestroyOnclose="false"     
                Modal="true" 
                VisibleStatusbar="false" 
                VisibleTitlebar = "true" 
                NavigateUrl=""     
                Title = "Test"          
                Behaviors="Close,Move" 
                ClientCallBackFunction="TestClientCallBack" 
            /> 
        </windows> 
         
         </telerik:RadWindowManager> 
          
         <a href="javascript:void(0)" onclick="javascript:Test(0)">Test(0)</a>   
          
         <asp:UpdatePanel ID="TestUpdatePanel" runat="server"> 
            <ContentTemplate> 
                <p>hello</p> 
            </ContentTemplate> 
         </asp:UpdatePanel> 
 
     
 
 
 
    <p>Test Page</p> 
</form> 
</body> 
</html> 


Anything else I might be missing?



Mark DeMichele
Top achievements
Rank 1
 answered on 22 Apr 2008
1 answer
267 views
I have taken a look at the RadWindow and RadDock to solve a very simple problem of flying out some controls (may be wrapped in user control but does not have to be) within an aspx and these are is just not cutting it.

The behavior I am looking for is just like MSDN's feedback 
see this page, top right corner to see the "feedback" flyout.
http://msdn2.microsoft.com/en-us/library/e2h7fzkw.aspx

Another good example is from Obout (offers Flyout for free but it does not play nicely with Telerik controls, esp. ScriptManager). http://www.obout.com/flyout/flyout.aspx

I don't want callbacks or commands or anything else fancy, I just want a page to be able to flyout some controls and have these controls accessible just like they were on the page normally (i.e. wire up to events, etc.)

with all these fancy features this has to be something a lot of people want.

thanks.

Shaun Peet
Top achievements
Rank 2
 answered on 22 Apr 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?