FormDecorator in Master Page? bug?

5 posts, 0 answers
  1. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 26 Aug 2008 Link to this post

    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> 
     


  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 27 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 27 Aug 2008 Link to this post

    thanks
  5. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 27 Aug 2008 Link to this post

    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?
  6. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 27 Aug 2008 Link to this post

    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!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017