Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
168 views
I have two radtreeviews on a page and i would like to drag and drop nodes between the two. I have the drag working fine the destination treeview is adding nodes correctly, but the source treeview is DELETING the dragged node. I am trying to CLONE the source node and reinsert it, to prevent the deletion, but when i simply call:

sourceNode.TreeView.Nodes.Insert(sourceNode.Index, sourceNode.Clone());

I receive the following error. How is it possible that the sourceNode does not match the sourceNode in a CLONE()??? We are using the version v 2008.2.1001.35 of the RadAjax controls.

System.Reflection.TargetException was unhandled
  Message="Object does not match target type."
  Source="System"
  StackTrace:
       at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
       at Telerik.Web.UI.RadTreeNode.Clone()
  InnerException:

Serrin
Top achievements
Rank 1
 answered on 04 Dec 2008
4 answers
319 views
I am adding dynamic tabs within a tab, not sure what I am doing wrong. I get a javascript error. UserControl gets loaded dynamically into a Tab and withing that tab I am trying to add more tabs. It worked when I used NavigateUrl in the content page Tabs.

Could someone please check my code and advise.
Thanks
p.s. I accidentally posted in the asp.net forum.

Master Page
    <form id="form1" runat="server"
    <asp:ScriptManager ID="smMain" runat="server" EnablePartialRendering="true" EnablePageMethods="true"
        <Scripts> 
        </Scripts> 
        <Services> 
        </Services> 
    </asp:ScriptManager> 
     
     <telerik:RadAjaxManager ID="RadAjaxManagerMaster" runat="server"
    </telerik:RadAjaxManager> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" skin="Vista"></telerik:RadWindowManager> 
     
    <div> 
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"
         
        </asp:ContentPlaceHolder> 
    </div> 
    </form> 

Content Page
<telerik:RadTabStrip Visible="true" BorderStyle="Solid" BorderColor="black" BorderWidth="0px"  
    ID="RadTabStrip1" runat="server" Skin="Outlook" SelectedIndex="0" AutoPostBack="True"
    <Tabs> 
        <telerik:RadTab Text="Albums" ID="tab0" runat="server"></telerik:RadTab> 
        <telerik:RadTab Text="Pictures" ID="tab1" runat="server"></telerik:RadTab> 
        <telerik:RadTab Text="Comments" ID="tab2" runat="server"></telerik:RadTab> 
        <telerik:RadTab Text="Add Tabs" ID="tab3" runat="server"></telerik:RadTab> 
    </Tabs> 
</telerik:RadTabStrip> 
     
    <asp:Panel ID="pnlControls" runat="server"  
    style="border:solid 1px Blue; padding:5px 1px 5px 5px;" Visible="false" /> 
     
     
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1"  runat="server"
<AjaxSettings> 
             
    <telerik:AjaxSetting AjaxControlID="RadTabStrip1"
        <UpdatedControls> 
            <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> 
            <telerik:AjaxUpdatedControl ControlID="pnlControls" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            <telerik:AjaxUpdatedControl ControlID="lblMessage" /> 
        </UpdatedControls> 
    </telerik:AjaxSetting> 
     
             
</AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30" BackColor="#E0E0E0"
    <asp:Image ID="Image1" ImageUrl="~/Images/Loading7.gif" BorderWidth="0px" AlternateText="Loading"  
    runat="server" Style="margin-top: 45px;" /> 
</telerik:RadAjaxLoadingPanel> 

Content Page Code behind
    private void RadTabStrip1_Click(object sender, Telerik.Web.UI.RadTabStripEventArgs e) 
    { 
        lblMessage.Text = e.Tab.Text + " " + e.Tab.SelectedIndex.ToString() + " " + e.Tab.ID ; 
 
        LoadContentTab(e.Tab.ID); 
    } 
 
    private void LoadContentTab(string tabId) 
    { 
        switch (tabId.Trim().ToUpper()) 
        { 
            case "I0"
                LoadUserControl("~/NestedAjaxTabs/WebUserControl.ascx"); 
                break
            case "I1"
                LoadUserControl("~/NestedAjaxTabs/WebUserControl2.ascx"); 
                break
            case "I2"
                LoadUserControl("~/NestedAjaxTabs/WebUserControl3.ascx"); 
                break
            case "I3"
                LoadUserControl("~/NestedAjaxTabs/WebUserControl4.ascx"); 
                break;  
            default
                break
        } 
    } 

User Control ascx
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
<script type="text/javascript"
 
function addNewTab() 
{    
    showloadingpanel(); // Show Loading Panel 
     
    //Adds the tab to the Tabs Collection of the selected tab 
    var persistChanges = true
     
    var tabStrip = $find("<%= RadTabStrip1.ClientID %>"); 
    var mymultiPage = $find('<%= RadMultiPage1.ClientID %>'); 
     
    var tabCount = tabStrip.get_tabs().get_count(); 
    // Check if we have already opened the Tab 
    for (i = 0; i< tabCount; i++) 
    { 
        var tab2 = tabStrip.get_tabs().getTab(i); 
        if (tab2 != null) 
        { 
            if (tab2.get_text() == "Plan Id " + arguments[0].toString()) 
            { 
                tab2.select(); 
                hideloadingpanel(); // Hide Loading Panel 
                return false; 
            } 
        } 
    } 
     
    var selectedTab = tabStrip.get_selectedTab(); 
    var test = arguments[0]; 
    //alert(test); 
     
    if (persistChanges) { 
        tabStrip.trackChanges(); 
        mymultiPage.trackChanges(); 
    }        
    var tab = new Telerik.Web.UI.RadTab(); 
    //selectedTab.get_tabs().add(tab); 
    tabStrip.get_tabs().add(tab);    
    tab.set_text("Plan Id " + arguments[0].toString()); 
    tab.select(); 
         
    var pageView = new Telerik.Web.UI.RadPageView();     
    mymultiPage.get_pageViews().add(pageView); 
     
    pageView.get_element().innerHTML = "Page content here"
     
    pageView.set_selected(true);     
     
    if (persistChanges) { 
        tabStrip.commitChanges(); 
        mymultiPage.commitChanges();  
    } 
     
    hideloadingpanel(); // Hide Loading Panel 
    return false;       
 
function showloadingpanel()   
{                   
    var panel = document.getElementById("<%=RadAjaxLoadingPanel2.ClientID%>");                       
    panel.style.display = "block";   
}   
   
function hideloadingpanel()   
{   
    var panel = document.getElementById("<%=RadAjaxLoadingPanel2.ClientID%>");     
    panel.style.display = "none";       
 
</script> 
</telerik:RadCodeBlock> 
 
<asp:ListView runat="server" ID="lvPlans" ItemPlaceholderID="plhItemContainer"  
                        OnItemCommand="lvPlans_OnItemCommand" DataKeyNames="Field1"
                            <LayoutTemplate> 
                                <ul> 
                                    <asp:PlaceHolder runat="server" ID="plhItemContainer" /> 
                                </ul> 
                            </LayoutTemplate> 
                            <ItemTemplate> 
                                <li><asp:LinkButton runat="server" ID="lbtnPlanId"  
                                Text='<%#Eval("Field3")%> &nbsp;' 
                                CommandArgument='<%#Eval("Field1")%>'  
                                CommandName="ShowDetails" OnClientClick="return addNewTab('<%#Eval("Field1")%>');"
                                </asp:LinkButton>&nbsp;(&nbsp;<%#Eval("Field2")%>&nbsp;)</li> 
                                <br /><input type="button" value="open" onClick="return addNewTab('<%#Eval("Field1")%>');" /> 
                            </ItemTemplate> 
                        </asp:ListView> 
 
 <%--DYNAMIC TABS--%> 
            <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Skin="Outlook" Style="float:left"  
            SelectedIndex="0" CssClass="tabStrip" MultiPageID="RadMultiPage1"
            </telerik:RadTabStrip> 
             
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" CssClass="multiPage" 
            BorderStyle="Solid"  
            BorderWidth="1px"  
            BorderColor="#999999">             
            </telerik:RadMultiPage> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Transparency="30" BackColor="#E0E0E0"
    <asp:Image ID="Image1" ImageUrl="~/Images/Loading7.gif" BorderWidth="0px" AlternateText="Loading"  
    runat="server" Style="margin-top: 45px;" /> 
</telerik:RadAjaxLoadingPanel> 
 
Paul
Telerik team
 answered on 04 Dec 2008
1 answer
242 views
Hi:

I installed the Telerek controls and launched the Live Demo - got this - It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.    C:\Program Files\Telerik\RadControls for ASPNET AJAX Q3 2008\Live Demos\backup\web.config

Can you help me pls.

Roger
Paul
Telerik team
 answered on 04 Dec 2008
1 answer
152 views
In ie6 the Title bar does not appear for the RadWindow. I'm just using a customised version of the RadWindow Css. Is it a problem with my code?

/* RadWindow 2 Common Css */ 
 
div.radwindow  
{  
    floatleft;  
    positionabsolute;  
}  
 
div.radwindow a  
{  
    outlinenone;  
}  
 
div.radwindow table  
{  
    width: 100% !important;  
    height: 100%;  
    table-layoutfixed;  
}  
 
div.radwindow div.min  
{  
    displaynone;  
}  
 
div.radwindow table td  
{  
    padding: 0;   
    margin: 0;  
    border-collapsecollapse;  
    vertical-aligntop;  
}  
 
.radwindow .corner,  
.radwindow .footercenter  
{  
    line-height:1;  
}  
 
div.radwindow table td.titlebar  
{  
    -moz-user-select: none;  
    /*cursor: move;*/ 
}  
 
div.radwindow td.titlebar div.topresize  
{  
    font-size1px;  
    height4px !important;  
    line-height4px !important;  
    width: 100%;  
}  
 
div.radwindow td.statusbar input  
{  
    border0px;          
    background-colortransparent !important;   
    background-repeatno-repeat;         
    width: 100%;      
    cursordefault;  
    -moz-user-select: none;  
    overflowhidden;   
    text-overflow: ellipsis;  
    displayblock;   
    floatleft;  
}  
 
div.radwindow td.statusbar div  
{         
    width18px;   
    height18px;     
}  
 
div.radwindow td.statusbar .loading  
{  
    padding-left:30px;  
}  
 
div.radwindow td.statusbar span.statustext  
{  
    cursordefault;   
    -moz-user-select: none;  
}  
 
div.radwindow.nostatusbar tr.statusbarrow  
{  
    displaynone;  
}  
 
div.radwindow table.titlebarcontrols ul.controlbuttons  
{  
    padding: 0;   
    margin: 0;  
    list-stylenone  !important;   
    whitewhite-space:nowrap;   
    floatrightright;   
}  
 
div.radwindow_rtl table.titlebarcontrols ul.controlbuttons  
{  
    floatleft;   
}  
 
div.radwindow table.titlebarcontrols ul.controlbuttons li  
{  
    floatleft;  
}  
 
div.radwindow_rtl table.titlebarcontrols ul.controlbuttons li  
{  
    floatrightright;  
}  
 
div.radwindow table.titlebarcontrols ul.controlbuttons li a  
{  
    displayblock;   
    text-decorationnone;  
}  
 
div.radwindow table.titlebarcontrol ul.controlbuttons li a span  
{  
    text-indent: -9999px;   
    displayblock;   
}  
 
div.radwindow table.titlebarcontrols a.windowicon  
{  
    displayblock;   
    margin-right3px;    
    width20px !important;  
    height16px !important;  
}  
 
div.radwindow table.titlebarcontrols em  
{     
    overflowhidden;   
    text-overflow: ellipsis;   
    whitewhite-spacenowrap;   
    floatleft;      
}  
 
div.radwindow.minimizedwindow  
{  
    overflowhidden;  
}  
 
div.radwindow div.iconmenu  
{  
    floatleft;   
    positionabsolute;   
    z-index: 56000000;  
}  
 
div.radwindow div.iconmenu a  
{  
    cursordefault;  
}  
 
div.radwindow.inactivewindow table.titlebarcontrols  
{  
    positionstatic;  
}  
/* end of inactive window settings */ 
 
/* popup windows */ 
.radwindow .windowpopup a.radwindowbutton  
{  
    margin-top24px !important;  
}  
 
.radwindow .windowpopup a.radwindowbutton:focus,  
.radwindow .windowpopup a.radwindowbutton:active  
{  
    border1px dotted #999999;                          
}  
 
.radwindow .windowpopup a.radwindowbutton,  
.radwindow .windowpopup a.radwindowbutton span  
{  
    displayblock;   
    floatleft;  
}  
 
div.radwindow table.titlebarcontrols ul.controlbuttons li a  
{  
    text-indent: -9999px;  
}  
 
/* opera fix */ 
html:first-child div.radwindow ul  
{  
    floatrightright;   
    bordersolid 1px transparent;  
}  
 
.radwindow .dialogtext  
{  
    text-alignleft;  
}  
 
div.radwindow.minimizedwindow .pinbutton,  
div.radwindow.minimizedwindow .reloadbutton,  
div.radwindow.minimizedwindow .maximizebutton,  
div.radwindow.minimizedwindow .topresize  
{  
    displaynone !important;  
}  
 
.radwindow .contentrow .windowcontent  
{  
    font-size11px;  
}  
 
/* inactive window settings */ 
div.radwindow.inactivewindow td.corner,  
div.radwindow.inactivewindow td.titlebar,  
div.radwindow.inactivewindow td.footercenter,  
div.radwindow td.titlebar  
{  
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100) !important;  
    opacity: 1.0 !important;   
    -moz-opacity: 1.0 !important;  
}  
 
/* RADWINDOW PROMETHEUS "DEFAULT" SKIN */ 
 
div.radwindow_Default table td.corner  
{  
    width:6px;  
    line-height:1px;  
}  
 
div.radwindow_Default table td.topleft  
{  
    height6px;  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') 0 -59px no-repeat;  
}  
 
div.radwindow_Default table td.titlebar  
{  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') 0 0 repeat-x;  
}  
 
div.radwindow_Default table td.topright  
{  
    height6px;  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') 100% -59px no-repeat;  
}  
 
div.radwindow_Default table td.bodyleft  
{  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowVerticalSprites.gif") %>') 0 0 repeat-y;  
}  
 
div.radwindow_Default .windowcontent  
{  
    height: 100%;  
    border-bottom:0;  
    background:#fff;  
}  
 
div.radwindow_Default table td.bodyright  
{  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowVerticalSprites.gif") %>') 100% 0 repeat-y;  
}  
 
div.radwindow_Default table td.footerleft  
{  
    height:6px;  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') 0 -106px no-repeat;  
}  
 
div.radwindow_Default table td.footercenter  
{  
    height:6px;  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') 0 -133px repeat-x;  
}  
 
div.radwindow_Default table td.footerright  
{  
    height:6px;  
    background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') 100% -106px no-repeat;  
}  
 
div.radwindow_Default td.statusbar  
{  
    height:20px;  
    line-height:18px;  
    background:#e4e4e4;  
}  
 
div.radwindow_Default td.statusbar td  
{  
    border-top:1px solid #cecece;  
}  
 
div.radwindow_Default td.statusbar input  
{  
    font:normal 12px arial,sans-serif;  
    padding-left:4px;  
    backgroundtransparent;  
}  
 
div.radwindow_Default td.statusbar div  
{  
      background:url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') -20px -92px no-repeat;  
}  
 
div.radwindow_Default td.statusbar .loading  
{     
    background-image:url('/Images/Dialogs/Login/Loading.gif');    
}  
 
div.radwindow_Default td.statusbar span.statustext  
{  
    fontnormal 11px VerdanaArialSans-serif;  
    color:#000;  
}  
 
div.radwindow_Default td.statusbar input  
{  
    background-repeatno-repeat;  
}  
 
div.radwindow_Default table.titlebarcontrols ul.controlbuttons  
{  
    padding:0 2px 0 0 !important;  
}  
 
div.radwindow_Default table.titlebarcontrols ul.controlbuttons li a  
{  
    width30px;   
    height26px;   
    line-height26px;   
    font-size1px;  
    cursordefault;  
    margin2px 0 2px 2px;  
}  
 
/* reload button */ 
div.radwindow_Default a.reloadbutton  
{  
    backgroundtransparent url('/Images/Dialogs/Login/CommandSprites.gif'no-repeat -90px 0;  
}  
 
div.radwindow_Default a.reloadbutton:hover  
{  
    background-position: -90px -26px;  
}  
 
/* unpin button */ 
div.radwindow_Default a.pinbutton  
{  
    backgroundtransparent url('/Images/Dialogs/Login/CommandSprites.gif'no-repeat -150px 0;  
}  
 
div.radwindow_Default a.pinbutton:hover  
{  
    background-position: -150px -26px;  
}  
 
/* pinbutton */ 
div.radwindow_Default a.pinbutton.on  
{  
    backgroundtransparent url('/Images/Dialogs/Login/CommandSprites.gif'no-repeat -120px 0;  
}  
 
div.radwindow_Default a.pinbutton.on:hover  
{  
    background-position: -120px -26px;  
}  
 
/* minimize button */ 
div.radwindow_Default a.minimizebutton  
{  
    backgroundtransparent url('<%=WebResource("Syntasso.Images.RadWindow.CommandSprites.gif") %>'no-repeat -60px 0;  
}  
 
div.radwindow_Default a.minimizebutton:hover  
{  
    background-position: -60px -26px;  
}  
 
/* maximize button */ 
div.radwindow_Default a.maximizebutton  
{  
    backgroundtransparent url('<%=WebResource("Syntasso.Images.RadWindow.CommandSprites.gif") %>'no-repeat -30px 0;  
}  
 
div.radwindow_Default a.maximizebutton:hover  
{  
    background-position: -30px -26px;  
}  
 
/* close button */ 
div.radwindow_Default a.closebutton  
{  
    backgroundtransparent url('<%=WebResource("Syntasso.Images.RadWindow.CommandSprites.gif") %>'no-repeat -180px 0;  
}  
 
div.radwindow_Default a.closebutton:hover  
{  
    backgroundtransparent url('<%=WebResource("Syntasso.Images.RadWindow.CommandSprites.gif") %>'no-repeat -180px -26px;  
}  
 
/* restore button */ 
div.radwindow_Default.maximizedwindow a.maximizebutton,  
div.radwindow_Default.minimizedwindow a.minimizebutton  
{  
    backgroundtransparent url('<%=WebResource("Syntasso.Images.RadWindow.CommandSprites.gif") %>') 0 0 !important;  
}  
 
div.radwindow_Default.maximizedwindow a.maximizebutton:hover,  
div.radwindow_Default.minimizedwindow a.minimizebutton:hover  
{     
    backgroundtransparent url('<%=WebResource("Syntasso.Images.RadWindow.CommandSprites.gif") %>') 0 -26px !important;  
}  
 
div.radwindow_Default table.titlebarcontrols a.windowicon  
{  
    backgroundtransparent url('<%=WebResource("Syntasso.Images.RadWindow.WindowCornerSprites.gif") %>') -21px -59px no-repeat;  
    cursordefault;  
    margin8px 0 0 3px;  
}  
 
div.radwindow_Default table.titlebarcontrols em  
{  
    fontnormal 14px ArialVerdanasans-serif;  
    color#fff;      
    margin7px 0 0 2px;  
}  
 
div.radwindow_Default.minimizedwindow  
{  
    width170px !important;   
    height30px !important;  
    background#4b4b4b;  
    bordersolid 2px #232323;  
}  
 
/* overlay element should be minimized when the window is minimized */ 
iframe.minimizedwindowoverlay_Default  
{  
    /* take into account the borders of the main DIV of the window when setting width/height */ 
    width164px !important; height34px !important;  
}  
 
div.radwindow_Default.minimizedwindow td  
{  
    backgroundnone !important;  
}  
 
div.radwindow.radwindow_Default.minimizedwindow table.titlebarcontrols   
{  
    width150px !important;  
    height40px !important;  
    margin-top: -3px;  
}  
 
div.radwindow.radwindow_Default.minimizedwindow table.titlebarcontrols ul  
{  
    positionrelative;  
    top: -3px;  
}  
 
div.radwindow_Default.minimizedwindow em  
{  
    colorwhite !important;  
    width75px !important;  
}  
 
 
div.radwindow_Default.minimizedwindow td.corner  
{  
    cursordefault;  
}  
 
div.radwindow_Default.minimizedwindow td.corner.topleft,  
div.radwindow_Default.minimizedwindow td.corner.topright  
{  
    width10px !important;  
}  
 
div.radwindow_Default.minimizedwindow td.titlebar  
{  
    cursordefault;  
    background#4b4b4b;  
}  
 
div.radwindow_Default .windowcontent .windowpopup  
{  
    margin:16px;  
    font:normal 11px Arial;  
    color:black;      
    padding:0px 0px 16px 50px;  
}  
 
div.radwindow_Default .windowcontent .windowpopup.radprompt  
{  
    padding: 0;  
      
}  
 
div.radwindow_Default .windowcontent .windowpopup.radconfirm  
{  
    backgroundtransparent url('/Images/Dialogs/Login/ModalDialogConfirm.gif'no-repeat 8px center;     
}  
 
div.radwindow_Default .windowcontent .dialogtext  
{  
    text-alignleft;  
}  
 
div.radwindow_Default .windowcontent input.dialoginput  
{  
    padding3px 4px 0 4px;  
    height17px;  
    width: 100%;  
    fontnormal 11px VerdanaArialSans-serif;  
    bordersolid 1px black;  
    background#d6d6d6;  
}  
 
div.radwindow_Default .windowcontent a,  
div.radwindow_Default .windowcontent a span  
{  
    text-decorationnone;  
    colorblack;  
    line-height14px;  
    cursordefault;  
}  
 
div.radwindow_Default .windowcontent a.radwindowbutton  
{  
    margin8px 1px 0 0;  
    bordersolid 1px black;  
    background#4f4f4f;  
    font-weightbold;  
}  
 
div.radwindow_Default .windowcontent a.radwindowbutton span.outerspan  
{  
    padding: 0 3px 0 0;  
    bordersolid 1px white;  
}  
 
div.radwindow_Default .windowcontent a.radwindowbutton span.innerspan  
{  
    padding: 0 12px;  
    colorwhite;  
    line-height22px;  
}  
 
div.modaldialogbacgkround  
{  
    backgroundblack;  
}  
 
/* set window transparency */ 
div.radwindow.radwindow_Default.normalwindow.transparentwindow td.corner,  
div.radwindow.radwindow_Default.normalwindow.transparentwindow td.titlebar,  
div.radwindow.radwindow_Default.transparentwindow td.footercenter  
{  
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=90);  
    opacity: .8; -moz-opacity: .8;  
}  
 
.radwindow.radwindow_Default.minimizedwindow .controlbuttons  
{  
    margin-top6px;  
}  
 
.radwindow.radwindow_Default.minimizedwindow em  
{  
    margin-top10px !important;  
}  
 
.radwindow.radwindow_Default.minimizedwindow .windowicon  
{  
    margin-top11px !important;  
}  
 
 
 
div.radwindow.minimizedwindow .pinbutton,  
div.radwindow.minimizedwindow .reloadbutton,  
div.radwindow.minimizedwindow .maximizebutton,  
div.radwindow.minimizedwindow .topresize,  
div.radwindow .pinbutton,  
div.radwindow .reloadbutton,  
div.radwindow .minimizebutton  
{  
    displaynone !important;  
Martin
Telerik team
 answered on 04 Dec 2008
4 answers
333 views
Hello, I am having a strange issue.

First I should note that I am working with the Telerik control suite for the first time with a new company. I am working with the ASP.NET Ajax controls and am running an application with the .NET 2.0 framework.

The specific problem I am running into is that adding a control to a web form causes a blank page to render.

What I am doing is this; creating a page which will use multiple Telerik controls.

First I successfully designed a page which uses the RadSplitter control and this page renders correctly.

The next step was to add a RadPanelBar to one of the Splitter's panes, however when I did this, none of the web page markup renders, all I get is a blank page.

To begin troubleshooting, I removed all other code/controls on the page and simply added the Script Manager and the example code for a basic RadPanelSplitter as given in the "First Look" example on the main site. This is the only code now in the page besides the basic page tags requisite for any ASPX form.

When this page is run I get, again, nothing but a blank page. In fact none of the web form markup is rendering, the markup the "blank" page contains (using the browser's view source) is this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
<HTML><HEAD
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> 
<BODY></BODY></HTML> 

Besides there being almost nothing but basic tags, it almost appears that the form element is just completely missing from the markup (which is necessary), but also there is code in the Head tag besides the one meta tag shown which is not rendering.

This is very strange behavior, and I'm not getting any errors at all... Perhaps since I have not worked with the Telerik controls before I have made a simple mistake, but any help would be greatly appreciated.

Thanks!
PaladinMRB
Top achievements
Rank 1
 answered on 04 Dec 2008
4 answers
88 views
I have two websites. Both have a scheduler that read all appointments from an appointments.xml file.
Website 1 insert appoitments into the appointments.xml and the scheduler on that website 1 refreshes and shows all appointments correctly. But, website 2 has a lag. All new appointments inserted by website 1 are not shown. 

How could I get website 2 to immediately pick up the changes?
I hope my question is clear. Thanks in advance for any tips.

Tania

Tania
Top achievements
Rank 1
 answered on 04 Dec 2008
3 answers
94 views
Hi i've been developping a web application with telerik ajax controls but when i tried to open it in IE6 nothing is working i keep getting Javascript error but in IE7 everything goes fine.
Daniel
Telerik team
 answered on 04 Dec 2008
3 answers
132 views

Hi,
I am using RadGrid and use the MasterTableViewEditForm Template where i used DropDownList Box. But I want to fill the Dropdown in runtime. So I want to get the specific Dropdownlist Control. I write the following code but it's not working

Dim 

 

cb As DropDownList

 

 

cb =

CType(Me.RadGrid1.MasterTableView.FindControl("DropdownList1"), DropDownList)

 

 

 

 

 

Thanks
Dibyendu
 
Dibyendu
Top achievements
Rank 1
 answered on 04 Dec 2008
1 answer
114 views
I want to show a grid with some values regarding to the parent grid (when the parent grid group is expanded).
I can retrieve values for the sub-grid based on the expanded grid group. But how to get values on each group`s expansions (client side) and then showing the sub-grid.....i need alittle help in it please.
Can you help me in it with a little code example? Please.....!!!

I want all this working more optimize and more on client side, whatever things are possible.
Sebastian
Telerik team
 answered on 04 Dec 2008
2 answers
307 views
I have a strange problem with a sample test web application.

I put a single radtextbox on the aspx page along with a standard asp.net button. What I do is, I set the value to the text property of the radtextbox in Page_Load method and after I change the value of the radtextbox and click the button to go to the server side, the text value is still the same.

Same thing applies to all radinput controls, radeditor, etc.

Am I doing something wrong?

Here are the contents of my sample application:
ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TESTAPP._Default" %> 
 
<%@ 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> 
</head> 
<body> 
    <form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <div> 
    <telerik:RadTextBox ID="RadTextBox1" runat="server"
</telerik:RadTextBox> 
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> 
    </div> 
     
    </form> 
</body> 
</html> 
 

C#:
using System; 
using System.Collections; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
 
namespace TESTAPP 
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            RadTextBox1.Text = "aaabbbccc"
        } 
 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            string s = RadTextBox1.Text; 
        } 
    } 
 

When I change the value aaabbbccc to something else and click the button, the value of RadTextBox1.Text is still aaabbbccc!


NMA
Top achievements
Rank 1
 answered on 04 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?