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

Radgrid filter refresh etc images not align when using groupbyexpression

4 Answers 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DragonBall
Top achievements
Rank 1
DragonBall asked on 28 Jan 2009, 03:12 AM

Im having problems with my radgrid when i us groupbyexpression some images(filter,refresh etc..)

appears on the left column

is there any workaroud for this.

i have the link of my file (print screen) Radgrid with misalign images

 <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"   

        GridLines="None" onitemcreated="RadGrid1_ItemCreated"   
        onpdfexporting="RadGrid1_PdfExporting" ShowFooter="True"    

        ShowGroupPanel="True" Aut

oGenerateColumns ="False"   

        oncolumncreated="RadGrid1_ColumnCreated" ondatabound="RadGrid1_DataBound"   
        onitemdatabound="RadGrid1_ItemDataBound"   
        oncolumncreating="RadGrid1_ColumnCreating"   
        onprerender="RadGrid1_PreRender">  
<HeaderContextMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
</HeaderContextMenu>  
 
        <ExportSettings>  
             
        </ExportSettings>  
<ClientSettings Resizing-AllowRowResize="true" Selecting-AllowRowSelect="true">  
<Resizing AllowRowResize="True"></Resizing>  
</ClientSettings>  
        <AlternatingItemStyle BackColor="#663300" />  
<MasterTableView   ShowFooter="true"  DataKeyNames="OrderID">  
    
<GroupByExpressions>  
    <telerik:GridGroupByExpression>  
         <GroupByFields>  
                <telerik:GridGroupByField FieldAlias="ShipPostalCode" FieldName="ShipPostalCode"   
                 HeaderText="ShipPostalCode"   />  
                    
                  
            </GroupByFields>  
            <SelectFields>  
                <telerik:GridGroupByField FieldAlias="ShipPostalCode" FieldName="ShipPostalCode"   
                 HeaderText="ShipPostalCode"  />  
            </SelectFields>  
    </telerik:GridGroupByExpression>  
<telerik:GridGroupByExpression><SelectFields>  
<telerik:GridGroupByField FieldName="ShipCountry" FieldAlias="ShipCountry"   
        FormatString="" HeaderText="Ship Country"></telerik:GridGroupByField>  
</SelectFields>  
<GroupByFields>  
<telerik:GridGroupByField FieldName="ShipCountry" FieldAlias="ShipCountry"   
        FormatString="" HeaderText="Ship Country"></telerik:GridGroupByField>  
</GroupByFields>  
</telerik:GridGroupByExpression>  
<telerik:GridGroupByExpression><SelectFields>  
<telerik:GridGroupByField FieldName="ShipCity" FieldAlias="ShipCity"   
        FormatString="" HeaderText="Ship City"></telerik:GridGroupByField>  
</SelectFields>  
<GroupByFields>  
<telerik:GridGroupByField FieldName="ShipCity" FieldAlias="ShipCity"   
        FormatString="" HeaderText="Ship City"></telerik:GridGroupByField>  
</GroupByFields>  
</telerik:GridGroupByExpression>  
 </GroupByExpressions>  
    
    <GroupByExpressions>  
        <telerik:GridGroupByExpression>  
             
            <GroupByFields>  
                <telerik:GridGroupByField FieldAlias="ShipCountry" FieldName="ShipCountry"   
                 HeaderText="Ship Country"   />  
             
                  
            </GroupByFields>  
            <SelectFields>  
                <telerik:GridGroupByField FieldAlias="ShipCountry" FieldName="ShipCountry"   
                 HeaderText="Ship Country"  />  
                   
            </SelectFields>  
              
        </telerik:GridGroupByExpression>  
<telerik:GridGroupByExpression><SelectFields>  
<telerik:GridGroupByField FieldName="ShipCity" FieldAlias="ShipCity" HeaderText="Ship City"></telerik:GridGroupByField>  
</SelectFields>  
<GroupByFields>  
<telerik:GridGroupByField FieldName="ShipCity" FieldAlias="ShipCity" HeaderText="Ship City"></telerik:GridGroupByField>  
</GroupByFields>  
</telerik:GridGroupByExpression>  
<telerik:GridGroupByExpression><SelectFields>  
<telerik:GridGroupByField FieldName="ShipPostalCode" FieldAlias="ShipPostalCode"   
        FormatString="" HeaderText="ShipPostalCode"></telerik:GridGroupByField>  
</SelectFields>  
<GroupByFields>  
<telerik:GridGroupByField FieldName="ShipPostalCode" FieldAlias="ShipPostalCode"   
        FormatString="" HeaderText="ShipPostalCode"></telerik:GridGroupByField>  
</GroupByFields>  
</telerik:GridGroupByExpression>  
    </GroupByExpressions>  
    
   <NestedViewTemplate>  
     
        <telerik:RadGrid ID="RadGrid2" runat ="server" DataSourceID="SqlDataSource1"   
        AutoGenerateColumns ="false" AllowPaging ="true" onitemcreated="RadGrid2_ItemCreated" >    
        <AlternatingItemStyle BackColor="White" />  
        <MasterTableView AllowPaging="true" DataKeyNames="OrderID">  
       <Columns>  
                    <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID"  
                        ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">  
                    </telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate"  
                        SortExpression="OrderDate" UniqueName="OrderDate" DataFormatString="{0:d}">  
                    </telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" SortExpression="ShipCountry"  
                        UniqueName="ShipCountry">  
                    </telerik:GridBoundColumn>  
                </Columns>  
        <DetailTables>  
        <telerik:GridTableView runat="server" AutoGenerateColumns="false"  AllowSorting="true" AllowFilteringByColumn="true"   
            DataKeyNames="OrderID" DataSourceID="SqlDatasource1" >  
            <Columns>  
            <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID"  
                        ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">  
                    </telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate"  
                        SortExpression="OrderDate" UniqueName="OrderDate" DataFormatString="{0:d}">  
                    </telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" SortExpression="ShipCountry"  
                        UniqueName="ShipCountry">  
                    </telerik:GridBoundColumn>  
            </Columns>  
            <RowIndicatorColumn Visible="True">  
                <HeaderStyle Width="20px" />  
            </RowIndicatorColumn>  
            <ExpandCollapseColumn>  
                <HeaderStyle Width="20px" />  
            </ExpandCollapseColumn>  
          
          
        </telerik:GridTableView>  
          
    </DetailTables>  
        </MasterTableView>        
            
         
        </telerik:RadGrid>  
              
       
           <telerik:RadChart ID="RadChart1" runat="server">  
           <PlotArea>  
            <EmptySeriesMessage Visible="True">  
                <Appearance Visible="True">  
                </Appearance>  
            </EmptySeriesMessage>  
        </PlotArea>  
        <ChartTitle>  
            <TextBlock Text="This is a Test">  
            </TextBlock>  
        </ChartTitle>  
          
          
    </telerik:RadChart>  
      
          
   </NestedViewTemplate>  
         
     
      
<RowIndicatorColumn>  
<HeaderStyle Width="20px"></HeaderStyle>  
</RowIndicatorColumn>  
<ExpandCollapseColumn Visible="True">  
<HeaderStyle Width="20px"></HeaderStyle>  
</ExpandCollapseColumn>  
<Columns>  
  <telerik:GridBoundColumn  DataField="OrderId" HeaderText="Order ID"  
      Display="true">  
  </telerik:GridBoundColumn>    
  <telerik:GridBoundColumn Aggregate="Count" DataField="ShipName" HeaderText="Ship Name"  
      FooterText="Total Ships: " Display="true">  
  </telerik:GridBoundColumn>     
     
   <telerik:GridBoundColumn Aggregate="Count" DataField="ShipCity" HeaderText="Ship City"  
      FooterText="Total Numnber in City: ">  
  </telerik:GridBoundColumn>      
    
    <telerik:GridBoundColumn Aggregate="Count" DataField="ShipCountry" HeaderText="Ship Country"  
      FooterText="Total Numnber in Coutry:" Display="false">  
  </telerik:GridBoundColumn>    
    
   <telerik:GridBoundColumn  DataField="Freight" HeaderText="Freight">  
  </telerik:GridBoundColumn>      
   <telerik:GridBoundColumn  DataField="OrderDate" HeaderText="OrderDate">  
  </telerik:GridBoundColumn>      
</Columns>  
   <GroupByExpressions>  
    <telerik:GridGroupByExpression>  
        <GroupByFields>  
               <telerik:GridGroupByField FieldAlias="ShipCity" FieldName="ShipCity"   
                 HeaderText="Ship City"   />  
        </GroupByFields>  
        <SelectFields>  
                   <telerik:GridGroupByField FieldAlias="ShipCity" FieldName="ShipCity"   
                 HeaderText="Ship City"   />  
        </SelectFields>  
    </telerik:GridGroupByExpression>  
     
<telerik:GridGroupByExpression><SelectFields>  
<telerik:GridGroupByField FieldName="ShipPostalCode" FieldAlias="ShipPostalCode" HeaderText="ShipPostalCode"></telerik:GridGroupByField>  
</SelectFields>  
<GroupByFields>  
<telerik:GridGroupByField FieldName="ShipPostalCode" FieldAlias="ShipPostalCode" HeaderText="ShipPostalCode"></telerik:GridGroupByField>  
</GroupByFields>  
</telerik:GridGroupByExpression>  
<telerik:GridGroupByExpression><SelectFields>  
<telerik:GridGroupByField FieldName="ShipCountry" FieldAlias="ShipCountry" FormatString="" HeaderText="Ship Country"></telerik:GridGroupByField>  
</SelectFields>  
<GroupByFields>  
<telerik:GridGroupByField FieldName="ShipCountry" FieldAlias="ShipCountry" FormatString="" HeaderText="Ship Country"></telerik:GridGroupByField>  
</GroupByFields>  
</telerik:GridGroupByExpression>  
     
   </GroupByExpressions>  
    
</MasterTableView>  
 
        <GroupingSettings GroupContinuedFormatString="" GroupContinuesFormatString=""   
            GroupSplitDisplayFormat="" GroupSplitFormat="" />  
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
</FilterMenu>  
          
    </telerik:RadGrid> 

4 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 30 Jan 2009, 04:05 PM
Hi Manuel,

I tried to recreate the issue locally but unfortunately to no avail. Can you please verify that you are using the latest version 2008.3.1314 of RadControls for ASP.NET AJAX in your project? If the issue remains, please isolate a simple test page, which represents the abnormality, and send it enclosed to a regular support ticket. We will research the matter further and will get around to you with more info on the subject.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
DragonBall
Top achievements
Rank 1
answered on 02 Feb 2009, 01:42 AM
2008.3.1105.35 im using ths version.
0
DragonBall
Top achievements
Rank 1
answered on 02 Feb 2009, 07:05 AM

I already use the 2008.3.1314 of RadControls for ASP.NET AJAX but there is still an image on the left column, when your try to expand the nestedviewtemplate.  File with Bug Radgrid

0
Sebastian
Telerik team
answered on 04 Feb 2009, 03:22 PM
Hi Manuel,

Indeed the issue is present in the latest official release of RadGrid for ASP.NET AJAX. I forwarded it to our devteam to be addressed for the next Q1 2009 release of the product, expected in the middle of March.

In the meantime you can use the following workaround to override the default css setting for the group splitter cells when the nested view item is expanded:

<head runat="server">  
    <title></title>  
    <style type="text/css">  
    td.GroupHeader_Default  
    {  
      background: none;  
    }  
    </style> 
</head> 

I updated your Telerik points for the bug report.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
DragonBall
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
DragonBall
Top achievements
Rank 1
Share this question
or