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
515
How do you Dynamically build rowedittemplate on server?
posted

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:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

 

ig:EditingCore

>

 

 

 

<Behaviors

>

 

 

 

<ig:RowEditingTemplate CancelButton="buttonCancel" OKButton

="buttonOK">

 

 

 

<RowEditingClientEvents TemplateOpening="whdgDataGrid_templateOpening"

/>

 

 

 

<EditModeActions MouseClick="Double"

/>

 

 

 

<ClientBindings

>

 

 

 

<ig:RowEditingClientBinding ColumnKey="last_free_day" ControlID="ctest" GetValueJavaScript

="$get({ClientID}).value"

 

 

 

SetValueJavaScript="$get({ClientID}).value={value}"

/>

 

 

 

</ClientBindings

>

 

 

 

<Template

>

 

 

 

<div id="divEditTemplate" class="EditTemplate" title="Update Template"

>

 

 

 

<table

>

 

 

 

<tr

>

 

 

 

<td

>

 

 

 

<asp:Label ID="lbltest" runat="server" Text="test"

/>

 

 

 

</td

>

 

 

 

<td

>

 

 

 

<asp:TextBox ID="ctest" runat="server" Width="200px"></asp:TextBox

>

 

 

 

</td

>

 

 

 

</tr

>

 

 

 

</table>

 

 

 

<div style="display

:none">

 

 

 

<asp:Button ID="buttonOK" runat="server" OnClientClick="return" Text

="OK"

 

 

 

UseSubmitBehavior="False" />

&nbsp;

 

 

 

<asp:Button ID="buttonCancel" runat="server" CausesValidation="False" OnClientClick

="return"

 

 

 

Text="Cancel" UseSubmitBehavior="False"

/>

 

 

 

</div

>

 

 

 

</div

>

 

 

 

</Template

>

 

 

 

</ig:RowEditingTemplate>

 

 

 

</Behaviors

>

 

 

 

</ig:EditingCore

>