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

We are using the the Editor and an UpdatePanel. In this combination when running in IE9-mode, there is probably a memory leak.

Example:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="editormem.aspx.vb" Inherits="WebApplication4.editormem" %>
 
<!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="ccc" runat="server">
    </telerik:RadScriptManager>
    <div>
        <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:Button ID="aa" runat="server" Text="Hit me multiple times" />
                <telerik:RadEditor ID="re" runat="server" ContentAreaMode="Div">
                    <Content>
                        Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test<br />Test
                    </Content>
                </telerik:RadEditor>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

Each click on the button generates almost 1M more memory in the task manager which wont go away until a reload of the page!!!

Regards
Caesar
Georgi Tunev
Telerik team
 answered on 01 Jul 2011
3 answers
121 views
I have the following code intended take values selected in a RadGrid and use them as parameters in a SQL insert query.  Unfortunately this is not working and I suspect the problem is that I am not pulling the cell values for the selected rows properly.  Note, AmtDue is a calculated column value.

Can tell me where I went wrong? 

protected void RadButton2_Click(object sender, EventArgs e)
{
    foreach (GridDataItem item in RadGrid1.SelectedItems)
    {
        //GridDataItem item = (GridDataItem)RadGrid1.SelectedItems;
        int UserID = Convert.ToInt16(item["UserID"].ToString());
        string Type = "D";
        DateTime Date = DateTime.Now;
        string Description = "Monthly Storage Fee - Tag: " + (item["PackageTag"].ToString()) + Label3.Text;
        Int32 AmountDue = Convert.ToInt32((item["AmtDue"].ToString()));
 
 
        string connectionString = ConfigurationManager.ConnectionStrings["foo"].ConnectionString;
        SqlConnection connection = new SqlConnection(connectionString);
 
        try
        {
 
            SqlCommand cmd = new SqlCommand("INSERT INTO Billing (UserID, Type, Date, Description, Amount) VALUES (@UserID, @Type, @Date, @Description, @AmountDue)", connection);
            cmd.Parameters.AddWithValue("@UserID", UserID);
            cmd.Parameters.AddWithValue("@Type", Type);
            cmd.Parameters.AddWithValue("@Date", Date);
            cmd.Parameters.AddWithValue("@Description", Description);
            cmd.Parameters.AddWithValue("@AmountDue", AmountDue);
 
            connection.Open();
            cmd.ExecuteNonQuery();
        }
 
        catch
        {
            Label4.Text = "uh oh";
        }
 
        finally
        {
            connection.Close();
        }
         
 
 
 
 
 
     }
    //Label4.Text = "Fees successfully inserted";
}
Tsvetina
Telerik team
 answered on 01 Jul 2011
8 answers
274 views
Hi there

I realise I could look like a complete idiot but here goes. If I drop a tooltip on my page and leave everything as is except for changing the backcolor, it never actually changes. What am I missing here?

Davy
Marin Bratanov
Telerik team
 answered on 01 Jul 2011
3 answers
136 views
I have a dashboard page that loads four separate RadGrid's. These grids take anywhere from 2 - 8 seconds to load, and they have to load before the page will load. Is there an easy way to have the page load first and then show a loading animation for the time it takes for each of the Grid's to load? 
Tsvetina
Telerik team
 answered on 01 Jul 2011
3 answers
63 views
Hi, I'm working with the RadControls Web App Project as it was easier to build the project, but now my boss is asking why should we use this project instead of using the native ASP.NET Project. Is there a difference between these two? optimization?
One thing I noticed is that I'm having troubles while I try to edit and continue in debug mode, I tried to find the option "Enable Edit and Continue" that native project has but i didn't find it, am I doing something wrong?

Sorry if the english is not that good, Brazil .NET Programmer, hahaha.


Thanks.
Georgi Tunev
Telerik team
 answered on 01 Jul 2011
3 answers
130 views
Please help i use treeview and want to see the node count in the root ex
I want to see this before expanding
Catalogue (3)
Items (2)
Services (4)
---------------------------------------------------------------------------------------------------------------------------------------------
Tree look like this

Catalogue
        Catalogue one
                Catalogue two
                        Catalogue three
Items    
      Item one
            Item Twee
Services 
    Services one
            Services two
                    Service three
                            Service four
Shinu
Top achievements
Rank 2
 answered on 01 Jul 2011
3 answers
53 views
I have a urgent question to ask and i have problem doing it.

I have a rescheduler with Appointment on it, when i click on the appointment i want it to open RadWindow to display more information. However, i have no idea how it can be done at the server side. I have tried doing client side but it doesnt appear too.



<script type="text/javascript">
    function openwin() {
       
        var win = window.radopen('EventDetail.aspx', 'Details'); win.center();
     }

</script>

       <telerik:RadWindowManager runat="server" ID="RadWindowManager1">
            <Windows>
                <telerik:RadWindow runat="server" ID="Details" VisibleStatusbar="false" NavigateUrl="EventDetail.aspx"
                    Width="635px" Height="530px" AutoSize="false" Behaviors="Close,Move" ShowContentDuringLoad="false"
                    Modal="true">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
                                            <telerik:RadScheduler ID="RadScheduler1" runat="server" 
                                               AllowDelete="false" AllowInsert="false"   AllowEdit="False" DataDescriptionField="EventDesc"
                                                DataEndField="EventEndTime" DataKeyField="EventID" OnClientAppointmentClick="openwin()"
                                                DataSourceID="SqlDataSource1" DataStartField="EventStartTime" 
                                                DataSubjectField="EventTitle" DayEndTime="23:59:00"
                                                EditFormDateFormat="d/M/yyyy" EnableDescriptionField="True" Skin="Black" 
                                                
                                                style="z-index: 1; left: 210px; top: 34px; position: absolute; height: 425px; width: 861px" >
                                                <AdvancedForm DateFormat="d/M/yyyy" />
                                            </telerik:RadScheduler>
Marin Bratanov
Telerik team
 answered on 01 Jul 2011
2 answers
123 views
I'm working with Q1 2011 SP2 and IE9 trying to get a Line chart working with a scrolling X-axis.  The problem is the little spinning ajax graphic doesn't go away.  How can I get that to not display.  I'm binding the chart to my dataset in the code behind

Thanks

ASPX:

 

<telerik:RadChart ID="chrtSiteCompleted" runat="server"  Width="400px" Height="400px" Skin="LightBlue" AutoLayout="true" SeriesOrientation="Vertical">
      <ChartTitle>
           <TextBlock Visible="false"></TextBlock>
       </ChartTitle>
       <Legend Visible="false"></Legend>
       <Appearance Corners="Round,Round,Round,Round,7"></Appearance>
       <PlotArea>
           <Appearance Corners="Round,Round,Round,Round,7"></Appearance>
       </PlotArea>
       <Series>                        
           <telerik:ChartSeries Name="Complete Sites per Day" Type="Line">
           <Appearance></Appearance>
               <Items>
               </Items>
           </telerik:ChartSeries>
       </Series>  
       <ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="2" />                   
</telerik:RadChart>

 

Code Behind:

//Get Sites Completed per day
DataSet dsCompleteSites = Customer.GetCompleteSitesDay();
chrtSiteCompleted.DataSource = dsCompleteSites;
chrtSiteCompleted.Series[0].DataYColumn = "CntPerday";
chrtSiteCompleted.PlotArea.XAxis.DataLabelsColumn = "DateCompleted";
chrtSiteCompleted.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -45;
chrtSiteCompleted.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Left;
chrtSiteCompleted.DataBind();

 

Tsvetie
Telerik team
 answered on 01 Jul 2011
6 answers
217 views
Hello All,

   I have a RadGrid where there will be Update Command and Cancel Command in the edit mode.
  Now  I need to get the Control ID for the Update Command Button. Because, I need to call a Javascript function for that button click.
How do i do that?

Appreciate the Help.
Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Jul 2011
3 answers
382 views

I have a 2 list boxes on a page the master list box is loaded from code behind.   I have a second list box on the page which I want populated dynamically.  I have a sqldatasource which calls an parameterized sql strored procedure to load the data.  The control parameter is tied to a text box on the page.  Each time a item or series of items are selected from my first radio list, it populates the textbox with the item values and that in turn should call the sproc with the values as a parameter to load into the second  list box.  It works in theory J, but I’m having a problem loading my second list box.  I really don’t want to have the form post back, because it’s not very optimized even with the ajax controls that can give the same effect as it not posting back.  Any help would be greatly appreciated.

Below is an example of the scenario that I have.

 

<telerik:RadTextBox ID="txtMerch" runat="server" Visible="true"> </telerik:RadTextBox>

           

            <telerik:RadListBox ID="RadListBox1" runat="server" Height="200px" Skin="Forest"                            CheckBoxes="true" Width="200px" AutoPostBack="false" OnClientItemChecked="onItemChecked" OnClientItemChecking="onItemChecking" >

            </telerik:RadListBox>

            <telerik:RadListBox ID="RadListBox2" runat="server" DataSourceID="SqlDataSource2" 

              DataKeyField="mykey" DataTextField="Locations"  Height="200px" Skin="Forest" AllowAutomaticUpdates="true" AutoPostBack="false"

            CheckBoxes="true" Width="200px">

            </telerik:RadListBox>

            <asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings:MyConnectstring %>"

        runat="server"  

           

            SelectCommand= "[dbo].[RptMgr_GetLocations]"

           

            ProviderName="<%$ ConnectionStrings:MyConnectstring.ProviderName %>"

            SelectCommandType="StoredProcedure" DataSourceMode="DataReader">

        <SelectParameters>

<asp:ControlParameter ControlID="txtMerch"  Name="merch"

PropertyName="Text" Type="String"  />

            <asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />

        </SelectParameters>

    </asp:SqlDataSource>

Genady Sergeev
Telerik team
 answered on 01 Jul 2011
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?