Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
216 views
I am trying to add a custom dialog for the RadEditor.  I added the code by following the example here http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx. But I am getting error Telerik.Web.UI.Editor.CommandList is null. I am using the version 2010.3.1325.
Princy
Top achievements
Rank 2
 answered on 03 Oct 2011
1 answer
103 views
Hi

I am trying to use radopen to present a RadWindow.

I have looked at your example at :

http://demos.telerik.com/aspnet-ajax/window/examples/radopen/defaultcs.aspx

However when my window appears none of the settings in my RadWindow definition are being used.

Here's my RadWindow defintion

 

 

<telerik:RadWindow ID="CustomClientDataViewRadWindow" runat="server"

 

 

 

Behaviors="Close,Maximize,Move,Resize"

 

 

 

Height="600px"

 

 

 

IconUrl="../Images/pencil.png"

 

 

 

Modal="True"

 

 

 

ReloadOnShow="True"

 

 

 

Title="Device > Custom View"

 

 

 

VisibleOnPageLoad="False"

 

 

 

VisibleStatusbar="False"

 

 

 

Width="985px">

 

 

 

</telerik:RadWindow>

This definition is contained inside a UserControl. 

Here's my radopen statement

 

radopen(

 

"CustomDataViewPage.aspx?FolderID=" + FolderID + " &NodeType=2&ApplicationType=1", "CustomClientDataViewRadWindow");

CustomDataViewPage.aspx is my own page with its own code behind.
The radopen call is made inside a function in a separate .js file, rather then in a script block.

Once again any help greatly appreciated.


Do I need to invoke the radopen in the context of the RadWindowManager

 

Marin Bratanov
Telerik team
 answered on 03 Oct 2011
1 answer
73 views
Hi

 

div.RadScheduler_Sitefinity .rsMonthView .rsTodayCell
{
background-color: #CCFF00;
color: #000;
border: 1px solid #000;
}

I have set above in my stylesheet and was working very fine until In the Page_Load event
I added a line as below.

RadScheduler1.TimeZoneOffset =
TimeSpan.Parse(userSettingRow.UserTimeZone);

The TimeZone works fine, but I notice that the stylesheet no longer works and all cell have same background color (White).

-JD

 

Peter
Telerik team
 answered on 03 Oct 2011
1 answer
123 views
I get an error when trying to invoke a tooltip that .show() is an undefined method.  The specific code is:

var tooltip = $find('OrderToolTip');
tooltip.show();

I am not using jQuery in the application, so can I use the client-side tool tip API without it?  I've had a tool tip working on another project in the past, which also didn't use jQuery, but I no longer have the code.

Marin Bratanov
Telerik team
 answered on 03 Oct 2011
6 answers
322 views
I am trying to cancel the postback of an onItemClick command inside of an onClientItemClick command.

 <script type="text/javascript">  
        function onMenuItemClicked(sender, eventArgs) {  
            alert("Testing");  
            return false;  
        }  
</script> 
 
<telerik:RadContextMenu ID="menuContextMenu" runat="server" OnClientItemClicked="onMenuItemClicked" 
                                        onitemclick="menuContextMenu_ItemClick">  
    <Items> 
       <telerik:RadMenuItem Text="Add Sub Menu" Value="1"></telerik:RadMenuItem> 
       <telerik:RadMenuItem Text="Remove" Value="2"></telerik:RadMenuItem> 
    </Items> 
    <Targets> 
       <telerik:ContextMenuTagNameTarget TagName="menuNode" /> 
    </Targets> 
</telerik:RadContextMenu> 

The javascript runs properly as I get the alert but the post back still occurs even though the function returned false.

I have also tried changing the OnClientItemClicked to  "return onMenuItemClicked();" but this breaks the RadContextMenu all together and I get errors on the page due to improper syntax.

I have also tried adding "window.event.returnValue = false;" to the javascript but have also had no luck with that.

Any help would be greatly appreciated.
Piyush
Top achievements
Rank 1
 answered on 03 Oct 2011
4 answers
442 views
Hi,

I'm using RAD Q3 2009, I have an open window which include some controls (textbox and rad combo), I need to do the following when a user click a close button (asp.net button):
1. return a url to the parent page.
2. redirect parent page to the new url.
3. close the window.

Thank you.
Marin Bratanov
Telerik team
 answered on 03 Oct 2011
1 answer
53 views
When choosing an Thumbnail image in the ImageManager the last row  Open in a new window
is "hidden" for Google Crome. When resizing the font size (ctrl + or -) one can see the last row again.

   
Rumen
Telerik team
 answered on 03 Oct 2011
7 answers
237 views
There is a bewildering number of options that can be placed on list boxes when it comes to drag-and-drop.

It there a combination of options that I can set that enforces the following:

  - Items can be copied from lstAvailableFiles to lstAssignedFiles, either by dragging or by button presses
  - Items can not be dragged in any way from lstAssignedFiles to lstAvailableFiles
  - lstAvailableFiles
 cannot be reoordered
  - Once an item is in lstAssignedFiles, items can be reoordered or removed

I have tried various options, but I cannot seem to make lstAvailableFiles a drag source without making it a drop target as well.

I've enclosed an image of the controls, and here is the current code.

<tr>
   <td>
      <Telerik:RadListBox
          ID="lstAssignedFiles"
          runat="server"
          Width="100%"
          Rows="20"
          SelectionMode="Multiple"
          Height="250px" 
          EnableDragAndDrop="true"
          AllowTransferDuplicates="true"
          AllowReorder="True"
          AllowTransfer="False"
          AllowDelete="True"
          ButtonSettings-Position="Left"
          ButtonSettings-ShowTransfer="False"
          ButtonSettings-ShowTransferAll="False" />
 
   </td>
   <td>
      <Telerik:RadListBox
          ID="lstAvailableFiles"
          runat="server"
          Width="100%"
          Rows="20"
          SelectionMode="Multiple"
          AllowTransfer="true"
          AllowTransferDuplicates="true"
          EnableDragAndDrop="true"
          TransferMode="Copy"
          TransferToID="lstAssignedFiles"
          ButtonSettings-Position="Left"
          Height="250px"  />
   </td>
</tr>



Ricardo Pinto
Top achievements
Rank 1
 answered on 03 Oct 2011
4 answers
150 views
I am using a very simple example I got from your website that loads the radwindow on pageload using the VisibleOnPageLoad property.  It works in firefox and ie8 but not in ie9.  I tried turning off  the "pop-up blocker" but still no luck.  Also I am using the 2009.02.0701.35 version of your library.  Any help would be appreciated.
<telerik:RadScriptManager ID="ScriptManager" runat="server" />
    <telerik:RadWindow
        ID="RadWindow1"
        runat="server"
        Width="350"
        Height="350"
        Behaviors="Default"
        VisibleOnPageLoad="true"
        NavigateUrl="http://www.google.com" />
Marin Bratanov
Telerik team
 answered on 03 Oct 2011
1 answer
309 views
Greetings! 

We have a web application that we use a Rad Window component in to open edit windows for detail information. For the most part they work perfectly, except when it comes to setting the height of the window. These windows are all opened at different sizes depending on properties sent to the javascript as you can see below. Again, the widths all work correctly. 

Below is the javascript used to set the properties of the window:

function openNewCheckWindow(checkId, width, height) {
        //alert(checkId);
        var oWnd = radopen("/PerMar/Users/AddCheckToRequest_Users.aspx?CheckTypeId=" + checkId);
        oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
        oWnd.SetWidth(width);
        oWnd.SetHeight(height);
        oWnd.center();
    }

The width, behaviors and centering all work perfectly. The height not so much. Looking at the source in Firebug in Firefox, the tbody tag doesn't appear to receive the style attributes that the table gets, and thus pushes the height of the whole table too high. Attached is a screenshot of what i'm trying to explain. 

If i edit the html in Firefox and add the style to the tbody tag, the window height sizes perfectly, but without the correct style attribute - you can see the extra white space in the screenshot.

It seems to affect Firefox and Chrome alike, and we are running the RadControls for Ajax v.2011.2.712.35. I noticed in another post someone recommended ensuring the doctype was correct on the page, and ours is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

IE (oddly enough) shows the RadWindow correctly, which is a first..

Is there something i'm missing?

Thanks,
Paul Wakeman
Marin Bratanov
Telerik team
 answered on 03 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?