Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
246 views
After upgrading to the Q2 release today, I get the error below as soon as I hit the page with the RadEditors. It does not hit any break points. It happens in both Release and Debug mode.
 
I have multiple RadEditors on the page sharing a single toolbar using the ToolBarProviderID property. When I stop sharing the toolbar, I do not get the error. 

At one time, the Stack Trace referenced a method with a name like "Ribbon" something. I believe it has to do with the new ribbon functionality.

I do not get this error when I use the Q1 release.

Please let me know if there is a workaround for the problem.

--------

Value cannot be null.
Parameter name: child

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.ArgumentNullException: Value cannot be null.
Parameter name: child

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:

[ArgumentNullException: Value cannot be null.
Parameter name: child]
   System.Web.UI.ControlCollection.Add(Control child) +11023974
   Telerik.Web.UI.RadEditor.ControlPreRender() +225
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

Rumen
Telerik team
 answered on 08 Sep 2011
1 answer
249 views
can i set different page have different page size , 
such as page 1 , pagesize="3"
page 2 , pagesize ="1"
Tsvetina
Telerik team
 answered on 08 Sep 2011
3 answers
129 views
Hi, 

I'm using the same RadGrid control for several different datasources, and thus I'd like to have it add columns automatically as it is now. However I'm having a problem converting specified int columns into checkbox columns (the values are all 0 and 1). Is there any way to cast/change the column from a GridNumericColumn into a checkbox column, or do you have any advice on how to resolve the situation?
Morten
Top achievements
Rank 1
 answered on 08 Sep 2011
1 answer
63 views
I'm using ASP.NET Ajax Q2 2011 and have a problem with changing css class for selected div.

I have two divs for photos and some text, by default both div has same css class, my client need to select the div that include the second photo and change its css class from "PhotoBoxRight" to "PhotoBoxLeft".

<div class="PhotoBoxRight" style="width: 300px;"><div><a href="PhotoDetail.aspx?ImageId=2007052318"><img src="images/2007/2007052318.jpg" border="0"></a></div><div class="PhotoBoxCredit">Text: <a href="photo">Text</a></div><div class="PhotoBoxCaption">Text</div></div>
More text here
<br><br>
 
<div class="PhotoBoxRight" style="width: 300px;"><div><a href="PhotoDetail.aspx?ImageId=2007052320"><img src="images/2007/2007052320.jpg" border="0"></a></div><div class="PhotoBoxCredit">Text: <a href="photo">Text</a></div><div class="PhotoBoxCaption">Text</div></div>

I configured the RAD Editor to read from an external CSS, and every thing is ok

<telerik:RadEditor ID="radBody" runat="server" Skin="Windows7" Width="750px" Height="690px"
                                StripFormattingOptions="AllExceptNewLines" NewLineBr="False" ToolsFile="~/SharedResources/Rad/Editor/ToolsFileReport.xml"
                                ContentAreaCssFile="./RTL/EditorContentArea_RTL.css" ContentFilters="None">
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/SharedResources/Rad/Editor/Report.css" />
                                </CssFiles>
                            </telerik:RadEditor>

When I test the page I got different behavior as following:
On FireFox 6.0.1: when I select the container div of the second photo, the "Apply CSS Class" menu reflect the current class of the div, when I change the class, it change it for the first div.

On Safari 5.1 and Chrome 13: the Apply CSS Class does not show css class of the selected div, when I select "PhotoBoxLeft" it apply it to the img tag.
<div class="PhotoBoxRight" style="width: 300px;"><div><a href="PhotoDetail.aspx?ImageId=2007052320"><img src="images/2007/2007052320.jpg" border="0" class="photoboxleft"></a></div><div class="PhotoBoxCredit">Text: <a href="photo">Text</a></div><div class="PhotoBoxCaption">Text</div></div>

On IE9: it adds font tag with PhotoBoxLeft class

<div style="width: 300px;" class="PhotoBoxRight"><div><a href="PhotoDetail.aspx?ImageId=2007052319"><font class="photoboxleft"><img border="0" src="images/2007/2007052319.jpg"></font></a></div><div class="PhotoBoxCredit"><font class="photoboxleft">Text: </font><a href="photo"><font class="photoboxleft">text</font></a></div><div class="PhotoBoxCaption"><font class="photoboxleft">Text</font></div></div>

I test the code on IIS7 on windows 7 and IIS6 on windows 2003.

Could you help please.
Rumen
Telerik team
 answered on 08 Sep 2011
3 answers
139 views
Hi,

I'm using the AsyncUpload control and I'm facing a big problem. Always I try to upload an Office file that is open, a JavaScript error is throwed. I searched at Telerik forum and found some similar problems, the Telerik team says this problem is being corrected.

http://www.telerik.com/community/forums/aspnet-ajax/async-upload/file-sharing-violation.aspx

Is there some update about this?

Rafael Esquiçato
Dimitar Terziev
Telerik team
 answered on 08 Sep 2011
2 answers
110 views
Hi

I am looking to see whether RadGRid has inbuilt databinding validation. For example, if you have NOT NULL field and trying to insert the column with null, it should throw an error without any code. I see this exists in devexpress. It helps to bind the data and allow the validations to be binded against data fields instead of field validators. I hope this may be possible.

Let me know.

Vijai
Vijaianand
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
188 views
Hello All,

I am having an issue with my radgrid in that when a user resizes the window, the filter boxes don't resize with the column size and get lost.  Is there any ways to constrain the filter inputs to the size of the columns?  I don't want to just blindly resize them, I want them to remain the width of the column.

Thanks so much!

Andy
Top achievements
Rank 1
 answered on 08 Sep 2011
4 answers
122 views
I would like to have a linkbutton at the top of my edit form when the user selects to edit a row.  I don't want to have it as a column, as I want just the LinkButton displayed (no header) and aligned to the left.  Is there any way to do this?
Jeremy
Top achievements
Rank 1
 answered on 08 Sep 2011
11 answers
121 views
i am trying to do some ajaxRequest via  javascript and not having alot of success with other browsers except IE.
here is the code


function SendClientMessage() {
var msgtext = document.getElementById("<%= message.ClientID %>");
if (msgtext != null) {
var eventArgs = "AddClientMsg";
clientMsgAdded = true;
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(eventArgs);
}
}
function KeyDown(e) {
var keyPressed;
if (window.event) {
keyPressed = window.event.keyCode;
} else {
keyPressed = e.which;
e.preventDefault();
}
if (keyPressed == 13) // checks whether the ENTER key
// is pressed
{
window.event.cancelBubble = true;
window.event.returnValue = false;
SendClientMessage();
}
}

and then in my code behind i have this.
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
if (e.Argument.ToLower().Equals("addclientmsg"))
{
ChatMessage msg = new ChatMessage();
msg.SentAt = DateTime.Now;
msg.UserID = anonymousUser.AnonymousUserID;
msg.UserType = ChatUserEnum.ChatUserType.Client;
msg.UserName = anonymousUser.FirstName + " " + anonymousUser.LastName;
msg.Message = message.Text;
int roomID = 0;
int.TryParse(hidRoomID.Value, out roomID);
ChatClientEngine.AddMessageToRoom(msg, roomID);
message.Text = "";
}
else if (e.Argument.Equals("closeChatRoom"))
{
CloseChatRoom();
}
}
now with IE it all works fine...even the closechatroom which is 
 function closeChatRoom() {
                    try {
                        var eventArgs = "closeChatRoom";
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(eventArgs);
                    } catch (e) {
                        alert(e);
                    }
//                    var strArg = "closeChatRoom";
//                    __doPostBack('closeChatRoom', strArg);
                }

and is set on onbeforeunload="closeChatRoom();"

again with IE it all works fine...
however with Firefox it does not....i can place alert in javascript and i get the alert..but i never get anything in the code behind...except on IE

any ideas?

thanks
Iana Tsolova
Telerik team
 answered on 08 Sep 2011
0 answers
155 views
When using RadFileExplorer with Black skin, the background of the Upload panel is white, but not black as expected. You can temporary fix the problem, until we fix it in the source, using one of the following solutions:

Solution 1 (CSS fix only):
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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>
       <style type="text/css">
              div.RadWindow_Black td.rwExternalContent
              {
                     background-color: #2e2e2e;
              }
              .rfeUploadContainer
              {
                     color: #fff;
              }
               
              div.rfeUploadInfoPanel
              {
                     background-color: #464646;
                     border: 1px solid #080808;
              }
       </style>
</head>
<body>
       <form id="form1" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server">
       </asp:ScriptManager>
       <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="500px" Height="300px"
              Skin="Black" EnableOpenFile="false" EnableCreateNewFolder="true">
              <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" />
       </telerik:RadFileExplorer>
       </form>
</body>
</html>

Solution 2(using CSS and RadFormDecorator):
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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>
    <style type="text/css">
        div.rfeUploadInfoPanel
        {
            background-color: #464646;
            border: 1px solid #080808;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="Sc1" runat="server" />
    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" Skin="Black" DecoratedControls="All" />
    <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="500px" Height="300px"
        Skin="Black" EnableOpenFile="false" EnableCreateNewFolder="true">
        <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" />
    </telerik:RadFileExplorer>
    </form>
</body>
</html>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 08 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?