Hello,
I would like to change the binding of the ItemTemplate of a GridTemplateColumn in code behind. I am trying to use the click event of a button outside of the grid to change the binding. On the button click, I would like change the Text value of the ItemTemplate to '<%#Eval("Choose")%>'. Please assist.
APSX:
<telerik:GridTemplateColumn HeaderText="SSA Decision" SortExpression="SSA_Decision" UniqueName="SSA_Decision"><ItemTemplate> <asp:Label ID="lblSSADecision" runat="server" Text='<%#Eval("SSA_Decision")%>' /></ItemTemplate><EditItemTemplate> <telerik:RadComboBox runat="server" ID="cboSSADecision" Skin="WebBlue" Width="105px"> <Items> <telerik:RadComboBoxItem Text="Yes" Value="True" /> <telerik:RadComboBoxItem Text="No" Value="False" /> <telerik:RadComboBoxItem Text="Please Choose" Value="Choose" Selected="true" /> </Items> </telerik:RadComboBox></EditItemTemplate></telerik:GridTemplateColumn>Thanks!
