Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Resize issues
posted

Hi. I've tried to enable resize on an UltraWebDataGrid, but with no luck. Whenever i try to resize columns, I just get an icon with a stopsign.

I've tried looking at the sample, but this does not produce this error. I've tried adding all of my columns to the resize list on Behavious.ColumnResize, nothing changes.

My grid is here.

</script><ig:WebDataGrid ID="dgTask" runat="server" Height="300px" Width="100%" DataMember="OrTaskView2"

    AutoGenerateColumns="False" DataKeyFields="TaskID" 

    AltItemCssClass="rowAlternat" ItemCssClass="rowNormal" 

    DefaultColumnWidth="100px" oncolumnsorted="dgTask_ColumnSorted" 

    onpageindexchanged="dgTask_PageIndexChanged" 

    oninitializerow="dgTask_InitializeRow" 

    oncolumnresized="dgTask_ColumnResized">

    <Behaviors>

        <ig:Sorting Enabled="true" AscendingImageAltText="Stigende" 

            DescendingImageAltText="Faldende">

        </ig:Sorting>

        <ig:Selection Enabled="true" CellClickAction="Row" RowSelectType="Single" 

            CellSelectType="None">

            <SelectionClientEvents RowSelectionChanging="RowSelectionChangingHandler" />

        </ig:Selection>

        <ig:Paging PageSize="50">

        </ig:Paging>

        <ig:ColumnResizing>

        </ig:ColumnResizing>

    </Behaviors>

    <Columns>

        <ig:BoundDataField DataFieldName="TaskID" Key="TaskID" DataType="System.Int32" Hidden="True">

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="TaskUID" Key="TaskUID" Width="60px">

            <Header Text="Nr" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="StatusText" Key="StatusText" Width="65px">

            <Header Text="Status" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="AssigneeUID" Key="AssigneeUID" Width="75px">

            <Header Text="Delegeret" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="Narrative" Key="Narrative" Width="130px">

            <Header Text="Emne" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="CDateTime" Key="CDateTime" Width="75px" DataFormatString="{0:d}"

            DataType="System.DateTime">

            <Header Text="Oprettet" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="CUser" Key="CUser" Width="75px">

            <Header Text="Oprettet af" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="EDateTime" Key="EDateTime" Width="75px" DataFormatString="{0:d}"

            DataType="System.DateTime">

            <Header Text="Rettet" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="EUser" Key="EUser" Width="75px">

            <Header Text="Rettet af" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="PriorityUID" Key="PriorityUID" Width="75px">

            <Header Text="Prioritet" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ETCDateTime" Key="ETCDateTime" Width="75px" DataFormatString="{0:d}"

            DataType="System.DateTime">

            <Header Text="Forventet afsluttet" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="AreaUID" Key="AreaUID" Width="75px">

            <Header Text="Område" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ClassificationUID" Key="ClassificationUID" Width="75px">

            <Header Text="Klass." />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ReportedUser" Key="ReportedUser" Width="75px">

            <Header Text="Anmeldt af" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="NoOfActions" Key="NoOfActions" Width="30px" DataType="System.Int32">

            <Header Text="A" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ReadByAssignee" Key="ReadByAssignee" Width="30px"

            DataType="System.Int32">

            <Header Text="Læst" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ReportedVersion" Key="ReportedVersion" Width="100px">

            <Header Text="Version" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ReportedName" Key="ReportedName" Width="75px">

            <Header Text="Kundenavn" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ServiceTag" Key="ServiceTag" Width="75px">

            <Header Text="Service tag" />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="AccountNumber" Key="AccountNumber" Width="75px">

            <Header Text="Kundenr." />

        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="ReportedPhone" Key="ReportedPhone" Width="75px">

            <Header Text="Tlf." />

        </ig:BoundDataField>

        <ig:TemplateDataField Key="DateIcon">

            <Header Text="Dato ikon" />

            <ItemTemplate>

                <asp:Label ID="imgLabel" runat="server"

                    Text=""></asp:Label>

                </ItemTemplate>

        </ig:TemplateDataField>

        <ig:TemplateDataField Key="StatusIcon">

            <Header Text="Status ikon" />

            <ItemTemplate>

                <asp:Label ID="imgLabel" runat="server"

                    Text=""></asp:Label>

                </ItemTemplate>

        </ig:TemplateDataField>

        <ig:TemplateDataField Key="PriorityIcon">

            <Header Text="Prioritets ikon" />

            <ItemTemplate>

                <asp:Label ID="imgLabel" runat="server"

                    Text=""></asp:Label>

                </ItemTemplate>

        </ig:TemplateDataField>

    </Columns>

    <ClientEvents DoubleClick="doubleclickHandler" />

</ig:WebDataGrid>

Parents
No Data
Reply
  • 7499
    posted

    I followed the steps you suggested and was unable to reproduce the behavior you're describing.  I am able to resize the columns of the webdatagrid.

     

    I have attached the sample project I used to test this.  Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.

     

    If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.

     

    Please let me know if I can provide any further assistance.

    Note: Please include ig_res directory into sample project before running it.

    WebDatagrid_Resizingissue.zip
Children