Telerik Problem

Discussion in 'Site Programming, Development and Design' started by glass, Jan 4, 2012.

  1. Hello all. I mainly use my Winhost account to test snippet or web sites. I'm having a problem with the latest thing I'm learning and testing, which is a Telerik grid. The problem is that the sort, filter and paging don’t work. I have established communication with the folks at Telerik and they can't replicate the problem. It's a long shot but I'm asking you guys if you know of something that I may be doing wrong with the way I set this application on Winhost. I simply copy my whole telerik project over the root folder. The application works on the personal web server that comes with Visual Studio. The telerik guy told me to make sure I wasn't getting any JavaScript errors. How do I do that? On the surface I didn't see any JavaScript errors. Anyway does anyone have any input on this that may be helpful? This is my non working website www.juanmatos.net and this is my code.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    </head>
    <body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
    <%--Needed for JavaScript IntelliSense in VS2010--%>
    <%--For VS2008 replace RadScriptManager with ScriptManager--%>
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
    //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
    <telerik:RadGrid runat="server" AllowFilteringByColumn="True"
    AllowPaging="True" AllowSorting="True" CellSpacing="0"
    DataSourceID="PeopleDBds" GridLines="None">
    <ClientSettings>
    <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="ContactID"
    DataSourceID="PeopleDBds">
    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>

    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>

    <Columns>
    <telerik:GridBoundColumn DataField="ContactID" DataType="System.Int32"
    FilterControlAltText="Filter ContactID column" HeaderText="ContactID"
    ReadOnly="True" SortExpression="ContactID" UniqueName="ContactID">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn DataField="FirstName"
    FilterControlAltText="Filter FirstName column" HeaderText="FirstName"
    SortExpression="FirstName" UniqueName="FirstName">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn DataField="LastName"
    FilterControlAltText="Filter LastName column" HeaderText="LastName"
    SortExpression="LastName" UniqueName="LastName">
    </telerik:GridBoundColumn>
    </Columns>

    <EditFormSettings>
    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
    </EditFormSettings>
    </MasterTableView>

    <FilterMenu EnableImageSprites="False"></FilterMenu>

    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="PeopleDBds" runat="server"
    ConnectionString="<%$ ConnectionStrings:peopleDBConnectionString %>"
    SelectCommand="SELECT * FROM [vContactTbl]"></asp:SqlDataSource>
    </div>
    </form>
    </body>
    </html>
     
    Last edited by a moderator: Oct 14, 2015

Share This Page