Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
184 views
Hello,

I installed the Q3 update this morning and I am getting the below error now.  After some investigating, I found that it is because my StartDate and EndDate values were set to the same date and time (I am running on converted data so the dates and times were set the same...i.e. 08/25/2005 08:30 AM for both start date and end date).  When the scheduler tried to display this on the screen it gave the error.  The previous release seemed to handle this scenario ok.  It's not a big deal for us since I know the solution and we can set our data up properly.  But I wanted to make sure to point it out if this is indeed a new bug with the Q3 release.

Thanks!

Server Error in '/' Application.

Height must be non negative.
Parameter name: value

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Height must be non negative.
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Height must be non negative.
Parameter name: value]
   System.Web.UI.WebControls.Style.set_Height(Unit value) +8694900
   System.Web.UI.WebControls.WebControl.set_Height(Unit value) +30
   Telerik.Web.UI.AppointmentControl.CalculateSize() +234
   Telerik.Web.UI.DayViewAppointmentControl.CalculateSize() +45
   Telerik.Web.UI.Scheduler.Views.RowBuilder..ctor(IList`1 slotList, Int32 maxColumnWidth) +709
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateViewRows(IList`1 slotLists) +161
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateInnerContentTable(Control container, IList`1 slotLists) +101
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetInnerContent() +144
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetContent() +93
   Telerik.Web.UI.RadScheduler.CreateContent() +122
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +106
   Telerik.Web.UI.RadScheduler.CreateChildControls() +10
   System.Web.UI.Control.EnsureChildControls() +102
   Telerik.Web.UI.RadScheduler.SaveViewState() +20
   System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +50
   System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +148
   System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +148
   System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +148
   System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +148
   System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +148
   System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +148
   System.Web.UI.Page.SaveAllState() +194
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2839


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Janani
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
144 views
Hi I am using Telerik Rad Combo Box, Telerik Rad Grid, Telerik Ajax Loading Panel, and Telerik Ajax Manager on a Page

With the help of Ajax Manager and Ajax Loading Panel I am successfully reloading the grid without reloading the whole page based on the selection Index change of ComboBox(Using AuotPostBack=True property) without any code behind. Now I want to make the AutoPostBack property false because I don't want to postback every time, I will do postback only for particular selection. So I set Autopost back false and I tried to do the postback in Javascript, but now whole page is reloading when ever post back appears. So please help me to postback just the combo box and reload just the grid (not whole page) through javascript 

Note : Here I put the combobox in a user control for some additional functionalities and then using that user control on the page with all other controls I mentioned above 


Thanks
Kalina
Telerik team
 answered on 08 Mar 2011
3 answers
87 views
I have created a new Skin using the online tool but  it does not display the same in Iexplorer (8)
I have uploaded a test project showing the menu
http://www.mediafire.com/file/r5q8se4ttzias4t/TestMenu.zip
also I have added a screenshot as how it should be.

please help me fix the css to look as it is in online style builder.

Thanks in advance
Kate
Telerik team
 answered on 08 Mar 2011
1 answer
100 views
Can you Please Provide me the demo of Dynamic Multi level Parent-Child relation Rad Grid.I have gone through your demo of
Mixed Hierachical Grid but in that demo you have defind three  levels Master Tabel-Detail table-Detail Table.But we don't have fixed level it will get increase depending upon relation.Please mail me details on :shubhangi.bhosale@tcs.com.
Pavlina
Telerik team
 answered on 08 Mar 2011
5 answers
220 views
Hi ,

I have create one custom skin for radgrid .....

For page size Combo box i am facing a problem. when i click on page size dropdown it's shows me transpernt background.
Items doesn't show proper please check attach file. I want set  backgroung of items .so containtent of item can show properly.
Princy
Top achievements
Rank 2
 answered on 08 Mar 2011
2 answers
200 views
Javascript
-----------

var textbox = document.getElementById("txtCreateLabel");
           var tree = $find("<%= radtvInbox.ClientID %>");   
           var node = new Telerik.Web.UI.RadTreeNode();
           node.set_text(textbox.value);
           node.set_imageUrl = "~/Styles/Images/Webmail_Images/MyLogo.png";
           tree.get_nodes().add(node);
           tree.commitChanges();

My image is not displaying in javascript ? why ?
Bhuvan
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
114 views

Hi,

We have development a web app in .Net 4.0, AjaxControlToolKit 3.0.20820.0 and Telerik 2010.3.1215.40. When the app is running under SSL, we get security warining message only from IE8 ( FF, IE7 works fine). I have verified all links are relative and starts with https (I have used http watch). Do I have to setup/update any component?

Please advice.

-Prashanthan

Update 1: I have removed AjaxControlToolKit reference, used RadAjaxPanel instead of update panel and still I am getting the security warning message in IE8. Also, I have tried securitySwitch, customer httpmodule to redirect any request with http to https, and no luck. I have verified http watch, firebug and fiddler 2, and no request are made in http.

Update 2: I have moved the radgrid outside the RadAjaxPanel and now it doesn't show any warning in IE8. Any postback within RadAjaxPanel does show the warning message.

Any help regards this issue is appreciated.

Iana Tsolova
Telerik team
 answered on 08 Mar 2011
1 answer
96 views
Hi,

I have problem with large images being corrupted  (not fully uploaded) by RadAsynUpload control.

I was able to reproduce that issue on the demo page: http://demos.telerik.com/aspnet-ajax/upload/examples/async/webmail/defaultcs.aspx?product=asyncupload

On the demo page only 108KB of 4MB sample image was uploaded.

Sample image that got corrupter: http://rapidshare.com/files/450641510/Cup_Original.JPG
Simple project where I was able to reproduce the issue: http://rapidshare.com/files/450641568/RadAsynUploader.zip

Please advise.

Thanks,
Arek
Genady Sergeev
Telerik team
 answered on 08 Mar 2011
3 answers
146 views

I have a grid with DetailTables which are populated using OnDetailTableDataBind. The headers of the detail table are localized server side because the data is different depending upon the parent. When a row is expanded, the details display with the correct header text. The problem is when I expande another row. That's rows header text displays correctly but the first detail table's header text is now empty for each column. I've tried a few ways to set the text but neither hold their values when an additional row is expanded.

<telerik:RadGrid ID="rgInvoices" runat="server" GridLines="None" AllowPaging="True" 
    AllowMultiRowSelection="true" ShowStatusBar="true" AllowSorting="True" AutoGenerateColumns="False" 
    GroupingEnabled="False" Skin="CentreTelerikNoSelectStyle" EnableEmbeddedSkins="false" 
    OnNeedDataSource="rgInvoices_NeedDataSource" PageSize="10" OnItemCreated="rgInvoices_ItemCreated" 
    OnItemDataBound="rgInvoices_ItemDataBound" OnDetailTableDataBind="rgInvoices_DetailTableDataBind" 
    HeaderStyle-Font-Bold="true">  
    <MasterTableView ...> 
        <Columns> 
        ...  
</Columns> 
        <DetailTables> 
            <telerik:GridTableView Width="100%" AutoGenerateColumns="false">  
                <Columns> 
                    <telerik:GridBoundColumn DataField="Field2"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field3"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field4"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field5"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field6"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field7"></telerik:GridBoundColumn> 
                </Columns> 
            </telerik:GridTableView> 
        </DetailTables> 
    </MasterTableView> 
</telerik:RadGrid> 
 
protected void rgInvoices_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)  
{  
    var dataItem = (GridDataItem)e.DetailTableView.ParentItem;  
    var invoiceType =  
        (InvoiceType) Enum.Parse(typeof (InvoiceType), dataItem.GetDataKeyValue("InvoiceType").ToString());  
    CreateServiceDetailHeaders(e.DetailTableView);  
    e.DetailTableView.DataSource = GetInvoiceDetails(invoiceType);  
}  
 
private void CreateServiceDetailHeaders(GridTableView gv)  
{  
    var item = gv.GetItems(GridItemType.Header);  
    GridHeaderItem headerItem = item[0] as GridHeaderItem;  
 
    LinkButton button = headerItem["field2"].Controls[0] as LinkButton;  
    button.Text = GetLocalResource("ServiceDescriptionHeader");  
 
    //gv.Columns[0].HeaderText = GetLocalResource("ServiceDescriptionHeader");  
    gv.Columns[1].HeaderText = GetLocalResource("ServiceLaborAmountHeader");  
    gv.Columns[2].HeaderText = GetLocalResource("ServicePartAmountHeader");  
    gv.Columns[3].HeaderText = GetLocalResource("ServiceMiscAmountHeader");  
    gv.Columns[4].Visible = false;  
    gv.Columns[5].Visible = false;  
    gv.Columns[0].HeaderStyle.HorizontalAlign = HorizontalAlign.Left;  
    gv.Columns[0].ItemStyle.HorizontalAlign = HorizontalAlign.Left;  
    gv.Columns[1].HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[1].ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[2].HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[2].ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[3].HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[3].ItemStyle.HorizontalAlign = HorizontalAlign.Right;  

Setting the text by getting the LinkButton or by assigning to the HeaderText property of the column work for the row that was just expanded but any other detail tables that were already expanded lose these values.

Any help is greatly appreciated.

Thanks,
Dave

Carl
Top achievements
Rank 1
 answered on 08 Mar 2011
6 answers
484 views
Hi I am trying to change FileExplorer path dynamically but its not getting change. I have one dropdown box and based on selected item I am trying to change the File Explorer path Dynamically.  Please see my code below:

<div class="settings">
        <h1>Media Libraries</h1>
        <div>
            <fieldset style="width: 250px;">
                <legend>Choose a Site</legend>
                <telerik:RadComboBox ID="ddlSite" runat="server" Width="200px" Height="100px" AutoPostBack="true"
                    EmptyMessage="Select a Site" EnableVirtualScrolling="true" OnSelectedIndexChanged="ddlSite_SelectedIndexChanged">
                </telerik:RadComboBox>
            </fieldset>
        </div>
        <div>
        <fieldset style="width: 250px;">
                <legend>Selected Site</legend>
                <asp:Label ID="lblSiteName" runat="server" Text=""></asp:Label>
            </fieldset>
        </div>
    </div>
    <table cellspacing="4" cellpadding="0" border="0" style="padding-left:10px;" >
        <tr>
            <td style="vertical-align: top;">
                
                <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="1000px" Height="500px"
                    OnClientItemSelected="OnClientItemSelected" >
                </telerik:RadFileExplorer>
            </td>
            <td valign="top">
                <fieldset style="width: 230px; height: 220px">
                    <legend>Preview</legend>
                    <img id="pvwImage" src="" runat="server" alt=""
                        style="display: none; max-width:230px; max-height:220px; margin: 10px;  vertical-align: middle;" />
                </fieldset>
            </td>
        </tr>
        </table>
 
.cs page:
 
        protected void Page_Load(object sender, EventArgs e)
        {
            InitializeContainer();
            //set properties according to configuration panel
            FileExplorer1.VisibleControls = GetVisibleControls();
            FileExplorer1.EnableOpenFile = true;
            FileExplorer1.DisplayUpFolderItem = true;
            FileExplorer1.AllowPaging = true;
            FileExplorer1.EnableCreateNewFolder = true;
            FileExplorer1.Upload.Enabled = true;
            //if (!enableUpload.Checked)
            //{
            //    FileExplorer1.Configuration.UploadPaths = new string[0];
            //}
            if (!IsPostBack)
            {
                BindSite();
                lblSiteName.Text = ddlSite.SelectedItem.Text;
                 
                
                ////Set initial folder to open. Note that the path is case sensitive!
                FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomColumnsContentProvider).AssemblyQualifiedName;
                //FileExplorer1.InitialPath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles/allowed.png",this.SiteID));
                this.SiteID = Convert.ToInt32(ddlSite.SelectedValue);
                string PagePath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles/allowed.png", this.SiteID));
                string RootPagePath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles", this.SiteID));
                //Set initial folder to open. Note that the path is case sensitive!
                // FileExplorer1.InitialPath = PagePath;
                FileExplorer1.Configuration.ViewPaths = new string[] { RootPagePath };
                FileExplorer1.Configuration.UploadPaths = new string[] { RootPagePath };
                FileExplorer1.Configuration.DeletePaths = new string[] { RootPagePath };
                 
            }
            
            AddDateAndTypeColumns();
        }
 
 protected void ddlSite_SelectedIndexChanged(object sender, EventArgs e)
        {
            lblSiteName.Text = ddlSite.SelectedItem.Text;
            this.SiteID = Convert.ToInt32(ddlSite.SelectedValue);
 
            string RootPagePath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles", this.SiteID));
            //Set initial folder to open. Note that the path is case sensitive!
            // FileExplorer1.InitialPath = PagePath;
            FileExplorer1.Configuration.ViewPaths = new string[] { RootPagePath };
            FileExplorer1.Configuration.UploadPaths = new string[] { RootPagePath };
            FileExplorer1.Configuration.DeletePaths = new string[] { RootPagePath };
        }

Thanks in advance for your help....
Dobromir
Telerik team
 answered on 08 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?