Hello!
In my DataSource, there is a boolean property that I'm representing via a BoundCheckBoxField in my grid (whick works fine). CellEditing with the CheckBox also works, but I want to be using RowAdding, and I just can't get it work with BoundCheckBoxField at all. I can see the CheckBox in the AddNewRow but can't enter the cell, but manually setting ReadOnly to false for the Editing doesn't change it either. If I switch to BoundDataField with DataType="System.Boolean" it's working again, but I lack the nice CheckBoxes. Here is a minimal example:
<asp:ScriptManager runat="server" />
<ig:WebDataGrid ID="WebDataGrid1" runat="server" AutoGenerateColumns="False" EnableAjax="False" DataKeyFields="ID" Height="350px" Width="400px" DataSourceID="source">
<Columns>
<ig:BoundDataField Key="Name" DataFieldName="Name" Header-Text="Name" />
<ig:BoundCheckBoxField Key="Female" DataFieldName="IsFemale" Header-Text="Female?" />
<ig:BoundDataField Key="Birthday" DataFieldName="Birthday" Header-Text="Birthday" DataType="System.DateTime" />
</Columns> <Behaviors>
<ig:EditingCore Enabled="true" BatchUpdating="true">
<Behaviors>
<ig:RowAdding Alignment="Top" Enabled="true" />
<ig:CellEditing Enabled="true" />
</Behaviors>
</ig:EditingCore>
</ig:WebDataGrid>
<asp:ObjectDataSource ID="source" TypeName="WebApplication2.Source" SelectMethod="GetData" runat="server" />
The code for the DataSource is:
namespace WebApplication2
{
public class Source
public IList GetData()
return new List<Person>() { new Person { ID = 1, Birthday = DateTime.Now, Name = "Me", IsFemale = false } };
}
public class Person
public int ID { get; set; }
public DateTime Birthday { get; set; }
public string Name { get; set; }
public bool IsFemale { get; set; } } }
Thanks in advance for any help getting this to work (if it's possible) with CheckBoxes!
PS: This time I decided to use CellEditing, but when I tried RowEditing, as soon as I enter a row with a BoundCheckBoxField inside, the state of the CheckBox is not saved (it's always Unchecked when in RowEditing mode, but reverts to its initial state on "Done" if I didn't touch it).
Hello Petar,
yes, it was indeed as you said, but due to difficult circumstances here it took us some time to update to the newest Service Release. Now it works as expected, thanks!
Hello Johannes,
Please do not hesitate to contact me if you are still experiencing any issues with this scenario.
Thank you for your replies and patience.
I've reproduced the issues mentioned and they seem to be specific to the 14.1 RTM (build 1015). With latest SR - build 2011 these behaviors are resolved. Therefore I would suggest downloading and installing the latest SR. This can be done from the "My Keys & Downloads" section in your website account profile.
Please do not hesitate to contact me if you have any questions.
Just in case the .zip archive with a VS solution is not preferred: the exact assembly we are referencing is the following:
Assembly="Infragistics45.Web.v14.1, Version=14.1.20141.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
And the problem persists. Right now we are installing the VS2013 Update 2, and even though I don't think this is the reason for this, I'll keep you updated. Any further information as to why the code above or in the .zip doesn't work is very welcome, as we'd very much like to use CheckBoxes and a generic BoundDataField with DataType="System.Boolean" (which works but is ugly in comparison ;)).
Hi Petar and thank you very much for the effort :-) I copy-pasted your code (which is basically the same as mine except for the added Activation and the method GetData() not being in an ObjectDataSource as far as I can see), but I can reproduce my issue still.
We are using Infragistics 14.1 Ultimate Controls (.NET/CLR 4.5 Version) on VS2013 Premium Update 1. I didn't know that Activation was necessary, so I added it in my actual project everywhere :-) but that seems to not have been the reason for this issue. The DataSource being an IList shouldn't have anything to do with it either as far as I know, since in this TestPage it is just use to provide the data and nothing else.
I will attach the Visual Studio Project I have created so that you can see everything there is. I hope it's just a stupid mistake by me, but so far we can reproduce both behaviors (RowAdding not working for the BoundCheckBoxField and the checked Checkbox on IsFemale=true not being uncheckable) with this TestPage on all of our development machines. Thank you very much for your investigation!
Edit: I forgot: We're using Internet Explorer 10 (10.0.9200) here and don't have the opportunity to test any other browser. Could that be a possible reason for this?