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
240
UserControl as rowedittemplate for child band; issues with loading & binding
posted

Infragistics4.Web.v13.1, Version=13.1.20131.2107

I'm trying to utilize a usercontrol as the rowedittemplate for a childband in my WHDG. The idea behind the UC is that it should dynamically represent the data being edited: different controls will be visible for different data in the bands.

Q/P1): is there a way to prevent the UC from being rendered with every childband record? There could be 1000's...

Q/P2): how do I bind serverside to some public properties of the UC? Since it appears the UC instances are loading with every record (see above), I could cut down on the amount of html being rendered by only making visible the controls I am concerned with for each row. Using two public properties "Parameter" and "Selections", I have tried this type of setup in the template:

<ig:RowEditingTemplate CancelButton="buttonCancel" OKButton="buttonOK">
...    
<Template>        
<uc1:ucSetParameter ID="ucSetParameter1" runat="server" Parameter='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "ParameterName") %>' Selections='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "CurValue2") %>' />    
</Template>
</ig:RowEditingTemplate>

but cannot determine the correct binding container reference, I either get "not part of namespace" or "doesn't contain this property" errors (I've confirmed the dataset does match the "ParameterName" key & case) whenever I try alternate container references.

Any help appreciated.