Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to JQGrid.I downloaded Jqgrid and added the dll in the project.I added a sql data source and run the project.it is showing an error.

Error: 'Trirand.Web.UI.WebControls.JQGridColumn.SearchDataType' is obsolete: 'SearchDataType is now obsolete. Use DataType instead. At runtime set as JQGridColumn.DataType = typeof(string).'

The code after adding sql datasource is

<cc1:JQGrid ID="JQGrid1"  runat="server" DataSourceID="SqlDataSource1">
        <Columns>
            <cc1:JQGridColumn DataField="studentid" PrimaryKey="True" 
                SearchDataType="NotSet">
            </cc1:JQGridColumn>
            <cc1:JQGridColumn DataField="studentname" SearchDataType="NotSet">
            </cc1:JQGridColumn>
            <cc1:JQGridColumn DataField="schoolname" SearchDataType="NotSet">
            </cc1:JQGridColumn>
        </Columns>
    </cc1:JQGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:EffortConnectionString1 %>" 
        SelectCommand="SELECT [studentid], [studentname], [schoolname] FROM [testjqgrid]">
    </asp:SqlDataSource>


Please help me???
Posted
Updated 28-Feb-12 6:03am
v4
Comments
Karthik. A 28-Feb-12 12:03pm    
Fixed formatting issues.

1 solution

remove SearchDataType and add Datatype
XML
<Columns>
    <cc1:JQGridColumn DataField="studentid" PrimaryKey="True"
        SearchDataType="NotSet">
    </cc1:JQGridColumn>
    <cc1:JQGridColumn DataField="studentname" SearchDataType="NotSet">
    </cc1:JQGridColumn>
    <cc1:JQGridColumn DataField="schoolname" SearchDataType="NotSet">
    </cc1:JQGridColumn>
</Columns>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900