Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
255 views
    <telerik:RadWindow ID="RadWindow1" runat="server" Title="Add Engineers" Height="450px"
        Skin="Black" Behaviors="Close" Width="650px" ReloadOnShow="true" ShowContentDuringLoad="false"
        VisibleStatusbar="false" Modal="true" OnClientClose="OnClientClose" />


The New PopUp is loading twice .
Georgi Tunev
Telerik team
 answered on 02 Mar 2010
3 answers
209 views
Setting the VisibleTitleBar attribute to false on the RadWindow has no effect.  The title bar is still shown (with an icon at the upper left).  Is there any way to hide that?
Georgi Tunev
Telerik team
 answered on 02 Mar 2010
5 answers
125 views
Hello,

Having a problem when closing docks where the serverside postback method is not being called.

The docks are dynamically created using the page_init method and have a DockCommand added which is used to close the dock. When clicking the command button the user is prompted using javascript to confirm that they want to remove the dock. The dock is removed from the screen but the serverside postback method is not called. This method is used to persist the dock removal in session and database.

Serverside code for adding dock command
Dim closeDock As New DockCommand() 
closeDock.OnClientCommand = "PromptRemoveDock" 
closeDock.AutoPostBack = True 
closeDock.Name = "Close" 
closeDock.Text = "Remove" 
closeDock.CssClass = "DockCloseCommand" 
dock.CommandsAutoPostBack = True 
dock.Commands.Add(closeDock) 
AddHandler dock.Command, AddressOf Dock_Command 
 


Javascript to prompt user before closing dock
function PromptRemoveDock(sender, eventArgs) 
    if (confirm('Remove "' + sender.get_title() + '"?'))      
    {      
        sender.set_closed(true);  
    }      
    else     
    {      
        eventArgs.set_cancel(true);       
    } 

This was working but decided to mysteriously stop behaving. Any ideas as to why would be greatly appreciated. A serverside event for the PositionChanged command is being called via postback with no problems.

To fix this I did try changing the dock creating to use the DockCloseCommand instead of the DockCommand. This presented a different problem where the dock is removed from the screen before the javascript prompt is displayed. This is not desired, especially when the user click cancel when they don't want to remove the dock.

Alternate code tried for adding dock command
Dim closeCommand As DockCloseCommand 
closeCommand = New DockCloseCommand 
closeCommand.AutoPostBack = True 
closeCommand.OnClientCommand = "PromptRemoveDock" 
dock.Commands.Add(closeCommand) 
AddHandler dock.Command, AddressOf Dock_Command 


We're using version the 2009 Q2 release (version 2009.2.826.20) of the controls in which I believe the animation bug that can cause this behaviour was fixed.

Thanks,
Brad.
Pero
Telerik team
 answered on 02 Mar 2010
1 answer
241 views
hi,

I want to change the parent page from which the RadWindow gets called. I can not simply update the whole page. Its a heavy page, and the counter that I am using small asp.net controls. Can you please tell that:

1). Can not I have the reference of the calling page in the server side events of RadWindow. Parent property of RadWindow is set to null, is there any other property by which I can access the calling page of the control reference?

2). Or by some other way I can call the server side method for the parent control on any event in the RadWindow or on the disposal of RadWindow.

Regards
Athir Gillani
Georgi Tunev
Telerik team
 answered on 02 Mar 2010
1 answer
178 views

Hi,

When I attempt to use the CAPTCHA control with Virtual Directory website, the captcha image path is not ok and the image is not displayed. I don't have the same problem when I create a regular IIS website (using the same home directory...).

I registered the httpHandler in my web.config as follows:

<httpHandlers>
   <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>

<handlers>
   <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

</handlers>

Any suggestions?

Thanks.

Pero
Telerik team
 answered on 02 Mar 2010
1 answer
105 views
Hi.

I have a Telerik Editor which contains a custom xhtml tag like the following:
<my:Comment   
    class=comment   
    commentValue="comment text for arrested">ARRESTED  
</my:Comment> MAN FOUND IN DITCH  

I have some javascript code which can remove the custom tag by doing the following:
        var oSel = editor.getSelectedElement();  
        if (confirm("Are you sure you wish to remove this comment?"))  
            oSel.outerHTML = oSel.outerText; 

The code basically replaces the selected element with just the text that was highlighted, so
ARRESTED MAN FOUND IN DITCH becomes
ARRESTED MAN FOUND IN DITCH
and the custom attributes associated with my:comment are also removed.

The code works properly in IE, however, Firefox doesn't recoginize the outerHTML or outerText properties.
What is the proper way to get such code to work in both browsers?
Michael Pullella
Top achievements
Rank 1
 answered on 02 Mar 2010
5 answers
170 views

Hello,

It's installed "RadControls for ASP.NET AJAX Q2 2009 SP1" and "Microsoft ASP.NET 2.0 AJAX Extensions v1.0.61025" on my computer. When I run Live Examples -> Scheduler -> Populating With Data -> XML Provider, double click an appointment, set a "Daily Recurrence Rule" for it and press Save, I got an JavaScript alert telling that "Object reference not set to an instance of an object.". There is no problem with other type of recurrence rules (Hourly, Weekly, Monthly and Yearly). I also tried other examples (e.g. Database Provider), and I had the same problem with them also saving with a daily recurrence rule.

Could anyone please help me solving this problem?

Thank you,

Afsar.

Dimitar Milushev
Telerik team
 answered on 02 Mar 2010
5 answers
126 views
Hi there,

I've been using NHibernate Burrow and ASP .Net Telerik Controls in an application. Everything worked well until I recently upgraded from 2009 Q1 to 2009 Q3. It seems that the way DialogHandler now constructs the dialog page causes issues with NHibernate burrow - I'm getting NullRefException on PreRender. I guess Burrow tries to find the page form to insert the Burrow place holder. If I take the burrow module out all works well.

Anybody came accross similar problem or does anyone know what change or suggest a work-around ?

Many  thanks,
Mira
Rumen
Telerik team
 answered on 02 Mar 2010
1 answer
97 views
Hi,

I have ItemTemplate Column for Price , Qty and Amount. i want to calculate Amount without post backing to Server.
as i press key in qty or Price the amount must be calculated into AMount Column.

Thanks in Adv.

Shinu
Top achievements
Rank 2
 answered on 02 Mar 2010
1 answer
381 views
hi,

I have text box and it display some text. I want to copy that data to the clipboard when i click on button.
is their any way to dong this. As well as i want to check this in both IE and Mozilla browser.
please help me as soon as possible, this is urgent.

thanks

waruni
Daniel
Telerik team
 answered on 02 Mar 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?