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

[Solved] Column Resize Problem

4 Answers 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ilias
Top achievements
Rank 1
Ilias asked on 30 Jun 2009, 12:06 PM
Hi all,

i am trying to create a simple resizing grid with no luck. Based on http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx directions i did:
ClientSettings -> Resizing -> AllowRowResize = true
ClientSettings -> Resizing -> AllowColumnResize = true
ClientSettings -> Resizing -> EnableRealTimeResize = true 

Is there anything else i should do?

Sample Code:

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager" runat="server">
    </telerik:RadScriptManager>
    <table style="width: 750px">
    <tr>
        <td>
            <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" AllowPaging="True"
                GridLines="None" PageSize="10" Skin="Outlook">
                <MasterTableView TableLayout="Fixed">
<RowIndicatorColumn Visible="True"></RowIndicatorColumn>
                </MasterTableView>
                <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                    <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                        AllowColumnResize="True"></Resizing>
                    <ClientEvents OnGridCreated="" />
                </ClientSettings>
                <HeaderStyle Width="100px" />
                <PagerStyle Mode="NextPrevAndNumeric" />
            </telerik:RadGrid>
        </td>
    </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT TOP 25 CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers"
        runat="server"></asp:SqlDataSource>
    </form>

Thanks in advance




4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Jul 2009, 08:47 AM
Hi Ilias,

Please find attached a simple runnable application which handles the desired functionality. Give it a try and see if it works as expected.
More information is available in the following articles:
Help topic
Demo

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ilias
Top achievements
Rank 1
answered on 02 Jul 2009, 08:21 AM
Hi Pavlina,

First of all i would like to thank you for your help.

Well, i run your code sample but resizing of grid is not happening.

I must add that i couldn't compile Web Site
(Error    32    Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The module was expected to contain an assembly manifest.)
so i had to replace your Telerik.Web.Design.dll and Telerik.Web.UI.dll with dlls from a web site that i had created respectively.

Taking into account that your sample works fine can i assume that is a problem with my dlls?

I am using RadControls_for_ASP.NET_AJAX_2009_1_527_trial.exe for evaluation purpose.

Thanks in advance
0
Pavlina
Telerik team
answered on 02 Jul 2009, 10:22 AM
Hi Ilias,

I am sending you a working project with 2009_1_527_trial version of RadControls for ASP.NET.AJAX and
Column resizing is working as expected. Please give it a try and let me know what is the difference in your case.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ilias
Top achievements
Rank 1
answered on 02 Jul 2009, 12:47 PM
Hi Pavlina,

by updating me telerik demo version to 2009_2_701_trial everything works fine.

Thanks
Tags
Grid
Asked by
Ilias
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Ilias
Top achievements
Rank 1
Share this question
or