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

RadGrid version difference

5 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kalyan
Top achievements
Rank 1
Kalyan asked on 02 Sep 2010, 02:29 PM
I have used Telerik's RadGrid 2009.1.311.35 on the project and upgraded it to RadGrid 2010.2.826.35.
The latest version seems to have equal space for every column.
Is there anyway to know what are the differences between the RadGrid on these versions?
also to achieve the old result I have to use header-style Width?

5 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 02 Sep 2010, 03:47 PM
Hello Kalyan,

Is it possible that the change made in the Q2 2009 version of RadGrid for ASP.NET AJAX explained here causes the forced fixed layout for your grid. The solution would be to disable cell content clipping or set the MasterTableView -> TableLayout property to Auto explicitly.

Best regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kalyan
Top achievements
Rank 1
answered on 02 Sep 2010, 06:55 PM
<telerik:RadGrid ID="TicketsGrid" SkinID="DefaultRadGrid" runat="server"
                            OnNeedDataSource="NeedsTicketData" OnItemDataBound="TicketsGrid_ItemDataBound" >
                              
                            <GroupingSettings CaseSensitive="false" />
                              
                            <ClientSettings>
                                <ClientEvents OnFilterMenuShowing="FilterMenuShowingByDataType" />
                            </ClientSettings>
                            <MasterTableView DataKeyNames="Name" OverrideDataSourceControlSorting="true" TableLayout="Auto">
                                  
                                <SortExpressions>  
                                     <telerik:GridSortExpression FieldName="Name" SortOrder="ascending" />  
                                </SortExpressions>  
                                <CommandItemTemplate>
                                </CommandItemTemplate>
                                  
                                <NoRecordsTemplate>
                                    <asp:Label ID="NoResultsFoundLabel" runat="server">There are no entries for the date selected.</asp:Label>
                                </NoRecordsTemplate>
                               <Columns>
                                    <telerik:GridHyperLinkColumn AutoPostBackOnFilter="True" DataTextField="Name" UniqueName="Name" DataType="System.String" HeaderText="Ticket" SortExpression="Ticket" DataNavigateUrlFields="IncidentNumber" DataNavigateUrlFormatString="~/TimeEntry/TimeEntryTicketTabs.aspx?TicketNumber={0}" />
                                    <telerik:GridBoundColumn HeaderText="Client" DataField="col1" SortExpression="ProjectName" />
                                    <telerik:GridBoundColumn AllowFiltering="false" HeaderText="col1 Hours" DataField="col1Hours" DataFormatString="{0:#,###,###.##}" />
                                    <telerik:GridBoundColumn AllowFiltering="false" HeaderText="col1 Dur" DataField="Col1Dur" DataFormatString="{0:#,###,###.##}" />
                                    <telerik:GridBoundColumn AllowFiltering="false" HeaderText="col1 sample" DataField="col1sample" />
                                    <telerik:GridBoundColumn AllowFiltering="false" HeaderText="col1 sample" DataField="col1sample" />
                                    <telerik:GridBoundColumn AllowFiltering="false" HeaderText="col1 sample" DataField="col1sample" DataFormatString="{0:MM/dd/yyyy}" />
                                    <telerik:GridBoundColumn AllowFiltering="false" HeaderText="col1 sample" DataField="col1sample" DataFormatString="{0:MM/dd/yyyy}" />
                                </Columns>
                                  
                            </MasterTableView>






The above is the code for the sample grid. I have made the TableLayout = Auto. All the Grid columns are the same and I don't see any changes with the code change suggested.

0
Kalyan
Top achievements
Rank 1
answered on 02 Sep 2010, 06:58 PM

 

 

 

 

<MasterTableView 
        AutoGenerateColumns="False"  
        ShowFooter="True" 
        VirtualItemCount="100000"
        GridLines="None" 
        CommandItemDisplay="Top" 
        AlternatingItemStyle-BackColor="LightGray"
        TableLayout="Auto"/>
Also we are using a Skin for the RadGrid and I have also updated the TableLayout = Auto here on the skin file and also on the page level.

0
Sebastian
Telerik team
answered on 03 Sep 2010, 09:19 AM
Hello Kalyan,

It looks that the discrepancy is caused by something else in your case because from your code snippets I see that you do not have column resizing enabled. Is it possible for you to provide a live url where the glitch can be observed? Thus we will be able to research the matter further and provide more to-the-point answer.

You may also inspect the rendered grid table html using IE Developer Toolbar or FireBug and share your findings with us - this can shed some additional light on the case.

Kind regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kalyan
Top achievements
Rank 1
answered on 03 Sep 2010, 03:11 PM

ClientSettings-Resizing-ClipCellContentOnResize

 

="false" on the Skin seem to work now.
however in one particular grid there is a horizontal bar that is present and I set the width = 98% or so and it works. The same grid in Firefox renders correctly. Any pointers from your end would help.
 

Tags
Grid
Asked by
Kalyan
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Kalyan
Top achievements
Rank 1
Share this question
or