Hello everyone!
We have a dropdown provider in a webdatagrid that has an ID and a Value field. the grid has multiple page indexes as well.
the first time it loads, the grid looks good. The dropdownprovider is working great. However, when i change pages, the dropdownprovider display the ID field from then on.
Here is where it gets weird...i click on the dropdownprovider, and it displays the value.
Example: ID is 1 Value is B
First Time: B is displayed
After page index changed : 1 is displayed
thanks for taking the time to assist us.
Dear MT,
Thank you for posting in our forums!
We have received your support request concerning the value in a DropDownProvider not displaying the correct TextField text after changing pages, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and I have the following questions;
a.) What is the version and build of Infragistics you are using? e.g. 14.2.20142.1028
b.) To clarify, are you referring to the text when opening the dropdown, or the text that displays in the WebDataGrid's cells for that column?
c.) Do you have the TextField and ValueField properties set in either the EditorControl or the DropDownItemBinding?
d.) If you cause a postback with a submit button, does this behavior also occur?
e.) Are you creating the DropDownProvider dynamically in code behind? If so, are you setting up the properties on each post back? Please provide the code you are using to set up your grid and your DropDownProvider so I may better assist you.
Looking forward to hearing from you.
Hello MT,
Please let me know if you still need help with this issue.
I have similar problem with WebDatagrid (Version=14.2.20142.1028). It has dropdown provider. Works ok when I select row from drop down, it shows Employee name, then I click TAB. When click back to drop down cell, it shows value field PersonNum instead of text field EmployeeName.
<ig:WebDataGrid ID="WebDataGrid4" runat="server" Height="200px" DataSourceID="ObjectDataSource9" AutoGenerateColumns="false" BackColor="Window" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="Large" ForeColor="Black" ShowFooter="false" ClientIDMode="Static" DataKeyFields="EmpId" > <EditorProviders> <ig:DropDownProvider ID="NameProvider"> <EditorControl ID="EditorControl2" runat="server" EnableAutoFiltering="Server" AutoFilterQueryType="StartsWith" AutoFilterSortOrder="Ascending" EnableAutoCompleteFirstMatch="false" EnableCachingOnClient="true" EnableLoadOnDemand="true" DisplayMode="DropDown" DataSourceID="ObjectDataSource11" TextField="EmployeeName" ValueField="PersonNum" > <ItemTemplate> <table style="width: 100%" cellspacing="0" cellpadding="4"> <tr style="border-bottom: solid 1px #ff0000;"> <td style="width: 150px; border-bottom: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "EmployeeName") %> </td> <td style="width: 100px; padding-left: 10px; border-bottom: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "PersonNum")%> </td> <td style="width: 50px; text-align: left; padding-left: 25px; border-bottom: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "Job")%> </td> </tr> </table> </ItemTemplate> <ClientEvents DropDownClosed="NameProvider_Closed" /> </EditorControl> </ig:DropDownProvider> <ig:DropDownProvider ID="JobProvider"> <EditorControl ID="EditorControl1" runat="server" DisplayMode="DropDown" DataSourceID="ObjectDataSource14" TextField="Job" Width="110px" /> </ig:DropDownProvider> </EditorProviders> <Columns> <ig:BoundDataField DataFieldName="Name" Key="Name" Width="200px" > <Header Text="Name" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="EmpID" Key="EmpID" Width="80px" > <Header Text="EmpID" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Job" Key="Job" Width="100px" > <Header Text="Job" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Notes" Key="Notes" Width="90px" > <Header Text="Notes" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Hrs" Key="Hrs" Width="80px" > <Header Text="Hrs" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="selected" Key="selected" Hidden="true" > </ig:BoundDataField> </Columns> <Behaviors> <%-- <ig:Activation Enabled="true" />--%> <ig:Selection RowSelectType="Single" CellClickAction="Cell" /> <ig:EditingCore BatchUpdating="True" > <Behaviors> <ig:CellEditing Enabled="true" > <EditModeActions MouseClick="Single" EnableOnActive="true" /> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="Name" EditorID="NameProvider" ReadOnly="false" /> <ig:EditingColumnSetting ColumnKey="EmpID" ReadOnly="true" /> <ig:EditingColumnSetting ColumnKey="Job" EditorID="JobProvider" ReadOnly="false" /> <ig:EditingColumnSetting ColumnKey="Hrs" ReadOnly="false" /> <ig:EditingColumnSetting ColumnKey="Notes" /> </ColumnSettings> <CellEditingClientEvents ExitingEditMode="WebDataGrid4_ExitedEditMode" /> </ig:CellEditing> <ig:RowAdding Alignment="Top" EditModeActions-EnableOnActive="true" EditModeActions-MouseClick="Single" Enabled="true" > <ColumnSettings> <ig:RowAddingColumnSetting ColumnKey="Name" EditorID="NameProvider" ReadOnly="false" /> <ig:RowAddingColumnSetting ColumnKey="EmpID" ReadOnly="true" /> <ig:RowAddingColumnSetting ColumnKey="Job" EditorID="JobProvider" ReadOnly="false" /> <ig:RowAddingColumnSetting ColumnKey="Hrs" ReadOnly="false" /> <ig:RowAddingColumnSetting ColumnKey="Notes" ReadOnly="false" /> </ColumnSettings> <AddNewRowClientEvents ExitingEditMode="AddingRow_ExitingEditMode" /> <%--<EditModeActions /> --%> </ig:RowAdding> </Behaviors> </ig:EditingCore> </Behaviors> <%-- <ClientEvents Click="CellButtonClick" />--%> </ig:WebDataGrid>
I have the same issue here: http://www.infragistics.com/community/forums/t/50123.aspx
I cannot seem to find the answer to this issue discussed from 2011.
<ig:RowEditingClientBinding ColumnKey="Instructor" ControlID="control_Instructor" GetValueJavaScript="$find({ClientID}).get_currentValue()" SetValueJavaScript="$find({ClientID}).set_currentValue({value},true)" />
When the RowEditingTemplat opens I am getting the InstructorID instead of the InstructorName when the RowEdittingTemplate opens. Please help.
Thank you,