Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
Hi
I'm using RadcomboBox and TextBox as template columns in a RadGrid.Edited values of textbox and comboBox disappears when paging occurs.I want to retain that values.
Veli
Telerik team
 answered on 16 Jun 2009
1 answer
94 views
Hello,

I am having a persistently-intermittent issue with the scheduler in IE7.  The scheduler loads in 'day' state.  When the user clicks 'week', 'month', 'timeline', or 'business hours', the page posts to the current url + a "#" sign.   This causes a 'directory listing' page to show rather than the appropriate scheduler display.

My scheduler is inside a directory called "UserControls" inside a user control.  This control is inside of a page in the directory "UserPages".  The URL that shows after I click any button in the scheduler is "http://localhost:2285/UserControls/#" (on my development pc, but same behavior on production). My code is below.

Thanks in advance!

Ryan

<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
    <ContentTemplate>
        <pro:RadScheduler
            ID="CalendarRadScheduler"
            runat="server"
            Height="750px"
            Width="578px"
            ShowAllDayRow="False"
            AllowDelete="False"
            AllowEdit="False"
            AllowInsert="True"
            Skin="Office2007"
            HoursPanelTimeFormat="h:mm tt"
            MinutesPerRow="15"
            ShowFullTime="True"
            StartEditingInAdvancedForm="false"
            DataKeyField="MessageId"
            DataSubjectField="MessageText"
            DataStartField="Start"
            DataEndField="End"
            DataRecurrenceField="RecurrenceRule"
            DataRecurrenceParentKeyField="RecurrenceParentID"
            DayEndTime="18:30:00"
            DayStartTime="08:00:00"
            ShowFooter="false"
            OnClientAppointmentInserting="AppointmentInserting"
            OnClientAppointmentDoubleClick="AppointmentDoubleClick"
            OnAppointmentCreated="CalendarRadScheduler_AppointmentCreated">
            <AppointmentTemplate>
                <div>
                    <%# BusinessComponents.MessageFormatHelper.ConvertUrlsToLinks((Eval("Subject").ToString()))%>
                </div>
            </AppointmentTemplate>
        </pro:RadScheduler>
        <pro:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="320" Height="100"
            Animation="None" HideEvent="LeaveToolTip" Text="Loading..."
            OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" OnClientBeforeShow="clientBeforeShow" ShowCallout="true" />
    </ContentTemplate>
</asp:UpdatePanel>
 
Peter
Telerik team
 answered on 16 Jun 2009
1 answer
75 views

Hi

We have noticed a strange behaviour when you drag a window outside of a restriction zone, or outside of the browser window and release the left mouse button.  In this scenario, as the user moves their mouse back into the bounds, the window follows the mouse pointer until the left mouse button is clicked a second time.

To reproduce:

  • Open the Rad Window Restriction Zone example here.  We used IE 7.
  • Hold down your left mouse button on the top most window and drag the window upwards to the top of your browser window so that your mouse pointer is over the IE menus, address bars or tabs.
  • Release your left mouse button while the mouse pointer is over the menu/tabs/address bar.
  • Now move your mouse back inside of the restriction zone.  The window will continue to be dragged around until the mouse button is clicked again.

 

Is there any way to work around this problem?

Thanks in advance.

Georgi Tunev
Telerik team
 answered on 16 Jun 2009
3 answers
311 views
Can someone provide an example of creating a custom aggrgate in a Group Footer? Specifically, I'm not sure how to process the

CustomAggregate

event so that I can calculate the custom value for each group (in other words, not for the enitre data source).

Pavlina
Telerik team
 answered on 16 Jun 2009
1 answer
230 views
Hello,

we need to have the row height automaticly, the following code doesn't work:

<telerik:GridBoundColumn UniqueName="DATEINAME" HeaderText="Dateiname" DataField="DATEINAME" Groupable="false" Display="true">  
   <HeaderStyle Width="430px" /> 
   <ItemStyle Wrap="true" /> 
</telerik:GridBoundColumn> 

any idea?

Christian
Shinu
Top achievements
Rank 2
 answered on 16 Jun 2009
1 answer
62 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
336 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
170 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
132 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
196 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?