Radgrid dragedItems

Thread is closed for posting
2 posts, 0 answers
  1. Gauri
    Gauri avatar
    32 posts
    Member since:
    Jan 2012

    Posted 03 Jul 2013 Link to this post

    I need to get the datakey value of a radgrid dragged item on  RowDropping event  but everything I tried returns null.
    e.g. 
    args._dragedItems[0].getDataKeyValue('ProcedureID')

    var UIProceduresGrid = $find($telerik.$("[id$='UIProceduresGrid']")[0].id);
                var UIProceduresGridTable = UIProceduresGrid.get_masterTableView();
                var UIProceduresGridRows = UIProceduresGridTable.get_dataItems();
                var dragged = UIProceduresGridRows[args._dragedItems[0]._itemIndexHierarchical];
    dragged.getDataKeyValue("ProcedureID") 


    and few other things

     Can anyone please help me with this.

    Thanks in advance.
  2. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 08 Jul 2013 Link to this post

    Hello Gauri,

    Can you please verify that you have set the following property?
    <MasterTableView ...ClientDataKeyNames="ProcedureID">

    Looking forward to your reply.

    Regards,
    Eyup
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top