trying to get Key Value

2 posts, 0 answers
  1. bslaght
    bslaght avatar
    184 posts
    Member since:
    Jun 2006

    Posted 06 Mar 2008 Link to this post

    I am tryign to migrate from RadGrid for ASP.net to RadGrid Prometheus and having an issue.  I used to get Key Values like this

    Protected Sub rgPartners_EditCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)

    'Get the value from the Grid column

    Dim key As Integer = Convert.ToInt32(Me.rgPartners.MasterTableView.Items(e.Item.ItemIndex)("PartnerID").Text)

    Session(

    "editKey") = key

    Server.Transfer(partnerdetails.aspx,

    True)

    End Sub


    But this prodcues an error (below) in prometheus version.  How do I got about this in the new grid?

    Error:
    Compiler Error Message: BC30408: Method 'Protected Sub rgPartners_EditCommand(source As Object, e As Telerik.WebControls.GridCommandEventArgs)' does not have the same signature as delegate 'Delegate Sub GridCommandEventHandler(source As Object, e As Telerik.Web.UI.GridCommandEventArgs)'.

    Can anybody shed some light on this?

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 07 Mar 2008 Link to this post

    Hello bslaght,

    Telerik.WebControls.GridCommandEventArgs should be Telerik.Web.UI.GridCommandEventArgs for the "Prometheus" grid.

    Sincerely yours,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top