Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1250
Template access on server side
posted

Hi,

I am using templates for row editing.The mark-up is something like this. The question is how can I get access to shiftsTemplate control on server side.

<ig:RowEditingTemplate Enabled="true">                                                       
          <Template >
                   <controls:ShiftTemplate ID="shiftsTemplate" runat="server"/>
            </Template>                                                       
</ig:RowEditingTemplate>                                               

I've tried following:

var mycontrol = (ShiftTemplate)m_grid.Behaviors.EditingCore.Behaviors.RowEditTemplate.Template ;

but that doesn't work.

Please help.

I've tried following this recomendation, but they doesn't work either:

http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.1/CLR3.5/html/WebDataGrid_Binding_Controls_in_Row_Editing_Template.html