Ext.Net Grid Checkbox Column Problem
Hi ........
I am Facing a problem while using ext grid panel with a checkbox column inside it. Assigned DataIndex datatype as boolean and its working fine when binding Boolean Data.But the problem is when I'm using oracle as backend (There is no Boolean Datatype,hence used char)....
Anyway i want to bind the data from DB in Grid..All other fields get binded..except checkbox....
Is there any other option to set the checkbox checked , unchecked based on a char value while binding Grid with the store...?
Pls Help...............................
CheckBox Binding Problem in side Grid
Hi Viladimir ....
Thanks for your reply........
I tried as shown in the sample..but still now i cant overcome
Code:
DataTable table1 = new DataTable("GridTable");
DataColumnCollection columns1 = table1.Columns;
DataColumn Column1 = columns1.Add(ID_FIELD, typeof(System.Int32));
columns1.Add(FORMNAME_FIELD, typeof(System.String));
columns1.Add(ADDRIGHTS_FIELD , typeof(System.Boolean ));
<ext:RecordField Name="FORMNAME" />
<ext:RecordField Name="addrights" Type ="Boolean" >
<Convert Handler="return value === 'Y';" />
</ext:RecordField>
Returned Datatable From DB
/----------------------------/
N 1 New Mail Entry
Y 2 Mail View
Y 3 Mail Attachment Details
/------------------------------/
But still i cant achieve it in screen...when i see in explorer ,checkbox remains unchecked....