LightBox with Textbox

4 posts, 0 answers
  1. DEBI
    DEBI avatar
    2 posts
    Member since:
    Jan 2013

    Posted 05 Nov 2013 Link to this post

    I need some help on how to read textbox values inside the lightbox :

    For example:
    <telerik:RadLightBox ID="OpenVideoLightBox" runat="server" Width="780px" Height="730px"  CssClass="lb_feedback" Modal="true">
                <AnimationSettings HideAnimation="Resize" NextAnimation="Fade" PrevAnimation="Fade" ShowAnimation="Resize" />
                        <asp:TextBox ID="FromEmail" runat="server" Font-Size="Small" Width="550px" Height="30px" />

    I am not able to read the textbox value from codebehind, how can i accomplish that?
  2. Kostadin
    Kostadin avatar
    1687 posts

    Posted 08 Nov 2013 Link to this post

    Hello Debi,

    As far as I can see you have enabled the modality of the LightBox. Could you please elaborate on which event you are trying to access the LigthBox values. Basically you have to find the LightBox control and in one of its item you could call FindControl() method to access the control.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
  4. Frank
    Frank avatar
    16 posts
    Member since:
    Oct 2011

    Posted 20 Dec 2013 Link to this post

    I used the sender.findcontrol("txtCompany").text in the "Command" event of the lightbox, but it seems the "items" in the itemtemplate already got reloaded and returned "" (empty string).

    So in what event can I get the value of the text box before it gets "destroyed"?

    And just let you know what I am trying to do with the LightBox control, I am trying to use it for "wizard" screen where you can have Step 1, Step 2 and blah. 

    So  I have 3 itemtemplate items in the Lightbox control.  

    1. in the first page, it has some general information, e.g. first name, last name, etc.  They are radtextbox control.

    2. When user hit the "next" button, in the "command" event, I tried to read the value of textbox, I get "" (empty string value).  

    So where and how can I read those value?


  5. Frank
    Frank avatar
    16 posts
    Member since:
    Oct 2011

    Posted 23 Dec 2013 Link to this post

    Nevermind, didn't see the property PreserveCurrentItemTemplates...
Back to Top