Hi guys,
Recently, we found that while implementing the stylesheet references we introduced a bug, causing RadStyleSheetManager to not work properly in Medium Trust.
A build (trial version) with the fix is attached. Please, open a formal support ticket to obtain the dev build you're elligible to.
The next official service pack release (scheduled for the end of the next week) will contain the fix.
If you find yourself with an elusive “The controls collection cannot be modified” error, we’ve figured out some details that might help. The docs (http://www.telerik.com/help/aspnet-ajax/ajxmigration.html) state that you need to add a RadCodeBlock around all <script> tags that have a <%= somewhere in them.
Via a support ticket, we learned that all <%= tags need a RadCodeBlock. Adding RadCodeBlocks throughout an application any larger than a small website can be a daunting task. In our application, on a single page, I ended up finding two particular <%= tags that needed a RadCodeBlock.
But what really got us thinking was all the ones that did not need a RadCodeBlock. As we looked, what we found was that when a <%= was contained within a control that was runat=”server”, it did not need a RadCodeBlock. All the RadCodeBlock does is give you a container control that is runat=”server”
Here’s an example of a place which threw the “The controls collection cannot be modified…” error:
<fieldset>
<legend>
<%=Resources.Atlas.Recipients%>
</legend>
Simply adding ‘runat=”server”’ to the legend tag fixes the problem.
<fieldset>
<legend runat="server">
<%=Resources.Atlas.Recipients%>
</legend>
Note however, that it is not adequate to add the runat=”server” to the fieldset tag. The immediate parent MUST be runat=server.
It seems that a good regular expression or a simple little application that parses aspx/ascx files could easily find every location where you need to add a runat="server" to an immediate parent.Warmest Regards,
Matt
protected
void RadUpload1_FileExists(object sender, UploadedFileEventArgs e) {
int counter = 1;
UploadedFile file = e.UploadedFile;
string targetFolder = Server.MapPath(RadUpload1.TargetFolder);
string targetFileName = Path.Combine(targetFolder,
file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
while (System.IO.File.Exists(targetFileName))
{
counter ++;
targetFileName =
Path.Combine(targetFolder,
file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
}
file.SaveAs(targetFileName);
}
I'm trying out the "Google-Like" suggest from KB Article ID# 696. I have it implmented and working correctly per the article.
I added a GridEditCommandColumn to my RadGrid and and the column doesn't show up. When I click "Add Record" at the top the column then displays and then if I hit cancel it stays it will stay displayed, except it'll display in the first column (in my case ItemID).
When using the "Google-Like" suggest, do I need to write my own code for Insert/Update/Delete and put it in InsertCommand, UpdateCommand, and DeleteCommand?
I would also like to add in some RadTextBoxes and NumericTextBoxes for some of the columns using the InPlace EditMode, do I need to write everything out by hand as well?
Thanks,
Brett