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
375
Problem on DropDownProvider in add new row
posted

Hi,

I'm getting some javascript error when having a DropDownProvider with

AutoPostBackFlags-ValueChanged

 

="On"

Step to replicate:

1. Load page with DropDownProvider in add new row.

2. Select an item from drop down. Once selected, then page will invoke a post. After post back an javascript error prompt out.

Microsoft JScript runtime error: 'this._editor' is null or not an object

Any idea?

Below are my code

<ig:WebDataGrid ID="wdgTransactionSource" runat="server" width="99%"

            DataKeyFields="ID" AutoGenerateColumns="False" >

            <Columns>

                <ig:BoundDataField DataFieldName="ID" Key="ID" Hidden="true">

                    <Header Text="ID" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="GroupID" Key="GroupID">

                    <Header Text="Group" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="SourceName" Key="SourceName">

                    <Header Text="Source" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="QueueName" Key="QueueName">

                    <Header Text="Queue" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="SkillSetID" Key="SkillSetID">

                    <Header Text="Skill Set" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="Priority" Key="Priority" CssClass="igg_AlignCenter">

                    <Header Text="Priority" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="ServiceLevel" Key="ServiceLevel" CssClass="igg_AlignCenter">

                    <Header Text="Service Level" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="DollarValue" Key="DollarValue" CssClass="igg_AlignCenter">

                    <Header Text="Value" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="IncludeInWorkDistribution" Key="IncludeInWorkDistribution" CssClass="igg_AlignCenter">

                    <Header Text="Include" />

                </ig:BoundDataField>

                <ig:BoundDataField DataFieldName="ForecastIncoming" Key="ForecastIncoming" CssClass="igg_AlignCenter">

                    <Header Text="Incoming" />

                </ig:BoundDataField>

                <ig:TemplateDataField Key="DeleteItem" Width="15px">

                    <ItemTemplate>

                        <asp:ImageButton runat="server" ID="DeleteItem" AlternateText="Delete" ImageUrl="~/images/delete.jpg" OnClientClick="if (confirm('Are you sure you want to delete?')) DeleteTransactionSource(); return false;" />                                           

                    </ItemTemplate>

                </ig:TemplateDataField>

            </Columns>

            <Behaviors>

                    <ig:Activation Enabled="true" />

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

                    <ig:EditingCore AutoCRUD="False">

                        <Behaviors>

                            <ig:RowDeleting Enabled="true" />

                            <ig:RowAdding Alignment="Top"

                                EditModeActions-EnableOnActive="True"

                                EditModeActions-MouseClick="Single"

                                Enabled="true">

                                <ColumnSettings>

                                    <ig:RowAddingColumnSetting ColumnKey="GroupID" EditorID="ddpTransactionGroup" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="SourceName" EditorID="wtepSourceName" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="QueueName" EditorID="wtepQueueName" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="SkillSetID" EditorID="ddpSkillSet" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="Priority" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="ServiceLevel" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="DollarValue" EditorID="ddpTrueFalse" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="IncludeInWorkDistribution" EditorID="ddpTrueFalse" ReadOnly="false" />

                                    <ig:RowAddingColumnSetting ColumnKey="ForecastIncoming" ReadOnly="false" />

                                </ColumnSettings>

                            </ig:RowAdding>                           

                        </Behaviors>

                    </ig:EditingCore>

                    <ig:Filtering Alignment="Top" AnimationEnabled="true" Enabled="true" EnableInheritance="True">

                        <ColumnSettings>

                            <ig:ColumnFilteringSetting ColumnKey="GroupID" Enabled="false" />

                            <ig:ColumnFilteringSetting ColumnKey="SourceName" Enabled="true" />

                            <ig:ColumnFilteringSetting ColumnKey="QueueName" Enabled="true" />

                            <ig:ColumnFilteringSetting ColumnKey="SkillSetID" Enabled="false" />

                            <ig:ColumnFilteringSetting ColumnKey="Priority" Enabled="false" />

                            <ig:ColumnFilteringSetting ColumnKey="ServiceLevel" Enabled="false" />

                            <ig:ColumnFilteringSetting ColumnKey="DollarValue" Enabled="false" />

                            <ig:ColumnFilteringSetting ColumnKey="IncludeInWorkDistribution" Enabled="false" />

                            <ig:ColumnFilteringSetting ColumnKey="ForecastIncoming" Enabled="false" />

                        </ColumnSettings>

                    </ig:Filtering>

                     <ig:Sorting>

                    </ig:Sorting>

                </Behaviors>                                

            <EditorProviders>                                                        

                <ig:DropDownProvider ID="ddpTransactionGroup"

                    EditorControl-NullText="Please Select">

                    <EditorControl ID="EditorControl1" runat="server"

                        DataKeyFields="ID"

                        DisplayMode="DropDown"

                        EnableViewState="True"

                        ValueField="ID"

                        TextField="GroupName"                                          

                        EnableAnimations="False"

                        EnableDropDownAsChild="False"

                        DropDownAnimationDuration="150"

                        AutoPostBackFlags-ValueChanged="On"

                        NullText="Please Select">

                    </EditorControl>

                </ig:DropDownProvider>

                <ig:WebTextEditProvider ID="wtepSourceName" MaxLength="128" />

                <ig:WebTextEditProvider ID="wtepQueueName" MaxLength="128" />

                <ig:DropDownProvider ID="ddpSkillSet"

                    EditorControl-AutoPostBackFlags-ValueChanged="Off"

                    EditorControl-NullText="Please Select">

                    <EditorControl ID="EditorControl2" runat="server"

                        DataKeyFields="ID"

                        DisplayMode="DropDown"

                        ValueField="ID"

                        TextField="SkillSet"                                          

                        EnableAnimations="False"

                        EnableDropDownAsChild="False"

                        DropDownAnimationDuration="100"

                        AutoPostBackFlags-ValueChanged="Off"

                        NullText="Please Select">

                    </EditorControl>

                </ig:DropDownProvider>

                <ig:WebNumericEditProvider ID="wnepPriority"

                    MaxValue="99999999"

                    MinValue="0"

                    MinDecimalPlaces="None"

                    HorizontalAlign="Center"

                    DataMode="Int" />

                <ig:WebNumericEditProvider ID="wnepServiceLevel"

                    MaxValue="999"

                    MinValue="0"

                    MinDecimalPlaces="None"

                    HorizontalAlign="Center"

                    DataMode="Int" />

                <ig:DropDownProvider ID="ddpTrueFalse"

                    EditorControl-AutoPostBackFlags-ValueChanged="Off"

                    EditorControl-NullText="Please Select">

                    <EditorControl ID="EditorControl3" runat="server"

                        DataKeyFields="ID"

                        DisplayMode="DropDown"

                        EnableAnimations="False"

                        EnableDropDownAsChild="False"

                        DropDownAnimationDuration="100"

                        AutoPostBackFlags-ValueChanged="Off"

                        NullText="Please Select">

                        <Items>

                        <ig:DropDownItem Text="True" Value="1" Selected="true"></ig:DropDownItem>

                        <ig:DropDownItem Text="False" Value="0"></ig:DropDownItem>

                        </Items>

                    </EditorControl>

                </ig:DropDownProvider>

                <ig:WebNumericEditProvider ID="wnepForecastIncoming"

                    MaxValue="99999999"

                    MinValue="0"

                    MinDecimalPlaces="None"

                    HorizontalAlign="Center"

                    DataMode="Int" />

            </EditorProviders>

        </ig:WebDataGrid>