Set radtextbox value in itemtemplate

1 posts, 0 answers
  1. Frank
    Frank avatar
    22 posts
    Member since:
    Jun 2017

    Posted 11 Jan 2018 Link to this post

    So I saw one of the old thread by Princy:



    I tried that in my lightbox but it seems is not setting the value of the textbox in the itemtemplate of the lightbox, why ?


            function OpenLB() {
                var lightBox = $find('<%= LBoxEdit.ClientID %>');
                var Text = lightBox.get_element().getElementsByClassName("rltbDescriptionBox");
                Text.LBoxEdit$txtDescripton.control.set_value("new value");



                        <table style="padding: 20px; font-family: Arial">
                                <td style="font-family: Arial, Helvetica, sans-serif; font-size: 18px; padding-bottom: 10px;">
                                <td style="padding: 10px 0px 10px 20px">
                                    <telerik:RadTextBox ID="txtDescripton" runat="server" CssClass="rltbDescriptionBox" Font-Size="16px" Width="400px" Height="30px">
                                <td style="padding: 10px 0px 10px 20px">
                                    <telerik:RadButton RenderMode="Lightweight" ID="btnFormSave" Height="30px"
                                        Text="Save" Font-Size="16px" Font-Bold="True" runat="server" Skin="Silk"></telerik:RadButton>

Back to Top