Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Set Label in ItemTemplate from CellValueChanged

$
0
0

Hi,

Using the RadGrid in Batch Editing mode and the EditType is set to row. 

aspx:

<telerik:GridTemplateColumnUniqueName="2_1"DataType="System.Int32"DataField="2_1"AllowSorting="false">
    <ItemTemplate>
        <asp:Labelrunat="server"ID="lbl2_1"Text='<%# Eval("2_1") %>'></asp:Label>
        <asp:Labelrunat="server"ID="lblDay2_1"ClientIDMode="Static"></asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
        <span>
            <telerik:RadNumericTextBoxrunat="server"ID="tb2_1"Text='<%# Bind("2_1") %>' Type="Number" MinValue="0" MaxValue="999">
                <NumberFormatDecimalDigits="0"/>                                       
            </telerik:RadNumericTextBox>                                   
        </span>                               
    </EditItemTemplate>
</telerik:GridTemplateColumn>  

I want to access the label ""lblDay2_1" client-side to change the text when the user edit the RadNumericTextBox

I think the best way is to use the event "CellValueChanged" but I am not be able to access the Label "lblDay2_1" to change the text.

How can I do that? 

Thanks in advance.

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>