This is a migrated thread and some comments may be shown as answers.

FormDecorator in Master Page? bug?

4 Answers 148 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
mac
Top achievements
Rank 1
mac asked on 27 Aug 2008, 12:28 AM
Hi.
I made a quick demo up just to be sure this was indeed the case.
Build a new site in VS2005 or whatever.
  • Add master.masterpage
  • Add RadScriptManager ,register Dll , and formdecorator to masterpage.
  • Create default.aspx with master.masterpage
  • Add Radgrid with the following markup (below)
  • connect it to a source to populate

If it works the way mine is, the rows will select, but the checkboxes won't 'check'. if you delete the formdecorator from masterpage, then the boxes magically check again. This does not occur if the form decorator is within the same aspx page. ... why and how to work around please?

aspx code:

 <telerik:RadGrid ID="RadGrid1"  DataSourceID="SqlDataSource1"   
     AllowMultiRowSelection="True"     runat="server" AllowSorting="True" GridLines="None" Width="95%"  AllowAutomaticDeletes="True">  
        <MasterTableView DataSourceID="SqlDataSource1">  
        <Columns> 
            <telerik:GridClientSelectColumn Text="test" UniqueName="ClientSelectColumn" /> 
            </Columns> 
            <RowIndicatorColumn Visible="False">  
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn Resizable="False" Visible="False">  
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <EditFormSettings> 
                <PopUpSettings ScrollBars="None" /> 
            </EditFormSettings> 
              
        </MasterTableView> 
         <ClientSettings> 
                <Selecting AllowRowSelect="True"></Selecting> 
            </ClientSettings> 
    </telerik:RadGrid><asp:SqlDataSource ID="SqlDataSource1" /> 

mastepage code:

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> 
<%@ 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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2007" /> 
        <br /> 
        <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">  
        </asp:contentplaceholder> 
    </div> 
    </form> 
</body> 
</html> 
 


4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 27 Aug 2008, 02:54 PM
Hi Mac,

This is a known issue and it has been fixed in the latest version of the product - RadControls for ASP.NET AJAX 2008 SP1 that was released yesterday. Please upgrade your web application and you should not experience this problem anymore.



All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mac
Top achievements
Rank 1
answered on 27 Aug 2008, 03:48 PM
thanks
0
Michelle
Top achievements
Rank 1
answered on 27 Aug 2008, 05:50 PM
With the new Service Pack, I now get all kinds of JavaScript errors when I have a RadFormDecorator on a master page.  If I place the RadFormDecorator on the content page instead, it seems to work fine.  Is this the expected behavior?
0
Michelle
Top achievements
Rank 1
answered on 27 Aug 2008, 05:53 PM
Nevermind.  Per the instructions in the following thread

http://www.telerik.com/community/forums/thread/b311D-bkmdkh.aspx

I was able to eliminate the script errors.

Resolution:  Remove the DecoratedControls attribute.

Thanks!
Tags
FormDecorator
Asked by
mac
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
mac
Top achievements
Rank 1
Michelle
Top achievements
Rank 1
Share this question
or