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

Select multiple items in grid and display selected rows

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 08 Apr 2016, 03:06 AM
The scenario I am trying to achieve is below, I am displaying three fields in grid ProcessId, ProcessName, Process Desc. Once I display in the grid I want to have a hyperlink button in first column say Select. User when selects a row I want to display that row id and Name in a html list above or below grid. Is there a way I can achieve this using telerik grid, if any examples of it can you please point me over there.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 12 Apr 2016, 08:58 AM
Hi,

In order to implement the behavior you can use the following approach.

  • add GridButtonColumn and set its CommandName to Select
  • handle the ItemCommand event of the RadGrid
  • check what command raised the event and if it was Select get the values from the current row
  • populate the TextBox controls with the relevant values

If you would like additional information on how you can access the values in the cells of the grid you would find the following article interesting.


For convenience I am attaching a sample project where the behavior is implemented.


Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or