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

Problem with Editing in Grid

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric Klein
Top achievements
Rank 1
Eric Klein asked on 27 Jan 2012, 10:37 PM
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>

1 Answer, 1 is accepted

Sort by
0
Eric Klein
Top achievements
Rank 1
answered on 30 Jan 2012, 08:34 PM
Found the error. My user control was missing a clossing tag in the table.
Tags
Grid
Asked by
Eric Klein
Top achievements
Rank 1
Answers by
Eric Klein
Top achievements
Rank 1
Share this question
or