Is there a good sample of how to build the rowedittemplate dynamically? Including the clientbindings and template within the rowedittemplate? Need to do all this below on the server:
<
>
="buttonOK">
/>
="$get({ClientID}).value"
:none">
="OK"
="return"
Hi ratkinson,
If you need further assistance on the matter please do not hesitate to ask.
Hello ratkinson,
For the WebHierarchicalDataGrid you should use the following syntax, when working with behaviors:
this.WebHierarchicalDataGrid1.GridView.Behaviors.CreateBehavior<EditingCore>();
this.WebHierarchicalDataGrid1.GridView.Behaviors.EditingCore.Behaviors.CreateBehavior<RowEditingTemplate>();
Please let me know if you need further assistance on that matter.
Yes this does help with a WebDataGrid. I assumed this would work for a WebHierarchicalDataGrid as well, but does not. In regards to the WebHierarchicalDataGrid, the following code does not proceduce a runtime error, but the template is not created and the InstantiateIn method in the CustomRowEditingTemplate class never fires. So do you have an example of this working in the WebHierarchicalDataGrid?
this.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.Template = new CustomRowEditingTemplate();
new
I suggest you to check the following article, describing adding RowEditingTemplate and using Client bindings from the code-behind: http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDataGrid_Using_Client_Bindings.html.
Please let me know if this helps.