Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views

Hello,

I am using RadControls Q3 2007 in my .NET web application.  On one of the pages I have 7 RadCombo boxes, 2 Grids, 10 text boxes and around 10 labels.  On selection change of one of the combo boxes I make an ajax call (Rad Ajax) and populate rest of the controls.  The page takes around 7 seconds to reload (IE 6 and 7 browser).  I checked that the time taken for server side processing is less than a second.  More then 6 seconds are taken by the browser to render the page.  I checked this with FireFox 3.0.6 and it takes not more then 3 seconds.

I also noticed that even if I replace the ajax call back with full post back then also the page keeps on that long to load.

Can you please help me find the reason for this delay in IE and show me the way to solve it?

Thank you very much.
Best regards,
Abdul

Paul
Telerik team
 answered on 16 Jun 2009
9 answers
351 views
Hi Guys,

I'm sure you are probably aware of this but thought I would drop you a line about it anway.

I downloaded IE8 today to have a quick play around with it and have noticed that in my projects where I have a RadSplitter set to 100% Width and 100% Height, they do not resize when I resize the browser window.

They work find in IE7/Firefox/Chrome etc, but not in IE8.  This might be a bug in IE8 being as its still in Beta but thought you might want to take a look anyway.

Let me know if you need any more info.

Thanks

Mike
Gokul
Top achievements
Rank 1
 answered on 16 Jun 2009
2 answers
186 views
I have a portal page setup and whenever I add a telerik control into one of my docks I get an error.  Works perfectly with any of the built in .NET controls.  (these are inside user controls that I'm pulling in)


Here's what I get in firefox:

missing : after property id
T\'","M/d/yyyy","h:mm tt","yyyy\'-\'MM\'...ontent_RadDockf1658171-4abc-482b-93f1-61

and in IE:

A runtime Error has occurred.
Do you wish to Debug?

Line 526
Error: Expected ':'

Here is the dashboard page:
<%@ Page Language="C#" MasterPageFile="~/resources/masterPages/insideFB_Members.master" Theme="insideFB" AutoEventWireup="true" CodeFile="dashboard.aspx.cs" Inherits="dashboard" Title="Dashboard" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit"%> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server"> 
 
<div ID="pnlOpen" runat="server" class="modalPopup" style="display:none;"> 
 
<div style="width:500px;" id="searchDIV"> 
<div class="modalHeader" style="text-align:right;"> 
<asp:LinkButton ID="closeSearch" runat="server" Text="Close Window" ForeColor="White"></asp:LinkButton> 
    &nbsp;&nbsp;&nbsp;&nbsp; 
</div> 
</div> 
<div style="width:500px;" id="OpenDIV"> 
   
   <asp:CheckBoxList ID="cbxWebParts" runat="server"> 
    </asp:CheckBoxList> 
         
<br /> 
<asp:button runat="server" CssClass="button" id="ButtonAddDock" text="Add Dock" onclick="ButtonAddDock_Click" /> 
         
</div> 
</div> 
     
 <ajaxToolkit:ModalPopupExtender ID="selectModule_MPE" runat="server" 
    TargetControlID="imAdd" 
    PopupControlID="pnlOpen" 
    BackgroundCssClass="modalBackground"  
    CancelControlID="closeSearch" OkControlID="closeSearch" 
 />     
     
    <asp:ImageButton ID="imAdd" runat="server"  
        ImageUrl="~/resources/styles/graphics/addItem.gif" /> 
    <asp:ImageButton ID="imReset" runat="server" Visible="false"  
        ImageUrl="~/resources/styles/graphics/resetToDefault.gif" /> 
         
         
 
        <br/> 
<InsideFB:RadDockLayoutNew runat="server" id="RadDockLayout1" 
            onsavedocklayout="RadDockLayout1_SaveDockLayout" 
            onloaddocklayout="RadDockLayout1_LoadDockLayout"> 
            <InsideFB:RadDockZoneNew runat="server" id="RadDockZone1" SkinID="Office2007" width="445" MinHeight="200" style="float:left;margin-right:15px;background: #f5f4e8;"> 
            </InsideFB:RadDockZoneNew> 
            <InsideFB:RadDockZoneNew runat="server" id="RadDockZone2" SkinID="Office2007" width="445" MinHeight="200" style="background: #f5f4e8;float:left;"> 
            </InsideFB:RadDockZoneNew> 
            <div style="display:none"> 
                Hidden UpdatePanel, which is used to receive the new dock controls. 
                We will move them with script to the desired initial dock zone. 
                <asp:updatepanel runat="server" id="UpdatePanel1"> 
                    <triggers> 
                        <asp:asyncpostbacktrigger controlid="ButtonAddDock" eventname="Click" /> 
                    </triggers> 
                </asp:updatepanel> 
            </div> 
        </InsideFB:RadDockLayoutNew> 
</asp:Content> 
 
 

and the dock:
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="true" CodeFile="Task.ascx.cs" Inherits="UserControls_Task" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit"%> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<script type="text/javascript"> 
 
    function PopupOpening(sender, args) { 
        Telerik.Web.UI.Calendar.Popup.zIndex = 110000; 
    } 
 
</script>  
 
<div class="sectionContent"> 
 
<asp:UpdatePanel ID="taskUpdate" runat="server"> 
<ContentTemplate> 
 
<asp:Panel ID="addTaskPanel" runat="server"> 
    <table> 
        <tr> 
            <td> 
                <asp:TextBox ID="newTask_TB" runat="server" Width="150"></asp:TextBox> 
            </td> 
            <td> 
                <telerik:RadDateTimePicker ID="taskenddate_RDTP" Skin="Office2007" runat="server"> 
                    <Calendar DayNameFormat="FirstLetter" 
                           UseColumnHeadersAsSelectors="False" 
                           UseRowHeadersAsSelectors="False"> 
                    </Calendar> 
                    <ClientEvents OnPopupOpening="PopupOpening" /> 
                </telerik:RadDateTimePicker> 
            </td> 
            <td style="padding-left:20px;"><asp:ImageButton ID="addTask_BTN" runat="server" OnClick="addTask_BTN_Click" ImageUrl="~/resources/styles/graphics/inlineInsert.gif" /></td> 
        </tr> 
    </table> 
     
     
     
</asp:Panel> 
 
<hr /> 
 
 
<asp:GridView ID="tasksGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="taskid" 
        DataSourceID="task_LDS" OnRowDataBound="tasksGrid_RowDataBound"> 
    <Columns> 
        <asp:TemplateField> 
            <ItemTemplate> 
                <asp:CheckBox ID="select_CB" runat="Server"/> 
            </ItemTemplate> 
        </asp:TemplateField>  
        <asp:BoundField DataField="taskid" HeaderText="taskid"  
            InsertVisible="False" ReadOnly="True" SortExpression="taskid" Visible="false" /> 
        <asp:BoundField DataField="taskdate" HeaderText="Date" DataFormatString="{0:d} {0:t}"  
            SortExpression="taskdate" /> 
        <asp:BoundField DataField="tasktext" HeaderText="Task"  
            SortExpression="tasktext" ItemStyle-Wrap="true" /> 
    </Columns> 
    <EmptyDataTemplate> 
        <div class="gridView_NoRecords"> 
                <p> 
               No active tasks. 
               </p> 
        </div> 
    </EmptyDataTemplate> 
</asp:GridView> 
 
 
</ContentTemplate> 
<Triggers> 
    <asp:AsyncPostBackTrigger ControlID="addTask_BTN" EventName="Click" /> 
</Triggers> 
</asp:UpdatePanel> 
 
    <asp:LinqDataSource ID="task_LDS" runat="server"  
        ContextTypeName="insidefbDataContext" TableName="entitytasks" OnSelecting="task_LDS_Selecting"> 
    </asp:LinqDataSource> 
 
<br /> 
<asp:Button ID="DeleteTasks" runat="server" Text="Mark Complete" OnClick="DeleteTasks_Click" /> 
</div> 


Thanks
~Dave




David Moore
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
133 views

Hi
I have a simple RadGrid setup in automatic edit mode.
I coverted one of the columns to Template and editing on that column works OK.
When I replaced that textbox with a combo box populated from an SQL datasource,
and 2-way bound to the column, the EDIT link button does nothing when clicked, and
I get an error in Firefox error console:

Error: [Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Selection out of range
Parameter name: value' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

 

Does this shed any light?

Thanks for any help.

I am sure this worked once, but it doesn't now..

Clive

Veli
Telerik team
 answered on 16 Jun 2009
2 answers
209 views
Hi,
Here is what I'm trying to do:
I have a usercontrol hosted in a webpart in a sharepoint page. This usercontrol had a RAD editor(asp.net, RadEditor.net2.dll versioned, 7.2.1.0) which was working fine.
We have a requirement of introducing Image uploader for editor. Which did work fine when we had the image upload path defined in windows file system folder through virtual url. But since the production scenario have several front ends, maintaining the image uploaded in any one of the server would cause to have no image on other front ends. For same reason(to avoid the problem of syncing image folders of all front ends) we decided to maintain the images in Picture document library of Sharepoint. But obviously the usual RAD editor did not pick images from picture library of sharepoint.
This is when we went for RAD Editor lite. We want to use RAD editor lite in same way we used earlier version of Rad editor(asp.net control). I tried to declare it in user control as:(method mentioned in SDK of Rad editor lite in "Using RadEditor in custom MOSS solutions" section)
MOSSRadEditor contentEditor = new MOSSRadEditor();
But the building of project it self is failing with error as no constructors defined for same.
I also tried to declare it in user control directly as :
<radE:MOSSRadEditor  .....>
                        </radE:MOSSRadEditor>
with appropriate register tags in the user control. But the tag is not at all recognized(we used previous RAD editor in similar fashion).

Now my questions are:
1. How can I use RAD editor Lite in a user control(how to declare the editor) ?
2. Can the older RAD editor be configured to use images from Sharepoint picture library? If yes, how?
3. or is there a bettter solution for the above mentioned problem scenario?
Stanimir
Telerik team
 answered on 16 Jun 2009
5 answers
135 views
Hello,

I am using RadControls for ASPNET AJAX Q1 2009 and I am unable to set the height of a rad window above about 200. I tried setting it in the properties window and through JavaScript without success. Setting the width to a large amount(ie. 500) works fine. The rad window displays a dynamically created tree.

Thanks,

John
John
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
67 views

I have a page with a treeview and many other controls. When you click on a node in the treeview a section of the page is reloaded with a different control or in some cases the same control. The page has always worked in Firefox and IE prior to the 2009.1 527 build. Now it only works in IE.  It appears that treeview events or something else with the RadControls are causing Firefox to work differently then before. When debugging the code it appears the controls are not reloaded in Firefox but are in IE.  

 

I went back and used the order version (2009.1 402) which worked just fine… The real odd thing is I tried the latest internal build of 2009.1 609 and it worked too. However, I don’t see anything in the Release Notes about this type of a fix.

 

Let me know if there is something I can do with the 2009.1 527 versions to make it work instead of waiting for the next production build.

Atanas Korchev
Telerik team
 answered on 16 Jun 2009
1 answer
99 views
Is it possible to render a usercontrol within a RadEditor document?

I typically create usercontrols for my RadGrid (ItemTemplate) to display data.  My users would like to put that same data in a document they create.  Could I programmatically simply add into the document a correct reference to the control?  Or could i extract from a copy of the UserControl the outputted HTML and insert that into the RadEditor document?
Rumen
Telerik team
 answered on 16 Jun 2009
3 answers
314 views
when I type 30 i get: 30.00. How can I leave it 30?
Iana Tsolova
Telerik team
 answered on 16 Jun 2009
1 answer
77 views
Hi Folks.
Its been a havoc with Rad Controls coz i face lot of problems in a day.
The Problem was that while Debugging the Project file i mean in the visual studio environment everything works fine.
However if i publish that to my Default iis Website am getting the Page But could not open the Rad Drop Down if i select that.
I Thought there are many Reasons for it and i have even Tried To Troubleshoot one by one
a)Folder permissions or Security-Checked correctly
b)Checking the Code whether the Rad Combo has items -Checked by (Response.Write(RadCombobox1.Items.Count));
c)No IIS Problem.
d)Checked the Browser Settings
Another Error i encounter in the Same Scenario it is that
Actually i have a Textbox and Button where i add the Values to the RadCombo he JavaScript of it is as follows.
function AddNewItem() { 
              
             var combo = $find("<%= RadComboBox2.ClientID %>"); 
             
             var intextput = document.getElementById("addmodule").value; 
             
             var comboItem = new Telerik.Web.UI.RadComboBoxItem(); 
             comboItem.set_text(intextput); 
             combo.trackChanges(); 
             combo.get_items().add(comboItem); 
             comboItem.select(); 
             combo.commitChanges(); 
             comboItem.scrollIntoView(); 
             document.getElementById('addmodule').style.display = 'none'; 
             document.getElementById('Additem').style.display = 'none'; 
         } 

Now am Getting The  Runtime Error in The First Line in ie while Trying to Debug it took me to VS 2008 environment with iexplore.exe.
Strange thing is that While Debugging  my code happens like this and Shows Error "Not Defined"
  function AddNewItem() { 
             var combo = $find("RadComboBox1"); 
             
             var intextput = document.getElementById("addmodule").value; 
             
             var comboItem = new Telerik.Web.UI.RadComboBoxItem(); 
             comboItem.set_text(intextput); 
             combo.trackChanges(); 
             combo.get_items().add(comboItem); 
             comboItem.select(); 
             combo.commitChanges(); 
             comboItem.scrollIntoView(); 
             document.getElementById('addmodule').style.display = 'none'; 
             document.getElementById('Additem').style.display = 'none'; 
         } 
Can you see the difference.
Plz Help me to Solve this probs as it is a ShowStopper for my proj.
Thanks
Regards
N.Balaji



Atanas Korchev
Telerik team
 answered on 16 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?