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

Item style does not "stick" when resizing columns

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eyal Dyment
Top achievements
Rank 1
Eyal Dyment asked on 18 Mar 2009, 11:56 AM
Hi,

I have a grid configured like this:

<telerik:RadGrid ID="grdQueryGrid" runat="server" AllowMultiRowSelection="false" 
             EnableEmbeddedSkins="false" OnNeedDataSource="grdQueryGrid_NeedDataSource" Skin="NICE"              
             OnColumnCreated = "grdQueryGrid_ColumnCreated"
              Height="382" 
              Width="520"
              AllowSorting="True" AutoGenerateColumns="false">
              <MasterTableView HierarchyLoadMode="Client" Width = "804" TableLayout="Fixed" >                
                   <NestedViewTemplate>
                        <npx:QueryGridNestedView ID="QueryGridNestedView1" runat="server"/>
                    </NestedViewTemplate>                    
                    <Columns>                                            
                        <telerik:GridBoundColumn DataField="FullName" HeaderText ="<%$ Resources: RESX_FullName%>" >
                            <HeaderStyle Width = "100" HorizontalAlign="Center"/>
                            <ItemStyle Width = "100" HorizontalAlign="Center"/>                            
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="StartTime" HeaderText ="<%$ Resources: RESX_StartTime%>" >
                            <HeaderStyle Width = "140" HorizontalAlign="Center"/>
                            <ItemStyle Width = "140" HorizontalAlign="Center"/>                            
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="StopTime" HeaderText  ="<%$ Resources:RESX_StopTime%>" >
                            <HeaderStyle Width = "140" HorizontalAlign="Center"/>
                            <ItemStyle Width = "140" HorizontalAlign="Center"/>                            
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DialedNumber" HeaderText ="<%$ Resources: RESX_DialedNumber%>" >
                            <HeaderStyle Width = "100" HorizontalAlign="Center"/>
                            <ItemStyle Width = "100" HorizontalAlign="Center"/>                            
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CallDirection" HeaderText ="<%$ Resources:RESX_CallDirection%>" >
                            <HeaderStyle Width = "100" HorizontalAlign="Center"/>
                            <ItemStyle Width = "100" HorizontalAlign="Center"/>                            
                        </telerik:GridBoundColumn>                        
                        <telerik:GridBoundColumn DataField="CallID" Display="false" >                            
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="InitiatorUserID" Display="false">                            
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Flag" Display="false">                            
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="StartTimeTicks" Display="false">                                                   
                        </telerik:GridBoundColumn>                        
                    </Columns>                        
                </MasterTableView>                
                <ClientSettings>
                    <Selecting AllowRowSelect="true" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                    <ClientEvents OnRowDblClick="PlayInteraction"
                         OnHierarchyExpanded ="OnHierarchyExpanding" 
                         OnGridCreating="GridCreating"  
                         OnRowSelected="queryGrid_RowSelected"
                         OnRowDeselected="queryGrid_RowDeselected" 
                        />
                    <Resizing AllowColumnResize="true" />
                </ClientSettings>
            </telerik:RadGrid>


The items and headers are centered when the grid is loaded. How ever when the columns are resized, the header remains centered but the item remain in the same location. 

How can this be solved?

Thanks,
Eyal D.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 23 Mar 2009, 10:18 AM
Hello Eyal,

Unfortunately I could not reproduce this issue. I created a test project in my attempt to recreate the abnormality explained so far. I used the latest official build of RadControls. You can find my sample web site project attached to this forum thread. Please examine it and tell me if I am missing something.

Regards,
Georgi Krustev
the Telerik team

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