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
320
Row updates with other editors but not dropdown provider
posted

Hi

Below is my code.

I have an object data source which plugs into a webservice. Updates work fine except for the fields that contain a DropDownProvider.

So if i update say the Name field and say the InceptionDate field (uses a WebDateChooserProvider) the data from these items are passed to the update method perfectly, yet the data from DropDownProvider field are not.

Please help, i cant see any difference between my code and the examples.

Code Below:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

ig:WebDataGrid ID="WebDataGrid1" DataSourceID="ObjectDataSource1" runat

="server"

 

 

AutoGenerateColumns="False" DataKeyFields="ProductId" Width

="900px">

 

 

<EditorProviders

>

 

 

<ig:DropDownProvider ID

="ProductClassificationsProvider">

 

 

<EditorControl runat="server" DisplayMode="DropDownList" DataSourceID

="ProductClassifications"

 

 

TextField="Name" ValueField="ProductClassificationId" Width="200px"

/>

 

 

</ig:DropDownProvider

>

 

 

<ig:WebTextEditProvider ID="BasicTextProvider"

/>

 

 

<ig:WebDateChooserProvider ID="DateInputProvider"

/>

 

 

</EditorProviders

>

 

 

<Columns

>

 

 

<ig:BoundDataField DataFieldName="ProductId" Key

="ProductId">

 

 

<Header Text="ID"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="Name" Key

="Name">

 

 

<Header Text="Product Name"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="ClassificationName" Key

="ProductClassificationId">

 

 

<Header Text="Product Classification"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="ProductBenchmarkId" Key

="ProductBenchmarkId">

 

 

<Header Text="Product Benchmark"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="CustomBenchMark" Key

="CustomBenchMark">

 

 

<Header Text="Custom Benchmark"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="PortfolioManagerId" Key

="PortfolioManagerId">

 

 

<Header Text="Portfolio Manager"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="InceptionDate" Key

="InceptionDate">

 

 

<Header Text="Inception Date"

/>

 

 

</ig:BoundDataField

>

 

 

</Columns

>

 

 

<Behaviors

>

 

 

<ig:Paging PagerAppearance="Bottom" PageSize="3" Enabled="true"

/>

 

 

<ig:Activation

/>

 

 

<ig:Selection RowSelectType="Multiple" CellClickAction="Row"

/>

 

 

<ig:EditingCore

>

 

 

<Behaviors

>

 

 

<ig:CellEditing Enabled

="true">

 

 

<ColumnSettings

>

 

 

<ig:EditingColumnSetting ColumnKey="ProductId" ReadOnly="true"

/>

 

 

<ig:EditingColumnSetting EditorID="BasicTextProvider"

/>

 

 

<ig:EditingColumnSetting ColumnKey="ProductClassificationId" EditorID="ProductClassificationsProvider"

/>

 

 

<ig:EditingColumnSetting ColumnKey="InceptionDate" EditorID="DateInputProvider"

/>

 

 

</ColumnSettings

>

 

 

</ig:CellEditing

>

 

 

</Behaviors

>

 

 

</ig:EditingCore

>

 

 

</Behaviors

>

 

 

</ig:WebDataGrid

>

 

 

<br

/>

 

 

<asp:Button ID="SaveButton" runat="server" Text="Save"

/>

 

 

<asp:ScriptManager ID="ScriptManager1" runat

="server">

 

 

</asp:ScriptManager

>

 

 

<asp:ObjectDataSource EnablePaging="True" ID="ObjectDataSource1" runat="server" SelectCountMethod

="GetProductCount"

 

 

SelectMethod="GetProducts" TypeName="RisCuraWs.Service" UpdateMethod

="UpdateProduct">

 

 

<UpdateParameters

>

 

 

<asp:Parameter Name="ProductId" Type="Int32"

/>

 

 

<asp:Parameter Name="Name" Type="String"

/>

 

 

<asp:Parameter Name="ProductClassificationId" Type="Int32"

/>

 

 

<asp:Parameter Name="ProductBenchmarkId" Type="Int32"

/>

 

 

<asp:Parameter Name="CustomBenchMark" Type="Int32"

/>

 

 

<asp:Parameter Name="PortfolioManagerId" Type="Int32"

/>

 

 

<asp:Parameter Name="InceptionDate" Type="DateTime"

/>

 

 

<asp:SessionParameter Name="UserId" SessionField="UserId" Type="Int32"

/>

 

 

</UpdateParameters

>

 

 

<SelectParameters

>

 

 

<asp:SessionParameter Name="ManagerId" SessionField="ManagerId" Type="Int32"

/>

 

 

</SelectParameters

>

 

 

</asp:ObjectDataSource

>

 

 

<asp:ObjectDataSource ID="ProductClassifications" runat="server" SelectMethod

="GetProductClassifications"

 

 

TypeName="RisCuraWs.Service"></asp:ObjectDataSource

>