Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
47 views
Hello,

I am looking to replicate the skin of the panelbar to a div on my page so that it's look will stay consistent and change to whichever skin is selected by the user.  Is there anyway to apply the skin to the div at all?  I am trying to get it to replicate a root group item.

Thanks,
Ron Montecalvo
Ron
Top achievements
Rank 2
 answered on 11 Aug 2010
1 answer
1.7K+ views
I want to allow only positive numbers in a numeric text box. How do I do this?

Thanks
Daniel
Telerik team
 answered on 11 Aug 2010
1 answer
58 views
Hi,

In our asp.net application we are using <object> attribute method for writing our register java object on aspx page.
After loaging this object I tried to open rad window as a child page but it is not showing properly.
It is getting cut the rad window's title bar and border. I have attached that image of it.

I have tried to set z-index of object tag but it did not worked.

 

 

sample code is :
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Testupload.aspx.vb" Inherits="main_Testupload" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link href="App_Themes/Office2009/Window.Office2009.css" rel="Stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
  
function OpenRadWin()
{
    var page = "Window.aspx";
    var oWnd = $find("RadWindow1"); 
    oWnd.setSize(380,345);//W,H
    oWnd.setUrl(page);
    oWnd.show();
    oWnd.center();
    return false;
}
</script>
</head>
<body>
    <form id="form1" runat="server">
   <table border="0" cellpadding="0" id="divLoading" style="border-collapse:collapse;" width="100%" height="100%">
                      <tr>
                        <td width="100%" height="300px" align="center" style="border:1px solid; white-space:nowrap;">
                  <div id="appcontainer" style="background-image: url('JavaPreload_silver.gif'); background-repeat: no-repeat; background-position: center;width:100%;height:100%;">
                   <script language="JavaScript" type="text/javascript">
                   <!--
                    var strObject = '<object width="590" height="290" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"'
                    + ' codebase="references/jinstall-1_5_0_07-windows-i586.cab#Version=1,5,0,7"'
                    + ' id="rup" style="cursor:pointer;"><param name="archive" value="main/dndplus.jar">'
                    + '<param name="code" value="com.radinks.dnd.DNDAppletPlus">'
                    + '<param name="name" value="rup"><param name="max_upload" value="222">'
                    + '<param name="url" value="JavauploadPad.aspx?foldername=&ModelParam=&Culture=en-US%>'
                    + '&crypt=&VCPARAM="><param name="encode_path" value="yes">'
                    + '<param name="message" value="JavauploadPad.aspx?Culture=">'
                    + '<param name="props_file" value="radupload-properties.asp">'
                    + '<param name="browse" value="yes"><param name="mayscript" value="yes"><param name="scriptable" value="true">'
                    + '<param name="allowScriptAccess" value="always" /><comment><embed type="application/x-java-applet;version=1.5" \ '
                    + 'code="com.radinks.dnd.DNDAppletPlus" \ archive="../main/dndplus.jar" \ name="rup" \ id="rup" \ width="580" \ '
                    + 'height="280" \ max_upload="222" \ url="JavauploadPad.aspx'
                    + '?foldername=&ModelParam=&crypt=&VCPARAM=" \ encode_path="yes" \ '
                    + 'message="JavauploadPad.aspx?Culture=" \ props_file="radupload-properties.asp" \ '
                    + 'browse="yes" \ mayscript"yes" \ scriptable="true" \ allowScriptAccess="always" \ pluginspage="
                    + '<noembed></noembed></comment></object>';
                   // -->
                   </script>
                   <script type="text/javascript" src="Reuse/WriteObject.js"></script>
                  </div>
                  </td>
                      </tr>
                      <tr>
                        <td>
                            <asp:Button id="btnOpen" runat="server" onClientClick="return OpenRadWin();"  Text="Open radwindow" />
                        </td>
                      </tr>
                    </table>
                   
                    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
   
    <telerik:RadWindowManager  ID="Singleton"
            EnableEmbeddedSkins="False" Skin="Office2009"
            VisibleStatusbar="False" Behavior="Close" 
              runat="server" Behaviors="Close"
            InitialBehavior="None" Left="" 
            style="display: none;" Top="" >
            <Windows>
                <telerik:RadWindow ID="RadWindow1" VisibleStatusbar="false" Height="420px"
                    Width="575px" Modal="true" runat="server"  >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </form>
</body>
</html>


I have attached the screenshot of radwindow.

Let me know if you have any suggestion.

Waiting for your response.

Thanks,
Jalpesh
Georgi Tunev
Telerik team
 answered on 11 Aug 2010
4 answers
114 views
Hi,
I have strange bug with the VSB:
I try to create custom skin based on the "Sunset" and modifications sent by our web site designer.
The problem is the that when I try to set the RadWindow base color to one of the gray shades (#5e5e5e) the color in the preview switches back to the default (orange) color. I tried the set the color other gray shades or even black with no luck. When I change the rgb values to be slightly different, the window base color changes successfully. The Attached  jpg-es show how to recreate the issue (I've checked it in FF, IE and CH)
Alex Gyoshev
Telerik team
 answered on 11 Aug 2010
2 answers
135 views
Hello Sir,
Is there any option in RAD window to open encrypted URL.
Then no firewall detect which site i am opening. Like if gmail is blocked. So can i open in RAD Window.
i want to create like Proxy site.

If there is any option please help me.


Thanks
Chandan.
Chandan Kumar
Top achievements
Rank 1
 answered on 11 Aug 2010
1 answer
46 views

Dear All
Need a quick script to browse through panelbar from server side to change text of each element on the basis of certain pereferences..
Someting like below

public void LocalizeMeu(Menu MenuName)
 {
     MenuItemCollection mc;
     mc = MenuName.Items;
     foreach (MenuItem m in mc)
     {
        m.Text=getLocalValue(m.Text);
     }
 }

I also want to check if child elements are present to drilldown till the end.

Thanks
Yana
Telerik team
 answered on 11 Aug 2010
1 answer
65 views
Hi,

I'm using RadControls for ASP>NET AJAX Q2 2010 NET40. My page is working fine in IE but None of the controls are visible in Mozilla FireFox. Below are the controls i'm using in Master page.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <title></title>
    <script src="scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="scripts/jquery.ribbon.js" type="text/javascript"></script>
    <script src="scripts/page.js" type="text/javascript"></script>   
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
   <form id="form1" runat="server">
      <div id="Image" style="position:absolute; top:0px">    
        <img alt="" src="images/XBS2I_IMG_03.jpg" width="116%" style="height: 75px" />
        </div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div style=" position:absolute;top:75px">
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Windows7">
        <telerik:RadSplitter ID="RadSplitter1" runat="server" BorderSize="0" 
            BorderStyle="None" Height="100%" LiveResize="True" Skin="Windows7" 
            Width="340px">
            <telerik:RadPane ID="RadPane1" runat="server" BorderWidth="10px" 
                Font-Names="MENU" Scrolling="None" Width="320px">
                <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" BorderStyle="None" BorderWidth="0px" EnableEmbeddedBaseStylesheet="False" 
                    EnableEmbeddedSkins="False" EnableTheming="True" Font-Names="Onyx" Height="100%" SlideDuration="500" ToolTip="Menu" Width="20px">
                    <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" BackColor="#99CCFF" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False" EnableTheming="True" IconUrl="2i.JPG" Scrolling="Y" TabView="TextOnly" Title="Menu" UndockText="Undock Text" Width="300px">
                        <telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="CHILD_CODE" DataFieldParentID="PARENT_CODE" DataNavigateUrlField="FILE_NAME" DataTextField="SCREEN_NAME" Skin="Web20">
                        </telerik:RadTreeView>
                     </telerik:RadSlidingPane>
                </telerik:RadSlidingZone>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </telerik:RadDockLayout>
    </div>
        <div style="position:absolute; top:100px; left:373px; width:533px; height:457px;">
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        </asp:ContentPlaceHolder>
                <asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server">        
        </asp:ContentPlaceHolder>
        </div>               
    </form>
</body>
</html>

Please let me know how to rectify this problem.

Warm Regards,
Nisha
Georgi Tunev
Telerik team
 answered on 11 Aug 2010
1 answer
221 views
Hi there,
    i have a UI structure in the below manner:
    frmMain.aspx -> RadPanelBar(1) -> RadGrid (popup editmode using custom webControls) -> EditForm(uscWebControl.ascx) ->RadPanelBar(2) ->Grid.
   When i structure my entire control in such a manner, RadPanelBar(2) would render useless as it's no longer able to expand and collapse. however, if i where to remove the first RadPanelBar(1), the second RadPanelBar (display under the radgird editform user control) would the return to its normal function.
    Is there a reason why, RadPanelBar(2) is unable to expand under such circumstances? is there a solution without changing my entire structure (i.e.: still using RadGrid PopupEditMode)? 


Best Regards,
Adrian.

   

Peter
Telerik team
 answered on 11 Aug 2010
1 answer
33 views
Hi,

i'm getting "Object doesn't support this property" error after assigning LoadingPanelId property in ajaxsetting of radajaxmanager.

Please let me know the workaround.
 
Thanks in advance
Dimo
Telerik team
 answered on 11 Aug 2010
3 answers
86 views
Hi,

I have 2 RadDatePickers inside RadDock.

While I open one of the DatePickers and close it without selecting a date the other RadDatePicker will not open while clicked.
Once I clicked the other DatePicker and it didn't open, they are both will not open anymore.

Once a date is selected, everything works fine.

Elad

Here is the code:

       <telerik:raddock DefaultCommands=None EnableDrag=false runat="server" id="RadDock1" style="float:none" title="טווח הזמן" Width="200" dockmode="Docked" Height="270" EnableAnimation="true" Skin="Outlook">
       <ContentTemplate>
              <div style="padding:20px;" align=right dir=rtl> 
                  <asp:Label ID="welcome" runat=server />
                                        <br /><br />
                                        <asp:Label ID="Label3" runat=server Text="טווח הזמן:" /><br /><asp:Label runat=server height="5" Text="" />
                                        <asp:Label ID="Label1" runat=server Text="מתאריך:" /><br />
                                        <telerik:RadDatePicker PopupDirection=BottomLeft AutoPostBack=true OnSelectedDateChanged=ChangePeriod ID="RadDatePicker1" runat="server" >
                                        </telerik:RadDatePicker>
                                        <br /><br />
                                        <asp:Label ID="Label2" runat=server Text="עד תאריך:" /><br />
                                        <telerik:RadDatePicker PopupDirection=BottomLeft AutoPostBack=true OnSelectedDateChanged=ChangePeriod ID="RadDatePicker2" runat="server" >
                                        </telerik:RadDatePicker>
                                        <br /><br />                
                     <asp:Button ID="SaveButt" Visible="false" Width="80" BorderStyle="Outset" BorderWidth="3" BackColor="#003366" runat="server" CausesValidation="True" OnClick="SaveReportButtHand" Text="שמור תוצאות">
                    </asp:Button>
                    <asp:Button ID="UpdateButt" Visible="false" runat="server" Width="85" BorderStyle="Outset" BorderWidth="3" BackColor="#003366" CausesValidation="True" OnClick="UpdateReportButtHand" Text="עדכן תוצאות">
                    </asp:Button>
                            </div>
</ContentTemplate>
   </telerik:raddock>
Dimo
Telerik team
 answered on 11 Aug 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?