<%@ Control Language="VB" AutoEventWireup="false" CodeFile="WebUserControl.ascx.vb" Inherits="WebUserControl" %>
 <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

        <script type="text/javascript">


            function conditionalPostback(sender, eventArgs)
            {
              
                if (eventArgs.get_eventTarget().indexOf("lbtnViewInfo") > -1)
                {
                    eventArgs.set_enableAjax(false);
                }

            } 
        </script>

    </telerik:RadScriptBlock>
    <telerik:RadAjaxManager ID="ramSearch" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="conditionalPostback" />
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadGrid ID="rgGrid" runat="server" Width="100%" ShowStatusBar="False" AutoGenerateColumns="False"
            PageSize="10" EnableViewState="true" AllowSorting="True" AllowMultiRowSelection="False"
            AllowPaging="True" Visible="true">
            <MasterTableView Width="100%" DataKeyNames="IDNumber" AllowMultiColumnSorting="False">
                <NoRecordsTemplate>
                    <div class="noRecords">
                        Your search criteria did not return any results, or you did not first select any
                        criteria to search on.</div>
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="FullName" SortExpression="FullName" HeaderText="Student Name"
                        HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnViewInfo" Font-Underline="true" runat="server" CausesValidation="false"
                                CommandName="ViewInfo" Width="100%" Text='<%#Eval("FullName") %>' />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:Panel runat="server" ID="panelInfo" Visible="false">
            panelInfo
        </asp:Panel>
        <asp:Panel runat="server" ID="pnlsearch">
            pnlsearch
        </asp:Panel>
    </div>