Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
235 views
Hi,

When i run aspx application, which contains radgrid with sqldatasource, the memory gets increased very high. I am using a timer to update, which uses radgrid rebind method every 60 seconds. But if I leave it on for a day. I see the memory usage 300 mb, which is alot.

I used the following methods to dump memory usage but still no use.

RadGrid1.Dispose()
sqldatasource = nothing

Is there any solution to this matter?

Thanks
Rosen
Telerik team
 answered on 10 Jan 2009
4 answers
177 views
Hi

Is there any way to show all the Appointments for a month fully in the month view.

For Month view I donot want the Show More Link...

Please help me out..

Thanks
Archan
T. Tsonev
Telerik team
 answered on 10 Jan 2009
2 answers
125 views
Is it possible to style controls, using RadFormDecorator, when controls are in a disabled state. Currently the controls are greyed out though still apply the hover and click styles from the CSS. I am currently using IE7 and have tried using .disabled but doesnt work in IE7.

Rgds.
Martin
Telerik team
 answered on 10 Jan 2009
2 answers
105 views
 Hi,
   I am working with the RadDockZone example in the courseware.
  When I put the page in a master page, the linkbutton does not show the URL in a window. Instead, there is the link click, then the progress bar runs its course and the master/child page is returned.
  The docking works ok !
thanks for your time ....

  Here is the code:

<%@ Page Language="C#" MasterPageFile="../iqMasterPage.master" %> 
 
<%@ MasterType VirtualPath="../iqMasterPage.master" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<script runat="server"</script> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="mbfPlaceHolder1" runat="Server">  
    <div> 
    </div> 
    <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="150px" Skin="Outlook" Width="100%">  
        <telerik:RadDock ID="RadDock2" runat="server" DockMode="Docked" Title="WorkOut Schedule" Width="150px">  
            <ContentTemplate> 
                <telerik:RadCalendar ID="RadCalendar1" runat="server" Font-Names="Arial, Verdana, Tahoma" ForeColor="Black" Skin="Outlook" Style="border-color: #ececec">  
                </telerik:RadCalendar> 
            </ContentTemplate> 
        </telerik:RadDock> 
        <telerik:RadDock ID="RadDock1" runat="server" Width="150px" Skin="Outlook" Text="Your Body is a Science" Title="Quote">  
        </telerik:RadDock> 
    </telerik:RadDockZone> 
    <table style="width: 100%;">  
        <tr> 
            <td width="200px">  
                <telerik:RadDockZone ID="RadDockZone2" runat="server" FitDocks="False" Height="400px" Skin="Outlook" Width="200px">  
                </telerik:RadDockZone> 
            </td> 
            <td> 
                <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Skin="Outlook" Width="100%">  
                    <telerik:RadPane ID="RadPane1" runat="server" Height="75px" Width="113px">  
                        <asp:LinkButton ID="LinkButton1" runat="server">My Body Science</asp:LinkButton> 
                        <br /> 
                        <asp:LinkButton ID="LinkButton2" runat="server">Google</asp:LinkButton> 
                        <br /> 
                        <asp:LinkButton ID="LinkButton3" runat="server">Wikipedia</asp:LinkButton> 
                    </telerik:RadPane> 
                    <br /> 
                    <telerik:RadPane ID="RadPane2" runat="server">  
                    </telerik:RadPane> 
                    <telerik:RadSplitBar ID="RadSplitBar1" runat="server" /> 
                    <br /> 
                </telerik:RadSplitter> 
            </td> 
        </tr> 
    </table> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Animation="Fade" Skin="Telerik">  
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" runat="server" Animation="FlyIn" Behavior="Resize,Minimize,Close,Maximize,Move,Reload" InitialBehavior="None" OpenerElementID="linkButton1" Title="Google" VisibleStatusbar="false" NavigateUrl="http://www.mybodyscience.com" Left="" Style="display: none;" Top="">  
            </telerik:RadWindow> 
            <telerik:RadWindow ID="RadWindow2" runat="server" Behavior="Resize,Minimize,Close,Maximize,Move,Reload" InitialBehavior="None" OpenerElementID="linkButton2" Title="My Body Science" VisibleStatusbar="false" NavigateUrl="http://www.google.com" Left="" Style="display: none;" Top="">  
            </telerik:RadWindow> 
            <telerik:RadWindow ID="RadWindow3" runat="server" Animation="Resize" OpenerElementID="linkButton3" Title="Wikipedia" Behavior="Resize,Minimize,Close,Maximize,Move,Reload" InitialBehavior="None" Left="" NavigateUrl="http://www.wikipedia.org" Style="display: none;" Top="">  
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
</asp:Content> 
 
IQworks
Top achievements
Rank 1
 answered on 09 Jan 2009
0 answers
61 views
Hello,

In RadDateTimePicker, If I enter 02/31/2008, it automatically changes to 02/28/2008. The  required functionality is to display error. Please let me know.

Regards.
Avin
Top achievements
Rank 1
 asked on 09 Jan 2009
2 answers
155 views
Hi,

I have followed Help Directions and Telerik Trainer video regarding Skinning as well.

The problem is my custom skin File is not being recognized or read, here are the details:

RadPanelBar is inside a UserControl.

UserControl Location: RootFolder\Controls\ascx file
Telerik Skin File Location: RootFolder\Telerik\Skins\Blue\PanelBar.Blue.css

UserControl Page:
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Blue" Width="99%" EnableEmbeddedSkins="False"
    ExpandMode="SingleExpandedItem" AllowCollapseAllItems="True">
<ExpandAnimation Type="Linear" Duration="300" />
        <CollapseAnimation Type="Linear" Duration="300"  />

    <Items>
        <telerik:RadPanelItem runat="server" Text="&nbsp;&nbsp;<b>Instructions:</b>" ImageUrl="~/App_Themes/Blue/images/InstructionsIcon.gif" ClickedCssClass="InstructionsHeading">
            <Items>
                <telerik:RadPanelItem runat="server"
                    Text="some text here">
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
    </Items>

</telerik:RadPanelBar>

UserControl Code Behind File:


protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            HtmlLink link = new HtmlLink();
            link.Href = "~/Telerik/Skins/Blue/PanelBar.Blue.css";  //All definitions have been replaced with "_Blue"
            link.Attributes.Add("type", "text/css");
            link.Attributes.Add("rel", "stylesheet");
            Page.Header.Controls.Add(link);          
        }
        RadPanelBar1.Items[0].Expanded = true;
    }

Please Help!
AL
Top achievements
Rank 1
 answered on 09 Jan 2009
1 answer
111 views
Hello;

I'm working on upgrading a series of applications using grid 4.5.0 to grid 5.1.5.  In some cases, there is code relying on access to GridEditableItem.DataItem in the PreRender event that seems to no longer work.  I just wanted to quickly check -- should the DataItem for a GridItem still be available in PreRender?

Thanks in advance,
Jason
jmillar
Top achievements
Rank 1
 answered on 09 Jan 2009
3 answers
96 views
In the screenshot below you can see that in firefox the appointments don't overlap but they do in IE7...this app is still being developed so there are no live versions out there. The window to the right is firefox and the window to the left is IE7. Also i haven't tested it with any other browsers.

http://img504.imageshack.us/img504/4271/calnk7.png
Ben
Top achievements
Rank 1
 answered on 09 Jan 2009
1 answer
111 views
Hello,

In the RadGrid, we're currently using grouping on a date field.  This data is being sorted in a format that's incorrect when related to dates though.  The formatting is formatting the date as a string.  For instance, if the data is sorted in ascending order, the data is grouped in the RadGrid as:

1/11/2009
1/23/2009
1/7/2009
1/9/2009

I assume this is because the field is being compared as a string; is there a way to specify that the field is a date and to sort that way, or another way to handle this?
Brian Mains
Top achievements
Rank 1
 answered on 09 Jan 2009
3 answers
506 views
I am fairly new to the Client side programming and enjoy the increased performance it provides users.  with that said, I am trying to do a pretty simple math calculation with 2 RadDateTimePickers.  I would like to pass their values to the JS and output the difference.

Any assistance would be appreciated, I seem to recall seeing an example somewhere in the Demo's however I can't find it again.

chuck

<script language="javascript" type="text/javascript">

        function dateDif() {
            date1 = new Date();
            date2 = new Date();
            diff = new Date();

            date1temp = new Date(document.getElementById("<%= RadDateTimePicker1.ClientID %>").value);
            document.getElementById("txtDate1").value = date1temp.getTime();
            date1.setTime(date1temp.getTime());

            date2temp = new Date(document.getElementById("<%= RadDateTimePicker2.ClientID %>").value);
            document.getElementById("txtDate2").value = date2temp.getTime();
            date2.setTime(date2temp.getTime());


            // sets difference date to difference of first date and second date
            //alert("firstDiff")
            diff.setTime(Math.abs(date1.getTime() - date2.getTime()));

            //alert("next is time diff")
            timediff = diff.getTime();

            //alert("next is weeks diff")
            weeks = Math.floor(timediff / (1000 * 60 * 60 * 24 * 7));
            timediff -= weeks * (1000 * 60 * 60 * 24 * 7);
            document.getElementById("txtWeeks").value = weeks;

            //alert("next is days diff")
            days = Math.floor(timediff / (1000 * 60 * 60 * 24));
            timediff -= days * (1000 * 60 * 60 * 24);
            document.getElementById("txtDays").value = days;

            //alert("next is hours diff")
            hours = Math.floor(timediff / (1000 * 60 * 60));
            timediff -= hours * (1000 * 60 * 60);
            document.getElementById("txtHours").value = hours;

            //alert("next is minites diff")
            mins = Math.floor(timediff / (1000 * 60));
            timediff -= mins * (1000 * 60);
            document.getElementById("txtMinutes").value = mins;

            //alert("next is seconds diff")
            secs = Math.floor(timediff / 1000);
            timediff -= secs * 1000;
            document.getElementById("txtSeconds").value = secs;

            document.getElementById("output").value = weeks + " weeks, " + days + " days, " + hours + " hours, " + mins + " minutes, and " + secs + " seconds";

            return false; // form should never submit, returns false - prevents postback of page and just returns value
        }


    </script>
 <telerik:RadDateTimePicker ID="RadDateTimePicker1" SharedCalendarID="SharedCalendar" SharedTimeViewID="SharedTimeView" runat="server">
    </telerik:RadDateTimePicker>
    <br />
<telerik:RadDateTimePicker ID="RadDateTimePicker2" SharedCalendarID="SharedCalendar" SharedTimeViewID="SharedTimeView" runat="server">
    </telerik:RadDateTimePicker>
    <telerik:RadTimeView ID="SharedTimeView" runat="server" Skin="Inox">
    </telerik:RadTimeView>
    <telerik:RadCalendar ID="SharedCalendar" runat="server" EnableMonthYearFastNavigation="False"
        EnableMultiSelect="False" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
        Skin="Inox">
    </telerik:RadCalendar>
    <br />
<input id="Button1" type="button" value="Calc" onclick="return dateDif();" /><br />
Date Difference:<br />
    <input type="text" id="output" name="difference" value="" size="60" />
    <br />
    <br />
    <br />
    Display values:<br />
    date1:
    <input type="text" id="txtDate1" name="difference" value="" size="30" /><br />
    date2:
    <input type="text" id="txtDate2" name="difference" value="" size="30" /><br />
    Number of weeks:
    <input type="text" id="txtWeeks" name="difference" value="" size="30" /><br />
    Number of days:
    <input type="text" id="txtDays" name="difference" value="" size="30" /><br />
    Number of hours:
    <input type="text" id="txtHours" name="difference" value="" size="30" /><br />
    Number of minutes:
    <input type="text" id="txtMinutes" name="difference" value="" size="30" /><br />
    Number of seconds:
    <input type="text" id="txtSeconds" name="difference" value="" size="30" /><br />
Serrin
Top achievements
Rank 1
 answered on 09 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?