I have a grid that is displaying a couple of values from an object data source along with an unbound GridClientSelectColumn:
<Columns>
<telerik:GridBoundColumn ColumnGroupName="gridData"
DataField="LocationID"
ReadOnly="true"
UniqueName="LocationID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn ColumnGroupName="gridData"
DataField="LocationDesc"
ReadOnly="true"
UniqueName="LocationDesc">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn ColumnGroupName="gridData"
DataField="DefaultValue"
Display="false"
UniqueName="DefaultValue">
</telerik:GridBoundColumn>
<telerik:GridClientSelectColumn ColumnGroupName="gridData"
UniqueName="Select">
</telerik:GridClientSelectColumn>
</Columns>
The LocationID, LocationDesc, and DefaultValues are coming from the datasource and are bound. What I'd like to do is set that GridClientSelectColumn to selected if the DefaultValue (which is a Boolean) from the datasource is true.
I've tried several different approaches but have not found one that works yet. Can anyone enlighten me?
<Columns>
<telerik:GridBoundColumn ColumnGroupName="gridData"
DataField="LocationID"
ReadOnly="true"
UniqueName="LocationID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn ColumnGroupName="gridData"
DataField="LocationDesc"
ReadOnly="true"
UniqueName="LocationDesc">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn ColumnGroupName="gridData"
DataField="DefaultValue"
Display="false"
UniqueName="DefaultValue">
</telerik:GridBoundColumn>
<telerik:GridClientSelectColumn ColumnGroupName="gridData"
UniqueName="Select">
</telerik:GridClientSelectColumn>
</Columns>
The LocationID, LocationDesc, and DefaultValues are coming from the datasource and are bound. What I'd like to do is set that GridClientSelectColumn to selected if the DefaultValue (which is a Boolean) from the datasource is true.
I've tried several different approaches but have not found one that works yet. Can anyone enlighten me?