Hi,
I'm new to Infragistics, and have been working with the web data grid with unbound check box columns to select rows. However, after the postback on the screen (the screen is a simple workflow type of screen, i.e. cascading drop downs, select rows, more cascading drop downs, and click a button to submit), the unchecked checkboxes are shown as partially selected (i.e. have a faded out cross in them). I have seen examples on using a custom value formatter, but that is only applicable for Bound checkbox Columns. Is there another way I can remove the partial select ability, as it could cause confusion with the system users?
I am using Infragistics NetAdvantage for ASP.NET V11.2, SR 2141
Thanks,
Hi Eduard,
I'm glad you solved your issue.
If you have any other questions please feel free to contact me.
Thank you very much for the tip. I have since changed to a Bound checkbox field and have reached a solution for this problem.
But thanks a lot for the help!!
Your answer is here..
http://es.infragistics.com/community/forums/t/72393.aspx
Even i am facing the same issue for long. here is the code sample:
<ig:WebDataGrid ID="gridIJE" runat="server" VisibleControl="false" Width="100%" StyleSetName="Office2007Blue" AutoGenerateColumns="False" ViewStateMode="Enabled" DataKeyFields="RowID" EnableDataViewState="True" EnableAjax="false" EnableViewState="true"> <Columns> <ig:UnboundCheckBoxField HeaderCheckBoxMode="BiState" HeaderChecked="False" Key="UnboundCheckBoxField_0" Width="37Px"> </ig:UnboundCheckBoxField>
<Behaviors> <ig:EditingCore> <Behaviors> <ig:CellEditing Enabled="true"> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="RowID" ReadOnly="false" /> </ColumnSettings> </ig:CellEditing> </Behaviors> </ig:EditingCore>
</ig:WebDataGrid>
Hello Eduard,
Thank you for posting in our forum!
The checkboxes in an UnboundCheckBoxField are actually tri-state. They can have value of true, false or null. To become partially selected, the checkbox value should be explicitly set to null. This may be caused also by clearing the datasource of the grid, for example. In order to be able to investigate this issue further, I would need a small isolated sample, reproducing the behavior.
Feel free to contact us if you have any other questions.