Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
160 views
Hi,

I have a RadWindow maximized that opens up a SQL Server Reporting Services report on a Sharepoint server.  In IE7 or IE8 (only browsers I have tested) when the browser is in normal state (say with height of 800px) and opens a report that uses the SSRS drill down feature, the maxmized RadWindow will shift up and the top bar of the RadWindow will disappear when the + button is pressed on the report and subsequently expands.  See screenshots for before and after.     If I min/max browser or resize it, the RadWindow will snap back into its proper maximized position.   Below is my RadWindowManager.  Opened with window.radopen
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
      KeepInScreenBounds="True"
                    Behaviors="Close" DestroyOnClose="True" style="z-index: 9000"  
                Title="Open Report"
                InitialBehaviors="Maximize" Height="25px" MinHeight="20px" >
  </telerik:RadWindowManager>


Daniel
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
212 views
Hi Team,

I have RadNumericTextBox on my page with Client-Event OnValueChanged.
I've defined a client-side function to handle the event. Whenever I change value, It fires the event correctly but when try to set the value to textbox using sender.set_value() method it sets the value and fires the event again. Is this the expected behavior for RadNumericTextBox ?
Please note that I display a confirmation message to user which is being displayed twice now, I know we can trick the javascript to display message only once but I dont understand why this event fires twice.
Any clue will be appreciated.

Thanks

Tejas
Tejas
Top achievements
Rank 1
 answered on 29 May 2012
5 answers
171 views
I have implemented an advanced insert/edit form following the demo.  My insert form comes up as expected however my Edit template never comes up.  If I double click on an existing appointment or right click and do edit nothing happens.  I've wired up both OnClientFormCreated and OnFormCreated  I see both called on the insert but not on edit.  Is there anything else I could debug to try and find out why the edit form won't display.


<telerik:RadScheduler ID="radSchedulerMain" Height="100%" runat="server" EnableExactTimeRendering="true" ShowAllDayRow="False" ShowHeader="true" ShowFooter="False"  StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true" OverflowBehavior="Expand" EnableDescriptionField="False" WorkDayStartTime="00:00"  WorkDayEndTime="23:59" OnClientFormCreated="schedulerFormCreated2"
              SelectedView="WeekView" ShowFullTime="True" ProviderName="TestSchedulerDataProvider" MinutesPerRow="60" TimeLabelRowSpan="1" onappointmentspopulating="radSchedulerMain_AppointmentsPopulating" OnAppointmentUpdate="radSchedulerMain_AppointmentUpdate" OnAppointmentInsert="radSchedulerMain_AppointmentInsert" OnAppointmentDelete="radSchedulerMain_AppointmentDelete" OnFormCreated="radSchedulerMain_FormCreated" OnNavigationComplete="radSchedulerMain_NavigationComplete"  >
    <AdvancedForm Modal="True"></AdvancedForm>
    <TimelineView UserSelectable="false" />
    <DayView EnableExactTimeRendering="true" />
    <WeekView EnableExactTimeRendering="true"  />
    <MonthView ReadOnly="True" />
    <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>      
    <TimeSlotContextMenus>
        <telerik:RadSchedulerContextMenu ID="schedulerMainTimeSlotContextMenu" runat="server">
            <Items>
                <telerik:RadMenuItem Text="New Schedule Segment" Value="CommandAddAppointment" />                         
            </Items>
        </telerik:RadSchedulerContextMenu>
    </TimeSlotContextMenus>
    <Localization AdvancedEditAppointment="Edit Schedule Segment" AdvancedNewAppointment="New Schedule Segment" />
    <AppointmentTemplate>
        <div>
            <%#Eval("Subject")%> <%#Eval("Description")%>
        </div>
    </AppointmentTemplate>
    <AdvancedEditTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
        />
    </AdvancedEditTemplate>
    <AdvancedInsertTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
        />
    </AdvancedInsertTemplate>
</telerik:RadScheduler>
acola
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
90 views
I'm finally biting the bullet and converting over from the old asp.net controls to asp.net for ajax, and one thing is vexing me.

In the old world, we took advantage of the fact that the title on a radwindow was rendered out verbatim to stick spans and the like into the Title on an as-needed basis from c# code for styling (ie, stylesheets will not work) and in a couple of cases, an onclick javascript function... something like:
if (someCondition)
  Title = "<span style='color:red'>" + blah + "</span>";
else if (someOtherCondition)
  Title = "<span style='color:green' onclick='doSomething();'>" + blah + "</span>";
else
  Title = blah;

In asp.net for ajax, though, it looks like the title is now being rendered after a run through Server.HtmlEncode.

Researching shows that maybe it's related to PITS entry 2541 and this thread : http://www.telerik.com/community/forums/aspnet-ajax/window/html-element-is-rendered-in-page-title.aspx

Am I looking at having to use set_title() in javascript to deal with this, or is there a property I can set on the Window/WindowManager declaration to make the window take the page's title verbatim, without running it through Server.HtmlEncode?
jf820
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
96 views
I am using Resources in the Timeline view to display names of the doctors. When users drag-and-drop the appointments in the Timeline view and lets say move the appointment from Dr. John Doe (DocId: 10) to Dr. Jane Doe (DocId: 11) slot the doctor's ID does not update properly. In the radSchedule1_AppointmentUpdate event I do the following:

Dim docid As Integer = e.ModifiedAppointment.Attributes.Item("DocId")

However, the DocId value always remains the same (10 in this case). What could be wrong? Thanks
Ilya
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
88 views
Hello,

I have an error when I want to export my scheduler to PDF.
There is a XmlException (a screenshot is attached).
The message is :

System.Xml.XmlException: There are multiple root elements

Do you know this issue ?

Peter
Telerik team
 answered on 29 May 2012
3 answers
189 views

We are transferring items between two RadListBox controls but we're finding that SortItems() does a text sort instead of a numeric sort so that all the 900s are listing before the 1000s (Sort="Descending").  I've tried setting the DataSortField, which says it needs to be a numeric field, but that doesn't help.

The markup and codebehind are posted below.  Thanks for your help.
Dan Norton

<div style="float: left; width: 350px; vertical-align: middle; margin-left:30px; margin-top: 15px;">
    <asp:Label runat="server" id="Label1"
                AssociatedControlId="radWorkOrderList"
                Text="Work Orders:" />
    <telerik:RadListBox runat="server" ID="radWorkOrderList"
                        Width="350px" Height="200px"
                        SelectionMode="Multiple"
                        AllowTransfer="true"
                        TransferToID="radAssignedWorkOrderList"
                        AutoPostBackOnTransfer="true"
                        AllowReorder="false" 
                        OnTransferring="radWorkOrderList_Transferring"
                        EnableDragAndDrop="true"
                        Sort="Descending"
                        DataSortField="Number"
                        DataTextField="Number" 
                        DataValueField="Id">
        <ItemTemplate>
            <asp:HyperLink 
                runat="server" 
                Width="50"
                Text='<%# DataBinder.Eval(Container.DataItem, "Number")%>' 
                ID="lnkWorkOrderEdit" 
                style="vertical-align:text-top;"
                NavigateUrl='<%# GetWorkOrderNavigationURL(DataBinder.Eval(Container.DataItem, "Id")) %>'
                ToolTip='<%# DataBinder.Eval(Container.DataItem, "Description") %>'
            />
            <asp:Label 
                ID="lblWorkOrderDescription" 
                Width="225" 
                runat="server" 
                Text='<%# GetShortDescription(DataBinder.Eval(Container.DataItem, "Description")) %>' 
            />
        </ItemTemplate>
    </telerik:RadListBox>
</div>
<div style="float: left; width: 375px; margin: 0px; margin-top: 15px;">
    <asp:Label runat="server" id="Label2"
                AssociatedControlId="radAssignedWorkOrderList"
                Text="Work Orders assigned to this Project:" />
    <telerik:RadListBox runat="server" ID="radAssignedWorkOrderList"
                        Width="375px" Height="200px"
                        SelectionMode="Multiple"
                        AllowReorder="false"
                        EnableDragAndDrop="true" 
                        Sort="Descending" 
                        DataSortField="WorkOrderNumber"
                        DataTextField="WorkOrderNumber"
                        DataValueField="WorkOrderId" >
        <ItemTemplate>
            <asp:HyperLink 
                runat="server" 
                Width="50"
                Text='<%# DataBinder.Eval(Container.DataItem, "WorkOrderNumber")%>' 
                ID="lnkAssignedWorkOrderEdit" 
                style="vertical-align:text-top;"
                NavigateUrl='<%# GetWorkOrderNavigationURL(DataBinder.Eval(Container.DataItem, "WorkOrderId")) %>'
                ToolTip='<%# DataBinder.Eval(Container.DataItem, "WorkOrderDescription") %>'
            />
            <asp:Label 
                ID="lblAssignedWorkOrderDescription" 
                Width="225" runat="server" 
                Text='<%# GetShortDescription(DataBinder.Eval(Container.DataItem, "WorkOrderDescription")) %>' 
            />
            <asp:Label 
                ID="lblAssignedWorkOrderStatus" 
                Width="75" runat="server" 
                Text='<%# DataBinder.Eval(Container.DataItem, "WorkOrderStatus") %>' 
            />
        </ItemTemplate>
    </telerik:RadListBox>
</div>

protected void radWorkOrderList_Transferring(object sender, RadListBoxTransferringEventArgs e)
{
        RadListBoxItem destinationItem = new RadListBoxItem();
        foreach (RadListBoxItem sourceItem in e.Items)
        {
            destinationItem = new RadListBoxItem();
            if (e.SourceListBox == radWorkOrderList)
            {
                radAssignedWorkOrderList.Items.Add(destinationItem);
                destinationItem.Value = sourceItem.Value;
                destinationItem.Text = sourceItem.Text;
                HyperLink lnkSourceWorkOrderNumber = sourceItem.FindControl("lnkWorkOrderEdit") as HyperLink;
                HyperLink lnkDestinationWorkOrderNumber = radAssignedWorkOrderList.Items.Last().FindControl("lnkAssignedWorkOrderEdit") as HyperLink;
                lnkDestinationWorkOrderNumber.NavigateUrl = lnkSourceWorkOrderNumber.NavigateUrl;
                lnkDestinationWorkOrderNumber.Text = lnkSourceWorkOrderNumber.Text;
                lnkDestinationWorkOrderNumber.ToolTip = lnkSourceWorkOrderNumber.ToolTip;
                Label lblSourceWorkOrderDescription = sourceItem.FindControl("lblWorkOrderDescription") as Label;
                Label lblDestinationWorkOrderDescription = radAssignedWorkOrderList.Items.Last().FindControl("lblAssignedWorkOrderDescription") as Label;
                lblDestinationWorkOrderDescription.Text = lblSourceWorkOrderDescription.Text;
                WorkOrder destinationWorkOrder = new WorkOrder(AppSession, int.Parse(destinationItem.Value));
                Status destinationWorkOrderStatus = new Status(AppSession, destinationWorkOrder.StatusId);
                Label lblDestinationWorkOrderStatus = radAssignedWorkOrderList.Items.Last().FindControl("lblAssignedWorkOrderStatus") as Label;
                lblDestinationWorkOrderStatus.ID = "lblAssignedWorkOrderStatus";
                lblDestinationWorkOrderStatus.Text = destinationWorkOrderStatus.Name;
                radWorkOrderList.Items.Remove(sourceItem);
            }
            else
            {
                radWorkOrderList.Items.Add(destinationItem);
                radWorkOrderList.Items.Last().Value = sourceItem.Value;
                radWorkOrderList.Items.Last().Text = sourceItem.Text;
                HyperLink lnkSourceWorkOrderNumber = sourceItem.FindControl("lnkAssignedWorkOrderEdit") as HyperLink;
                HyperLink lnkDestinationWorkOrderNumber = radWorkOrderList.Items.Last().FindControl("lnkWorkOrderEdit") as HyperLink;
                lnkDestinationWorkOrderNumber.NavigateUrl = lnkSourceWorkOrderNumber.NavigateUrl;
                lnkDestinationWorkOrderNumber.Text = lnkSourceWorkOrderNumber.Text;
                lnkDestinationWorkOrderNumber.ToolTip = lnkSourceWorkOrderNumber.ToolTip;
                Label lblSourceWorkOrderDescription = sourceItem.FindControl("lblAssignedWorkOrderDescription") as Label;
                Label lblDestinationWorkOrderDescription = radWorkOrderList.Items.Last().FindControl("lblWorkOrderDescription") as Label;
                lblDestinationWorkOrderDescription.Text = lblSourceWorkOrderDescription.Text;
                radAssignedWorkOrderList.Items.Remove(sourceItem);
            }
        }
        if (e.DestinationListBox == radWorkOrderList)
        {
            radWorkOrderList.SortItems();
        }
        else
        {
            radAssignedWorkOrderList.SortItems();
        }
        e.Cancel = true;
}

 

Richard
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
101 views
I'm able to successfully render the tagcloud, but for some reason the font weight is reversed? I.e. heavier weighted items have a smaller font than lower weighted items. 

<telerik:RadTagCloud ID="RadTagCloud1" runat="server"  renderitemweight="true" MaxNumberOfItems="40" TakeTopWeightedItems="true"
    DataMember="DefaultView" DataSourceID="SqlDataSource3" datatextfield="display_term" dataweightfield="document_count" maxfontfize="700%" MinFontSize="300%"
    WordsToExclude="a,about,after,all,also,an,and,are,not,as,at,be,been,but,by,can,could,did,do,does,problem,each,for,from,get,had,has,have,he,her,him,his,how,i,if,in,into,is,it,its,just,me,more,most,my,not,of,on,or,our,said,see,shall,she,should,so,some,than,that,the,their,there,they,this,those,to,up,used,was,we,were,what,when,which,while,who,why,will,with,would,you,your" ForeColor="White">
</telerik:RadTagCloud>
Jerry
Top achievements
Rank 1
 answered on 29 May 2012
3 answers
104 views
hi,
 
im using RadControls 2 with Asp.net 3.5 it was fine. now i converted my project to asp.net 4.0, after that the Rad Window not working.

let we assume that we have A.aspx and B.aspx. i call B.aspx from A.aspx as a small window popup, in B.aspx i have two buttons Search, and  Cancel and a textbox

i have given input to textbox and click on Search button then B.aspx window closed without any exception and without showing any result.

so, i want to know the version of RadControl2 will work on Asp.Net 4.0? If this will  work then what will be the problem?


Richard
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
107 views

Question 1:
i have 3 or more radpane, when i expand one radpane, how to collapse other radpane ?

Question 2:
when i collapse or expand one radpane, how to use animation effect, like radwindow controls (Animation="FlyIn")?

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

 

<head runat="server">
<title>Collapse / Expand RadPane</title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="false" >
<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 Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function myhidden(item) {
//How to do it ?
}
</script>
</telerik:RadCodeBlock>
<input type="button" value="myhidden" onclick="myhidden(1)" />
<input type="button" value="myhidden" onclick="myhidden(2)" />
<input type="button" value="myhidden" onclick="myhidden(3)" />
<input type="button" value="myhidden" onclick="myhidden(4)" />
<input type="button" value="myhidden" onclick="myhidden(5)" />
<telerik:RadSplitter ID="RadSplitter_InnerVert" runat="server" Orientation="Vertical" VisibleDuringInit="false" BorderSize="1" Width="100%" Height="100%">
<telerik:RadPane ID="RadPane_Collapse1" runat="server" >111</telerik:RadPane>
<telerik:RadPane ID="RadPane_Collapse2" runat="server" Collapsed="true">222</telerik:RadPane>
<telerik:RadPane ID="RadPane_Collapse3" runat="server" Collapsed="true">333</telerik:RadPane>
<telerik:RadPane ID="RadPane_Collapse4" runat="server" Collapsed="true">444</telerik:RadPane>
<telerik:RadPane ID="RadPane_Collapse5" runat="server" Collapsed="true">...</telerik:RadPane>
</telerik:RadSplitter>
</form>
</body>
</html>
Richard
Top achievements
Rank 1
 answered on 29 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?