Accessing RadCombox (inside Radgrid) in javascript

2 posts, 0 answers
  1. Regeesh Joseph
    Regeesh Joseph avatar
    55 posts
    Member since:
    May 2010

    Posted 05 Aug 2011 Link to this post

    Hai,

    I have a Radgrid. In that I have a RadCombobox in a GridTemplateColumn. I want 
    to access this RadCombobox inside javascript for some client side validation.

    Please Help. Its very urgent

    Please email the solution to me as Telerik forums and documentation links are not working in none of the browsers.( I am using Windows 7 and latest browser versions)

    regeesh@kottsoftware.com

  2. Thad
    Thad avatar
    106 posts
    Member since:
    Sep 2010

    Posted 05 Aug 2011 Link to this post

    Regeesh,

    Please have a look at this page.  It should get you started in the right direction.

    http://www.telerik.com/help/aspnet-ajax/grid-griddataitem-findcontrol.html

    Hope that helps!!
    Thad

    PS:  Because you say links aren't working for you, here is the content of the page.

    ASPX
    <telerik:RadGrid ID="RadGrid1" runat="server">
        <MasterTableView>
            <Columns>
                <telerik:GridTemplateColumn>
                    <ItemTemplate>
                        <telerik:RadTextBox ID="RadTextBox1" runat="server" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnRowDataBound="RadGrid1_RowDataBound" />
        </ClientSettings>
    </telerik:RadGrid>

    JavaScript
    function RadGrid1_RowDataBound(sender, args) {
        var radTextBox1 = args.get_item().findControl("RadTextBox1");
        radTextBox1.set_value(args.get_dataItem()["TitleOfCourtesy"]);
    }

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top