+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / Invalid Soft Expression

Invalid Soft Expression

2 posts, 0 answered
  1. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    20 Apr 2007
    Link to this post
    In a custom module when sorting a grid 4.5.1.0, I get an invalid Sort Expression. Has anyone encountered this.

    Stack Trace:

    [NolnetException: Invalid soft expression LastName ASC]
      Nolics.ORMapper.WebBinding.WebQueryView.ExecuteSelect(DataSourceSelectArguments arguments) +525
      System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
      System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
      Telerik.WebControls.GridTableView.PerformSelect() +23
      System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
      Telerik.WebControls.GridTableView.DataBind() +243
      Telerik.WebControls.GridSortCommandEventArgs.ExecuteCommand(Object source) +265
      Telerik.WebControls.RadGrid.OnBubbleEvent(Object source, EventArgs e) +171
      System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
      Telerik.WebControls.GridItem.OnBubbleEvent(Object source, EventArgs e) +57
      System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
      Telerik.WebControls.GridItem.OnBubbleEvent(Object source, EventArgs e) +147
      System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
      System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +115
      System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +163
      System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
      System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
      System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
    

    The Grid iteself is formatted so:

    <radG:RadGrid ID="contactGrid1" runat="server" GridLines="None" AllowFilteringByColumn="True" 
        ShowStatusBar="False" AllowPaging="True" AllowSorting="True" Height="100%" Width="99%" 
        CssClass="QJOMgrid" AutoGenerateColumns="False"   
        OnItemCommand="ContactsGrid_Command"   
        OnSelectedIndexChanged="contactGrid1_SelectedIndexChanged"                                                                            
        OnItemInserted="contactGrid1_ItemInserted"                                                                                                                                            
        DataSourceID="getContactsQuery">  
        <ClientSettings ApplyStylesOnClient="True" ReorderColumnsOnClient="True">  
            <Selecting AllowRowSelect="True" /> 
            <Resizing AllowColumnResize="True" /> 
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />                                                                              
            <ClientEvents OnRowMouseOver="ContactGrid1RowMouseOver" OnRowMouseOut="ContactGrid1RowMouseOut" 
             ></ClientEvents>  
        </ClientSettings> 
        <MasterTableView Width="100%" DataKeyNames="ID">  
            <Columns> 
                <radG:GridBoundColumn DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" 
                    UniqueName="ID" Visible="False">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridButtonColumn Text="Select" CommandName="Select" UniqueName="column">  
                </radG:GridButtonColumn> 
                <radG:GridBoundColumn DataField="FirstName" HeaderText="First Name" ReadOnly="True" 
                    SortExpression="FirstName" UniqueName="FirstName">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="LastName" HeaderText="Last Name" ReadOnly="True" 
                    SortExpression="LastName" UniqueName="LastName">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="Company" HeaderText="Company" ReadOnly="True" SortExpression="Company" 
                    UniqueName="Company">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="Phone1" HeaderText="Phone 1" ReadOnly="True" SortExpression="Phone1" 
                    UniqueName="Phone1">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="Email1" HeaderText="Email" ReadOnly="True" SortExpression="Email1" 
                    UniqueName="Email1">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="Fax" HeaderText="Fax" ReadOnly="True" SortExpression="Fax" 
                    UniqueName="Fax">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="Fax" HeaderText="Fax" ReadOnly="True" SortExpression="Fax" 
                    UniqueName="Fax">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="Address1" HeaderText="Address 1" ReadOnly="True" 
                    SortExpression="Address1" UniqueName="Address1">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="City" HeaderText="City" ReadOnly="True" SortExpression="City" 
                    UniqueName="City">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="State" HeaderText="State" ReadOnly="True" SortExpression="State" 
                    UniqueName="State">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn DataField="Zip" HeaderText="Zip" ReadOnly="True" SortExpression="Zip" 
                    UniqueName="Zip">  
                    <HeaderStyle HorizontalAlign="Left" /> 
                </radG:GridBoundColumn> 
            </Columns> 
            <ExpandCollapseColumn Visible="False">  
                <HeaderStyle Width="19px" /> 
            </ExpandCollapseColumn> 
            <RowIndicatorColumn Visible="False">  
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
        </MasterTableView> 
    </radG:RadGrid> 
  2. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    02 Dec 2016
    21 Apr 2007
    Link to this post
    Hello Ben,

    If you want to help you with the problem, please, open the support ticket and send us the source of the module. The supplied declaration of the RadGrid is insufficient for the problem investigation.

    Regards,
    Hrisi
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center
2 posts, 0 answered