Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
Hi;
I have an user control in an aspx page. I had find a sample that can be use as autocomplete function at listbox.
In user control i had 3 search textboxes, and 3 listboxes. And the javascript code as follows:
<script type="text/javascript">
    function filterListBox(sender, e) {
        var list = $find("<%= RadListBox1.ClientID %>");
        var searchText = sender.get_value() + e.get_keyCharacter();
        var items = list.get_items();
        for (var i = 0; i < items.get_count(); i++) {
            var item = items.getItem(i);
            if (item.get_text().toLowerCase().startsWith(searchText.toLowerCase())) {
                item.select();
            }
        }
    }
</script>       
I don't want to write 2 more same javascript code block. And i decide to send the controls names to the javascript too. But as i see the sender and e arguments generating by telerik. And i can't add more arguments.
How can i add two more arguments into this javascript?
Yana
Telerik team
 answered on 02 Mar 2010
1 answer
103 views
Hello there,

At GuildPortal we host guild sites for people who play massively multi-player online games (like World of Warcraft).  All of the code is custom. The back-end administration piece (for guild administrators) uses the Telerik ASP.Net AJAX components for the user interface.  The only thing we are currently using that the vast majority of our users see (the guild members, not admins) is the WYSIWYG editor.

We'd really like to use more of the suite in the guild pages, but in order to do that, we'd need some kind of uniform approach to the components.  Just looking at the multitude of styles across all the various controls, including inline styles, doesn't give me much confidence that this will work out, but...

I don't suppose you folks have anything in the pipeline for diagramming all of the controls and the styles that apply to them?  I've seen some of these types of things in your documentation for various controls, but they're not there for all of them.  Our users require a high degree of customizability, so the only way we can provide that and still use your suite to its fullest is if we have some kind of sane approach to overriding the appearance of your controls, dynamically, at run-time.
Dimo
Telerik team
 answered on 02 Mar 2010
1 answer
139 views
in my rad grid i have 2 detail tables on same level. During debug sessions one appears on top of the other, which is normal. Then I moved the code onto another machine with Win Server 2008 R2 OS for testing. In the new environment one detail table appears next to each other (shown horizontally). Not sure what's wrong here....  Has anyone had same problem before?
Dimo
Telerik team
 answered on 02 Mar 2010
3 answers
195 views
I have a very strange problem .
I have a web application that is published on my computer.
If I execute the web application on my computer, it looks fine (mimaquina.jpg), but if I run the same application on others computers, it looks bad (other.jpg).

Example: Explorer 8, same screen resolution.
The web application looks different.

I send you an example, the 2 pictures, one of my computer and other in the other computer.

1-My Computer. (mimaquina.jpg)
2-Other Computer (other.jpg)

I will really apreciate if you can send me a solution or at least, what is happening.

Dimo
Telerik team
 answered on 02 Mar 2010
5 answers
263 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
230 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
144 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
250 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
196 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
110 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
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?