get datakey value radlistview

2 posts, 0 answers
  1. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 06 Aug 2012 Link to this post

    Hi All,

    How to get the data key value of a rad list view control in item command. 

    Regards,

    Prassin
  2. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 06 Aug 2012 Link to this post

    I have fix the issue by applying like this..


    protected void RadListView1_ItemCommand(object sender, RadListViewCommandEventArgs e)
    {
        if (e.CommandName == RadListView.SelectCommandName)
        {
            RadListViewDataItem item = e.ListViewItem as RadListViewDataItem;
            string myValue = item.GetDataKeyValue("myValue").ToString();
        }
    }


    Regards,

    Prassin
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top