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
720
Display Data as Label in RowEditingTemplate (not in textbox)
posted

Is it possible to display some of the client data from my grid as a label.  I want it displayed on the template form, but it is not an editable column.  Is this possible?

Parents
No Data
Reply
  • 29417
    Verified Answer
    Offline posted

    Hello lorettac242 ,

     

    Indeed that is possible. You just need to change the GetValueJavaScript and SetValueJavaScript  to be compatible with the label since the label doesn’t have value property.

    For example if the label in you template is defined like this:

       <asp:Label ID="control_id" runat="server" Text="" />   

    The RowEditingClientBinding must look something like this:

     

     <ig:RowEditingClientBinding ColumnKey="id" ControlID="control_id" GetValueJavaScript="$get({ClientID}).innerHTML"

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

     

     

    I’m also attaching a sample with this. Let me know if you have any further questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

    WDGRowEditingTemplate.zip
Children
No Data