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

[Solved] view property array

1 Answer 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
david
Top achievements
Rank 1
david asked on 12 Nov 2010, 03:22 PM
hi,
1 of my fields bound to my grid is an array of strings.
i dont wish to display these values in the grid, but ideally i would like to replace the content of the field with a button like edit but with View which displays a dialog window with the array values in.

is this possible via telerik mvc grid? if so, can you suggest a way i can implement this?

regards,
dave

p.s. maybe possible to implement the Command.Select and override this function and display a dialog?

1 Answer, 1 is accepted

Sort by
0
roger
Top achievements
Rank 1
answered on 12 Nov 2010, 06:15 PM
Try the following approach:

Put a button inside the column template, something like:
<button onclick="displayArray(row.YourStringArray)">Click me</button>

Then the javascript:
function displayArray(stringArray) {
   
// here you can give your string array to some window and show it.
 
}
Tags
Grid
Asked by
david
Top achievements
Rank 1
Answers by
roger
Top achievements
Rank 1
Share this question
or