Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views
Hi all,

I've been exploring various options for visualizing data inside of docking components. 

I had started with just using a Microsoft Chart Control inside of a RadDock. This works fine, but I was hoping to find better.
I moved on to using a RadChart inside of the RadDock. I have no need for 'zooming' functionality and due to some other limitations (e.g. performance issues with large datasets / wishing it would resize with the RadDock) I decided to explore what my options were with Silverlight Charts.

So, I spent some time ripping out the Silverlight RadChart displayed here: http://demos.telerik.com/aspnet-ajax/chart/examples/silverlight/defaultcs.aspx and moving it into my demo app. I ripped out basically everything except the actual chart and placed it inside of a Web User Control (.ascx). Through these means I was able to place the chart displayed into a RadDock.

I went to test my app and... the chart disappears the second I move a dock! And it never comes back. 

Are Silverlight controls incompatible with RadDock?
Pero
Telerik team
 answered on 08 Dec 2010
3 answers
460 views
Hello I have a problem with the NeedDataSource event of the radlistview. I tried several things but it will only bind once in the initial pageload. I also placed a radgrid on the form to see if the code and/or events are correct and they are because the radgrid is behaving as expected (click the pager or edit button and the needdatasource event is fired). What could this be? Only thing I could see in reflector is a slightly different implementation of the event if i compare the listview with the grid.

To overcome all the details i created a new sample form as below with the same problem.
ASPX:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Artikelgroepen.aspx.cs" Inherits="Drumis.ECommerce.Website.Admin.Content.Artikelgroepen" %>
<%@ 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">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:radscriptmanager id="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Path="~/scripts/script.js" />
        </Scripts>
    </telerik:radscriptmanager>
  
    <div>
  
      
<telerik:RadWindow runat="server" Width="750px" Height="560px" VisibleStatusbar="false" AutoSize="true"
    NavigateUrl="~/FileExplorer/Explorer.aspx" ID="ExplorerWindow" Modal="true" Behaviors="Close,Move">
</telerik:RadWindow>
  
<telerik:radcodeblock runat="server" ID="codeblock1">
<script type="text/javascript">
  
    function OpenFileExplorerDialog() {
        var wnd = $find("<%= ExplorerWindow.ClientID %>");
        wnd.show();
    }
  
    function ChangeRows() {
        var rt = document.getElementById('<%= ActiveRelatiesText.ClientID %>');
        var ht = document.getElementById('<%= RowText.ClientID %>');
  
        rt.rows = ht.value;
    }
</script>
</telerik:radcodeblock>
  
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
      
    <div id="ConfigPanel" style="margin:5px;padding:5px;border: 1px solid black;">
        <table width="100%" cellpadding="3" cellspacing="0">
            <tr>
                <td>
                    <asp:Label ID="LanguageLabel" runat="server"  meta:ResourceKey="LanguageLabel">Selecteer een taal:</asp:Label>
                </td>
                <td>
                    <telerik:RadComboBox ID="LanguageCbx" runat="server" AutoPostBack="True"></telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="RelatieHeaderLabel" runat="server"  meta:ResourceKey="RelatieHeaderLabel">Selecteer een relatie</asp:Label>
                </td>
                <td>
                    <asp:Label ID="ActiveRelatieHeaderLabel" runat="server"  meta:ResourceKey="ActiveRelatieHeaderLabel">Gekoppelde relaties voor geslecteerde artikelgroep</asp:Label>
                </td>
            </tr>
            <tr>
                <td valign="top">        
                    <telerik:RadComboBox ID="RelatiesCbx" runat="server" AppendDataBoundItems="true" AutoPostBack="true">
                        <Items>
                            <telerik:RadComboBoxItem Text=" Selecteer " Value="-1" />
                        </Items>
                    </telerik:RadComboBox>
                </td>
                <td>
                    <asp:TextBox ID="ActiveRelatiesText" runat="server" Rows="1" Columns="60" TextMode="MultiLine" ReadOnly="true"
                        onfocus="ChangeRows();" onblur="this.rows='1';"></asp:TextBox>
                    <asp:HiddenField ID="RowText" runat="server" Value="90" />
                </td>
            </tr>
        </table>
    </div>
  
<telerik:RadListView ID="GroepenLvw" runat="server" AllowPaging="True" ItemPlaceholderID="GroepItemContainer">
    <LayoutTemplate>
        <fieldset style="width: 700px;">
            <legend>Artikelgroepen</legend>
            <table cellpadding="0" cellspacing="0" style="width: 700px;">
                <tr>
                    <td>
                        <asp:Panel ID="GroepItemContainer" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <telerik:RadDataPager ID="GroepPager" runat="server" PagedControlID="GroepenLvw"
                            PageSize="6">
                            <Fields>
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                            </Fields>
                        </telerik:RadDataPager>
                    </td>
                </tr>
            </table>
        </fieldset>
    </LayoutTemplate>
    <ItemTemplate>
        <fieldset style="float: left; width: 226px; height: 200px;">
            <table cellpadding="2" cellspacing="0" style="height: 100%;">
                <tr>
                    <td style="width: 20%;">
                        <asp:label ID="MenuTekstLabel" runat="server">Headertekst</asp:label>            
                    </td>
                    <td style="width: 80%; padding-left: 5px;">
                        <asp:Label ID="NormalTekstText" runat="server" Text='<%# Eval("strNormalTekst") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:label ID="MenuIconLabel" runat="server">Menu icoon</asp:label>                        
                    </td>
                    <td style="width: 80%; padding-left: 5px;">
                        <telerik:RadBinaryImage id="IconRbi" runat="server" AutoAdjustImageControlSize="true" ResizeMode="None" ImageAlign="Middle" BorderWidth="0" 
                                        ImageUrl='<%# ResolveUrl(String.Concat("~/MenuIcons/",App.Configuration.MenuIconHeight, "x", App.Configuration.MenuIconWidth, ".", Eval("StrIconPath"))) %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:label ID="MenuvoettekstLabel" runat="server">Menu voettekst</asp:label>
                    </td>
                    <td style="width: 80%; padding-left: 5px;">
                        <asp:label ID="DetailTekstText" runat="server" Text='<%# Eval("StrDetailTekst") %>' ></asp:label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:ImageButton ID="Button1" runat="server" CommandName="Edit" ImageUrl="~/Images/Editor.png" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </ItemTemplate
    <EditItemTemplate>
        <fieldset style="float: left; width: 226px; height: 240px;">
            <table cellpadding="2" cellspacing="0" style="height: 100%;">
                <tr>
                    <td style="width: 20%;">
                        <asp:label ID="MenuTekstLabel" runat="server">Headertekst</asp:label>            
                    </td>
                    <td style="width: 80%; padding-left: 5px;">
                        <asp:TextBox ID="NormalTekstText" runat="server" Text='<%# Bind("strNormalTekst") %>' width="75%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:label ID="MenuIconLabel" runat="server">Menu icoon</asp:label>                        
                    </td>
                    <td style="width: 80%; padding-left: 5px;">
                        <asp:TextBox ID="ImagePathText"  runat="server" Text='<%# Bind("StrIconPath") %>' ></asp:TextBox
                        <asp:Button ID="PreviewImage" runat="server" text="Browse" CssClass="art-button" OnClientClick="OpenFileExplorerDialog(); return false;" />
                        <telerik:RadBinaryImage id="IconRbi" runat="server" AutoAdjustImageControlSize="true" ResizeMode="None" ImageAlign="Middle" BorderWidth="0" 
                                        ImageUrl='<%# ResolveUrl(String.Concat("~/MenuIcons/",App.Configuration.MenuIconHeight, "x", App.Configuration.MenuIconWidth, ".", Eval("StrIconPath"))) %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:label ID="MenuvoettekstLabel" runat="server">Menu voettekst</asp:label>
                    </td>
                    <td style="width: 80%; padding-left: 5px;">
                                    <telerik:RadEditor ID="DetailTekstText" runat="server"
                                        EditModes="Html"
                                        ToolbarMode="ShowOnFocus"
                                        AutoResizeHeight="false"
                                        Height="150px"
                                        Width="98%"
                                        ToolsWidth="200px"
                                        Content='<%# Bind("StrDetailTekst") %>'>
                                    </telerik:RadEditor>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:ImageButton ID="Button1" runat="server" CommandName="Update" Text="Update" ImageUrl="~/Imgages/Update.gif" />
                        <asp:ImageButton ID="Button2" runat="server" CommandName="Cancel" Text="Cancel" ImageUrl="~/Imgages/Cancel.gif" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </EditItemTemplate
</telerik:RadListView>
  
  
<telerik:RadGrid ID="GroepGrid" runat="server" AllowPaging="True" PageSize="2"
        AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" GridLines="None"></telerik:RadGrid>
  
  
  
  
    </div>
    </form>
</body>
</html>

CODEBEHIND
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Drumis.ECommerce.WebLibrary.Bases;
using Drumis.ECommerce.Model;
using Drumis.Licentie.Configuration;
  
namespace Drumis.ECommerce.Website.Admin.Content
{
    public partial class Artikelgroepen : BasePage
    {
        [Serializable()]
        public class ArtikelGroepItem
        {
            int _iDArtikelGroep;
            int _iDArtikelGroepTekst;
            string _strDetailTekst;
            string _strGeneralTekst;
            string _strIconPath;
            string _strLocaleId;
            string _strNormalTekst;
  
            public ArtikelGroepItem(TblCSArtikelGroepTeksten item)
            {
                _iDArtikelGroep = item.IDArtikelGroep;
                _iDArtikelGroepTekst = item.IDArtikelGroepTekst;
                _strDetailTekst = item.StrDetailTekst;
                _strGeneralTekst = item.StrGeneralTekst;
                _strIconPath = item.StrIconPath;
                _strLocaleId = item.StrLocaleId;
                _strNormalTekst = item.StrNormalTekst;
            }
  
            public int IDArtikelGroep
            {
                get
                {
                    return _iDArtikelGroep;
                }
                set
                {
                    _iDArtikelGroep = value;
                }
            }
  
            public int IDArtikelGroepTekst
            {
                get
                {
                    return _iDArtikelGroepTekst;
                }
                set
                {
                    _iDArtikelGroepTekst = value;
                }
            }
  
            public string StrDetailTekst
            {
                get
                {
                    return _strDetailTekst;
                }
                set
                {
                    _strDetailTekst = value;
                }
            }
  
            public string StrGeneralTekst
            {
                get
                {
                    return _strGeneralTekst;
                }
                set
                {
                    _strGeneralTekst = value;
                }
            }
  
            public string StrIconPath
            {
                get
                {
                    return _strIconPath;
                }
                set
                {
                    _strIconPath = value;
                }
            }
  
            public string StrLocaleId
            {
                get
                {
                    return _strLocaleId;
                }
                set
                {
                    _strLocaleId = value;
                }
            }
  
            public string StrNormalTekst
            {
                get
                {
                    return _strNormalTekst;
                }
                set
                {
                    _strNormalTekst = value;
                }
            }
        }
  
        List<ArtikelGroepItem> GroepItems
        {
            get
            {
                List<int> artikelgroepIds = new List<int>();
                IQueryable<TVWD4WCSArtikelGroepenMultiLingual> col = null;
                if (RelatiesCbx.SelectedValue != "-1")
                {
                    int iOut = 0;
                    int.TryParse(RelatiesCbx.SelectedValue, out iOut);
  
                    List<int> groepenRelatie = context.TVWD4WCSArtikelGroepenPerRelaties.Where(s =>
                                                    s.IDRelatie.Equals(0) || s.IDRelatie.Equals(iOut))
                                                    .Select(s => s.GroupId).ToList();
                                                      
                    artikelgroepIds = context.TVWD4WCSArtikelGroepenMultiLinguals.Where(s => 
                                    (string.IsNullOrEmpty(s.StrLocaleId) || s.StrLocaleId.ToLower().Equals("nl")) 
                                    && groepenRelatie.Contains(s.IDArtikelGroep))
                                    .Select(s => s.IDArtikelGroep).ToList();
                }
                else
                {
                    artikelgroepIds = context.TVWD4WCSArtikelGroepenMultiLinguals.Where(s => 
                                    string.IsNullOrEmpty(s.StrLocaleId) || s.StrLocaleId.ToLower().Equals("nl"))
                                    .Select(s => s.IDArtikelGroep).ToList();
                }
  
                IQueryable<TblCSArtikelGroepTeksten> result = context.TblCSArtikelGroepTekstens.Where(s =>
                                    artikelgroepIds.Contains(s.IDArtikelGroep) && s.StrLocaleId.ToLower().Equals("nl"))
                                    .OrderBy(s => s.StrNormalTekst);
  
                List<ArtikelGroepItem> agResultItems = new List<ArtikelGroepItem>();
                foreach (var item in result)
                {
                    agResultItems.Add(new ArtikelGroepItem(item));
                }
  
                return agResultItems;
            }
        }
  
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            GroepenLvw.NeedDataSource += (s, args) =>
            {
                GroepenLvw.DataSource = GroepItems;
            };
            GroepGrid.NeedDataSource += (s, args) =>
            {
                GroepGrid.DataSource = GroepItems;
            };
        }
  
  
        protected override D4WOptions[] SetValidateOptions()
        {
            return new D4WOptions[] { D4WOptions.X_OPTNR_INTERNET };
        }
    }
}

And the baseclass
public class BasePage : Page
{
    public const string WidthUnit = "px";
    public BasePage();
    public virtual string ContentPanelWidthPixel { get; }
    public D4WData_EntityDiagrams context { get; }
    public InsadD4wUser D4wUser { get; }
    public ErrorDisplay ErrorDisplayCtrl { get; }
    public virtual bool IsHomePage { get; }
    public NavigationMenuItemList menuItemCollection { get; set; }
    public UserControl SidebarInstance { get; }
    public event EventHandler<MessageToDisplayArguments> MessageToDisplay;
    protected void BasePage_MessageToDisplay(object sender, MessageToDisplayArguments e);
    protected override void InitializeCulture();
    protected bool IsNavigation();
    protected override void OnInit(EventArgs e);
    protected void RaiseMessageToDisplay(string message, MessageType type);
    protected override void Render(HtmlTextWriter writer);
    public void SetAjaxReference(Control trigger, Control updated);
    public virtual void SetMessageHandlers();
    public void SetUserLocale();
    public void SetUserLocale(string CurrencySymbol, bool SetUiCulture);
    public void SetUserLocale(string LCID, string CurrencySymbol, bool SetUiCulture);
    protected virtual D4WOptions[] SetValidateOptions();
}

Cheers
El
Top achievements
Rank 1
 answered on 08 Dec 2010
7 answers
225 views
The following shows my RadMenu fine except when it drops down the submenu items go behind my content pane rather than over top. How can I fix this?

<radspl:RadSplitter ID="RSHeader" Orientation="Horizontal" Skin="Default" runat="server"
        FullScreenMode="True" Height="100%" SplitBarsSize="" Width="100%">
        <%-- Header Pane --%>
        <radspl:RadPane ID="RPHeader" Height="90" Width="100%" BackColor="white" Scrolling="None"
            Locked="true" runat="server">
            <table align="center" width="97%">
                <tr>
                    <td width="70px">
                        <img src="Images/keystone3.jpg" height="65px" width="68px" />
                    </td>
                    <td>
                        <br />
                        <img src="Images/DGA2.jpg" /><br />
                        <img src="Images/DGA.jpg" />
                    </td>
                    <td align="right">
                        <img src="Images/VAF.jpg" />
                    </td>
                </tr>
            </table>
        </radspl:RadPane>
        <%-- End Header --%>
        <radspl:RadSplitBar ID="RSBHeader" EnableResize="false" CollapseMode="None" runat="server" />
        <radspl:RadPane ID="RPMiddle" Height="100%" Width="100%" Scrolling="None" runat="server">
            <radspl:RadSplitter ID="RSContent" Orientation="Horizontal" runat="server" Skin="Default">
                <%--Navigation Pane--%>
                <radspl:RadPane ID="RPNavigator" Scrolling="None" Height="25px" CssClass="BackgroundColor"
                    runat="server">
                    <table align="center">
                        <tr>
                            <td>
                                <telerik:RadMenu ID="RadMenu1"  Skin="WebBlue" runat="server"
                                    OnClientItemClicked="OnClientItemClickedHandler">
                                    <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                    <Items>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Home" Value="Default.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="About" Value="About.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                            <Items>
                                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
                                                </telerik:RadMenuItem>
                                            </Items>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Imaging" Value="Imaging.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Medical Equipment"
                                            Value="Medical.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                            <Items>
                                                <telerik:RadMenuItem runat="server" Text="Biodex" Value="biodex.aspx">
                                                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                                </telerik:RadMenuItem>
                                            </Items>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Displays/Monitors"
                                            Value="Displays.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="X-ray Tubes" Value="Tubes.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="CR/plates/casettes"
                                            Value="Plates.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Lamps/Batteries"
                                            Value="Lamps.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Test Equipment"
                                            Value="Equip.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Contact" Value="Contact.aspx">
                                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                                        </telerik:RadMenuItem>
                                    </Items>
                                    <ExpandAnimation Type="OutQuart" />
                                </telerik:RadMenu>
                            </td>
                        </tr>
                    </table>
                </radspl:RadPane>
                <radspl:RadPane ID="RPMain" CssClass="ContentPane" Scrolling="None" Height="100%"
                    runat="server">
                    <radspl:RadSplitter ID="RadSplitter1" Orientation="Vertical" runat="server" Skin="WebBlue">
                        <radspl:RadPane ID="RPContent" ContentUrl="Default.aspx" Scrolling="X" runat="server">
                        </radspl:RadPane>
                        <radspl:RadSplitBar ID="RadSplitBar1" CollapseMode="None" EnableResize="false" runat="server" />
                        <radspl:RadPane ID="RadPane2" Width="22" Scrolling="None" runat="server">
                            <radspl:RadSlidingZone ID="RadSlidingZone1" Width="22" ClickToOpen="true" SlideDirection="Left"
                                runat="server">
                                <radspl:RadSlidingPane ID="RadSlidingPane1" Title="Calendar" Width="150" runat="server">
                                    <radCln:RadCalendar ID="RadCalendar1" ShowRowHeaders="false" runat="server" Skin="WebBlue"
                                        Font-Names="Arial, Verdana, Tahoma">
                                        <SpecialDays>
                                            <radCln:RadCalendarDay Repeatable="Today" Date="">
                                                <ItemStyle CssClass="radCalToday_WebBlue"></ItemStyle>
                                            </radCln:RadCalendarDay>
                                        </SpecialDays>
                                    </radCln:RadCalendar>
                                </radspl:RadSlidingPane>
                            </radspl:RadSlidingZone>
                        </radspl:RadPane>
                    </radspl:RadSplitter>
                </radspl:RadPane>
                <%--End Main Content--%>
            </radspl:RadSplitter>
        </radspl:RadPane>
        <radspl:RadSplitBar ID="RSBFooter" CollapseMode="None" EnableResize="false" runat="server" />
        <%-- Footer --%>
        <radspl:RadPane ID="RPFooter" CssClass="BackgroundImage" Height="53" Width="100%"
            Locked="true" runat="server">
            <table align="center" class="Footer" width="80%">
                <tr>
                    <td align="left">
                        <img src="Images/ccr-logo200w.jpg" height="40px" />
                    </td>
                    <td align="left">
                        <img src="Images/190_Logo_WAWF_Registered.gif" height="40px" />
                    </td>
                    <td align="left">
                        <img height="40px" src="Images/GSA_logo.gif" />
                    </td>
                    <td align="left">
                        <img src="Images/257_Logo_ORCA.gif" height="40px" />
                    </td>
                    <td>
                        <img src="Images/copyright.jpg" />
                                            </td>
                </tr>
            </table>
        </radspl:RadPane>
        <%-- End Footer --%>
    </radspl:RadSplitter>
Dobromir
Telerik team
 answered on 08 Dec 2010
1 answer
81 views
Hello,

Please take a look at the attached and let me know if it is possible to display a text box besides the groupby colum within RadGrid.( shown in red)
User gets to enter this value in the textbox upon which a validation needs to occur.

Thanks.
Iana Tsolova
Telerik team
 answered on 08 Dec 2010
1 answer
125 views
Hi
 I have radupload in a parent page like

<script type="text/javascript">
    function OpenProgressWindow() {
        if (document.all)//IE browser
        {
            win = radopen("ProgressBar.aspx", "RadWindow1");
        }
        else {
            window.setTimeout(function () {
                radopen("ProgressBar.aspx", "RadWindow1");
            }, 0);
        }
    }
    function OnClientClose(radWindow) {
        var oArea = radWindow.GetContentFrame().contentWindow.RadProgressArea1;
        oArea.CancelRequest();
    }          
</script>   

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
    <div>
        <telerik:radprogressmanager id="RadProgressManager1" runat="server"      
                onclientprogressstarted="OpenProgressWindow">     
            </telerik:radprogressmanager>    
            <telerik:radupload id="RadUpload1" runat="server" maxfileinputscount="1"></telerik:radupload>    
            <telerik:radwindowmanager id="RadWindowManager1" runat="server" showcontentduringload="true"    
                onclientclose="OnClientClose">     
                <windows>    
                    <telerik:radwindow id="RadWindow1" runat="server" width="500px" height="400px"      
                        navigateurl="ProgressBar.aspx" title="" />    
                </windows>    
            </telerik:radwindowmanager>               
        </div>    
        <asp:button id="Button1" runat="server" text="Button" />    

    </form>
</body>

and the radwindow popup has :
 <form id="form1" runat="server">
         <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>       
<telerik:radprogressmanager id="RadProgressManager1"       runat="server"></telerik:radprogressmanager> 
<telerik:radprogressarea id="RadProgressArea1" runat="server" DisplayCancelButton="True"></telerik:radprogressarea> 
  </form>   

and code behind for popup in page load is :
Page.ClientScript.RegisterStartupScript(Me.GetType(), "RegisterProgressArea", String.Format("function GetRadWindow(){{if (window.radWindow) return window.radWindow; else if (window.frameElement.radWindow) return window.frameElement.radWindow; return null;}} var radWindow = GetRadWindow();if (radWindow != null){{var progressAreasArray = radWindow.BrowserWindow.RadUploadNameSpace.ProgressAreas;progressAreasArray[progressAreasArray.length] = {0};}}", RadProgressArea1.ClientID), True)


i am getting js error saying RadUploadNameSpace as null in the script above, any ideas?

Thanks
 

Genady Sergeev
Telerik team
 answered on 08 Dec 2010
7 answers
225 views
My application has a requirement for uploading files of more that 1gb. I tried some ways but they are not working.

1. Change the httpruntime. Following is the config entry in my web.config.

<httpRuntime maxRequestLength="1024000" executionTimeout="3600000" />

Kindly suggest if its possible to upload large files using RAD upload tool and if yes, then how is it possible.

Following is my ASPX:

    <div>
        <radG:RadUpload ID="rdUpload" runat="server" MaxFileSize="10240000"/>
<%--        <radG:RadProgressArea ID="prg" runat="server" ></radG:RadProgressArea>
        <radG:RadProgressManager ID="pm" runat="server" />
--%>        <asp:Button ID="btnSave" runat="server" Text ="Save" />
<asp:Label ID="lbl" runat="server"></asp:Label>
    </div>

Further i tried ASP FileUpload control and was able to upload large files.

And also let me know if there are any best practices for Rad upload control.




Genady Sergeev
Telerik team
 answered on 08 Dec 2010
4 answers
73 views
Hi,

I have written server side code to open a RadWindow using RADOpen method in a treeview's context menu event. its working fine but I have a problem that if I click the other node in the treeview after closing the RadWindow then I'm getting the same RadWindow again.
 
the below is the code behind,

string

 

 

jsNewSection = "function btnNewClick(){ ";
jsNewSection +=
"var oWnd = radopen('Sample.aspx?ID=" + id + "&name=" + strName+ ', 'RadWindow1'); ";
jsNewSection +=
" oWnd.SetSize (800, 280); oWnd.center(); return false; ";
jsNewSection +=
"Sys.Application.remove_load(btnNewClick); }; Sys.Application.add_load(btnNewClick); ";
RadScriptManager.RegisterStartupScript(this, this.GetType(), "btnNewClick", jsNewSection, true);

html,

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" EnableViewState="false" VisibleOnPageLoad="false">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" EnableViewState="false" ></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>

Please provide me a solution to prevent from opening again.


Thanks...
Elangovan P

 

 

 

 

 

 

 

Elangovan
Top achievements
Rank 1
 answered on 08 Dec 2010
3 answers
80 views
Hi there,

Using the v5.8.1 of the MOSS 2007 RAD Editor - when we have multiple RAD Editor controls on a page, we observe very poor loading times in IE7. IE 8 is somewhat better, and of course the majority of this is presumably based on improved javascript engine and css handling. As an example, firefox 3.6 loads the page in under 3 seconds. IE8 takes just over 10, and IE7 takes over 30 (and becomes effectively unusable due to high CPU utilisation).
I have reviewed some of the performance tips and tried various options. As it stands, we now have as follows:
- no modules loading
- we are not using the CSS menus
- we have minimised the controls required on the toolbars.
- we have also tried using shared toolbar and the toolbar "showonfocus" property. Whilst these do help in loading time for the RAD objects in IE8 (as an example), the impact is minimal.

Using fiddler to trace the calls, we see that (as an example) the Sharepoint core.css is loaded for every RAD Editor instance on the page, with .4 to .5 second delay in between. Once all these have been called, it then proceeds to call editorcontentarea.css, htmleditortableformats.css and htmleditorcustomstyles.css (all 3 for each instance of the RAD Editor on the page).

The core.css have the longest delays between them - I'm assuming that for core.css this has to do with the javascript processing starting for each instance of the control?  - is there any way to stop it calling core.sss for every instance? it is cached, but the additional delay in getting the 304 response from a remote server to use the cached object all adds up to a significant percentage of (for IE8) the 10 seconds load time.

Would very much appreciate any tips or experiences around optimising these.

-IC
Stanimir
Telerik team
 answered on 08 Dec 2010
3 answers
162 views
How to set a delay before showing dropdown div? When I press a key in combobox field, an empty div appears without delay.
Kalina
Telerik team
 answered on 08 Dec 2010
3 answers
319 views
Hello,

I'm having trouble removing the border from RadListBoxes inside of my RadGrid's GridTemplateColumn. If anybody knows how to achieve this, please let me know. The below code is what I have tried - it worked to alter the height of the listbox, but not the border style or color.

Any assistance would be appreciated!

Thanks,
Casey

GridTemplateColumn definitions:
<telerik:GridTemplateColumn HeaderText="Assigned Departments" UniqueName="TemplateColumn">  
                                <ItemTemplate> 
                                    <telerik:RadListBox ID="rlbMyDepts" runat="server" Width="250px" BorderStyle="None" 
                                        DataKeyField="DEPT_CD" DataTextField="DESC">  
                                    </telerik:RadListBox> 
                                    <br /> 
                                    <asp:LinkButton ID="lbChangeAssignedDepts" runat="server" CommandName="ChangeAssignedDepts" 
                                                    OnClientClick='<%#Eval("USER_ID", "return ShowDeptsForm(\"{0}\")")%>'>Change</asp:LinkButton> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Assigned Object Classes" UniqueName="TemplateColumn1">  
                                <ItemTemplate> 
                                    <telerik:RadListBox ID="rlbMyObjects" runat="server" Width="250px" BorderStyle="None" 
                                        DataKeyField="OBCL_CD" DataTextField="OBCL_CD">  
                                    </telerik:RadListBox> 
                                    <br /> 
                                    <asp:LinkButton ID="lbChangeAssignedObjects" runat="server" CommandName="ChangeAssignedObjects" 
                                                    OnClientClick='<%#Eval("USER_ID", "return ShowObjectsForm(\"{0}\")")%>' EnableViewState="True" BorderStyle="None">Change</asp:LinkButton> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 

Code Behind in RadGrid's ItemDataBound event:
if (e.Item is GridDataItem)  
        {    
            GridDataItem d = e.Item as GridDataItem;  
 
            RadListBox myDepts = d.FindControl("rlbMyDepts"as RadListBox;  
            myDepts.BorderStyle = BorderStyle.None;  
            myDepts.BorderColor = System.Drawing.Color.White;  
            myDepts.Height = Unit.Pixel(50);  
 
            RadListBox myObjects = d.FindControl("rlbMyObjects"as RadListBox;  
            myObjects.BorderStyle = BorderStyle.None;  
            myObjects.BorderColor = System.Drawing.Color.White;  
            myObjects.Height = Unit.Pixel(50);  
        }  
 
 

Phil
Top achievements
Rank 2
 answered on 08 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?