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 DataFieldName="SourceName" Key="SourceName">
<Header Text="Source" />
<ig:BoundDataField DataFieldName="QueueName" Key="QueueName">
<Header Text="Queue" />
<ig:BoundDataField DataFieldName="SkillSetID" Key="SkillSetID">
<Header Text="Skill Set" />
<ig:BoundDataField DataFieldName="Priority" Key="Priority" CssClass="igg_AlignCenter">
<Header Text="Priority" />
<ig:BoundDataField DataFieldName="ServiceLevel" Key="ServiceLevel" CssClass="igg_AlignCenter">
<Header Text="Service Level" />
<ig:BoundDataField DataFieldName="DollarValue" Key="DollarValue" CssClass="igg_AlignCenter">
<Header Text="Value" />
<ig:BoundDataField DataFieldName="IncludeInWorkDistribution" Key="IncludeInWorkDistribution" CssClass="igg_AlignCenter">
<Header Text="Include" />
<ig:BoundDataField DataFieldName="ForecastIncoming" Key="ForecastIncoming" CssClass="igg_AlignCenter">
<Header Text="Incoming" />
<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">
<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">
<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" />
</ig:Filtering>
<ig:Sorting>
</ig:Sorting>
<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 ID="EditorControl2" runat="server"
TextField="SkillSet"
DropDownAnimationDuration="100"
AutoPostBackFlags-ValueChanged="Off"
<ig:WebNumericEditProvider ID="wnepPriority"
MaxValue="99999999"
MinValue="0"
MinDecimalPlaces="None"
HorizontalAlign="Center"
DataMode="Int" />
<ig:WebNumericEditProvider ID="wnepServiceLevel"
MaxValue="999"
<ig:DropDownProvider ID="ddpTrueFalse"
<EditorControl ID="EditorControl3" runat="server"
<Items>
<ig:DropDownItem Text="True" Value="1" Selected="true"></ig:DropDownItem>
<ig:DropDownItem Text="False" Value="0"></ig:DropDownItem>
</Items>
<ig:WebNumericEditProvider ID="wnepForecastIncoming"
</EditorProviders>
</ig:WebDataGrid>
Hi wiley,
Could you perhaps put together a small sample reproducing this? I could then look at that. Another option is to contact developer support and work with them to submit a bug.
thanks,Dave
Halo,
any updates?
I'm using Version=10.3.20103.2088
The reason why i need to post back is i need to filter the second DropDownList ddpSkillSet.
E.g Data
Group SkillSet-------------------------Group A A&IGroup A F&BGroup A Etc.Group B EmailGroup B PhoneGroup C OrderGroup C Release
When user selected 'Group A', then the SkillSet dropdownlist should populate options A&I, F&B and Etc.
Any suggestion for this?
Hi Wiley,
Why is it that you would need to postback to the server when the drop down's value has changed?
What version and build number are you using of the Infragistics controls. It is possible that this was fixed in a later Service Release. You could try upgrading to the latest and see if the problem still reproduces.
regards,David Young