Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
152 views
I am guessing this has been talked about before and there is probably a very easy solution, but I can't seem to find it.

I have a form which a whole bunch of other radcontrols that do an autopostback, I am finding that if a user selects the icon to open the calendar on the RadDatePicker quickly after moving off another field that the dates are unselectable on the calendar.  It seems like it is opening in the middle of the postback or something and disables it.  The only way to get out of this state is to go to another field, make a change, and then back to the calendar. 

Has anyone seen this?  Is there a way to disable that icon while in the middle of postback or something along those lines?

Thanks so much
Andy
Top achievements
Rank 1
 answered on 01 Jul 2011
2 answers
133 views
Hi All,

Is there a way to get a title on a pane to include an image?  As per the attached.  The left part shows what it is now and the right is roughly how I'd like it to look.

Obviously not a critical requirement but enhances the appearance of the page.

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 01 Jul 2011
1 answer
175 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
133 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
299 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
147 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
65 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
142 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
56 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
135 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?