Problem with Editing in Grid

2 posts, 0 answers
  1. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 27 Jan 2012 Link to this post

    I have a Radgrid on a page that uses GroupByExpressions and for editing a WebUserConrtol.  Everything seems to work fine except when the Edit form is displayed, it pushes everything below it to the right.  See the attachment.  How do I get it to stop altering the main grid?

    <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007" AllowPaging="false"
         Width="100%" EnableLinqExpressions="true" AllowCustomPaging="false" AutoGenerateColumns="False"
         GridLines="None" AllowSorting="true" AllowFilteringByColumn="false" AlternatingItemStyle-BackColor="#eeeeee"
         ShowGroupPanel="False" ShowStatusBar="True" OnNeedDataSource="RadGrid1_NeedDataSource">
      <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
        <MasterTableView Width="100%" DataKeyNames="DocumentLogID" PagerStyle-Mode="NextPrevNumericAndAdvanced"
             ClientDataKeyNames="DocumentLogID">
           <GroupByExpressions>
             <telerik:GridGroupByExpression>
               <SelectFields>
                 <telerik:GridGroupByField FieldAlias="" HeaderText=" " FieldName="AccessPerson" HeaderValueSeparator="" />
               </SelectFields>
               <GroupByFields>
                 <telerik:GridGroupByField FieldName="AccessPerson" HeaderText="Access Person" SortOrder="Ascending" />
               </GroupByFields>
             </telerik:GridGroupByExpression>
           </GroupByExpressions>
           <Columns>
             <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
             </telerik:GridEditCommandColumn>
             <telerik:GridTemplateColumn UniqueName="PrintDoc" HeaderText="Print">
                <HeaderTemplate>
                  <asp:CheckBox ID="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True"
                       runat="server"></asp:CheckBox>
                </HeaderTemplate>
                <ItemTemplate>
                  <asp:CheckBox ID="PrintCheckBox" runat="server" OnCheckedChanged="ToggleRowSelection"
                       AutoPostBack="true" Visible="true"></asp:CheckBox>
                </ItemTemplate>
             </telerik:GridTemplateColumn>
             <telerik:GridBoundColumn DataField="DocumentLogID" Visible="false" UniqueName="DocumentLogID" />
             <telerik:GridBoundColumn DataField="ClientID" Visible="false" />
             <telerik:GridBoundColumn DataField="AccessPersonID" Visible="false" />
             <telerik:GridBoundColumn DataField="ReportID" Visible="false" />
             <telerik:GridBoundColumn SortExpression="ReportName" DataField="ReportName" HeaderText="Report Name" />
             <telerik:GridBoundColumn SortExpression="StatusDescription" DataField="StatusDescription"
                      HeaderText="Status" />
             <telerik:GridBoundColumn DataField="DocumentStatusID" UniqueName="DocumentStatusID"
                      Groupable="False" Visible="False" />
             <telerik:GridBoundColumn SortExpression="SentBy" DataField="SentBy" HeaderText="Sent By"
                      AllowFiltering="false" />
             <telerik:GridBoundColumn SortExpression="DateSent" DataField="DateSent" HeaderText="Date Sent"
                      DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
             <telerik:GridBoundColumn SortExpression="DueDate" DataField="DueDate" HeaderText="Date Due"
                      DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
             <telerik:GridBoundColumn SortExpression="PrintReason1" DataField="PrintReason1" HeaderText="Print Reason"
                      AllowFiltering="false" />
             <telerik:GridBoundColumn SortExpression="StartDate" DataField="StartDate" HeaderText="Start Due"
                      DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
             <telerik:GridBoundColumn SortExpression="EndDate" DataField="EndDate" HeaderText="End Due"
                      DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
             <telerik:GridBoundColumn SortExpression="Version" DataField="Version" HeaderText="Version"
                      AllowFiltering="false" />
          </Columns>
          <EditFormSettings UserControlName="Controls/PrintDocDetails.ascx" EditFormType="WebUserControl">
            <EditColumn UniqueName="EditCommandColumn1">
              <ItemStyle Width="100%" />
            </EditColumn>
          </EditFormSettings>
       </MasterTableView>
       <ClientSettings>
          <ClientEvents OnRowDblClick="RowDblClick" />
       </ClientSettings>
       <FilterMenu Skin="Office2007" EnableTheming="True">
         <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
       </FilterMenu>
     </telerik:RadGrid>
  2. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 30 Jan 2012 Link to this post

    Found the error. My user control was missing a clossing tag in the table.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top