This is a migrated thread and some comments may be shown as answers.

Problem with RadGrid Sortting

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
License Developer
Top achievements
Rank 1
License Developer asked on 06 Aug 2008, 08:56 AM
Hi,
First, i am sorry, i'am newbe with this thing. i 'am geting this error when using sortting with radgrid.

Method 'Public Sub RadGrid2_SortCommand(source As Object, e As Telerik.Web.UI.GridSortCommandEventArgs)' does not have a signature compatible with delegate 'Delegate Sub GridSortCommandEventHandler(source As Object, e As Telerik.WebControls.GridSortCommandEventArgs)'.

Here is some of my code:
<rad:RadGrid runat="server" id="RadGrid2" GridLines="None" Skin="Default"
            AutoGenerateColumns="False" OnSortCommand="RadGrid2_SortCommand"
            OnSelectedIndexChanged="RadGrid2_SelectedIndexChanged" AllowSorting="True" >

And code behind:
Sub RadGrid2_SortCommand(ByVal [source] As Object, ByVal e As GridSortCommandEventArgs)
        Dim tableView As GridTableView = e.Item.OwnerTableView
        If e.SortExpression <> "" Then
            BindData(Session("thisPIID"), e.SortExpression)
        End If
    End Sub

Can you please tell me what am i doing wrong here, and how can i fix it.Thanks.

1 Answer, 1 is accepted

Sort by
0
License Developer
Top achievements
Rank 1
answered on 06 Aug 2008, 10:26 AM
Hi,
Fixed the problem. We just recently updated the newer version of Telerik webcontrols, and i mixed the two different versions in my code, that caused the error. i was using <Rad:Radgrid> and i sould had been useing <Telerik:RadGrid>.
Tags
Grid
Asked by
License Developer
Top achievements
Rank 1
Answers by
License Developer
Top achievements
Rank 1
Share this question
or