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

[Solved] Grid row SELECT and window popup.

5 Answers 588 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pinaki
Top achievements
Rank 1
Pinaki asked on 22 Dec 2010, 05:08 PM
Hello all.

Please help me out here. Here is my scenario:

I have a MVC grid displaying data, and has AJAX binding. So far so good. On a Row Select, I want to display a Modal Window, and pass the grid selected row Datakey to the window.

The window then has to display data, by calling a web service passing the received ID.

I have the ajax row selection alraedy in place as such:
<script type="text/javascript">
    function onRowSelected(e) {
        var historyGrid = $('#historyGrid').data('tGrid');
        var transactionID = e.row.cells[0].innerHTML;
    }

I'd like to know :
1. How to show a window on this selected event.
2. Pass the ID to the window.
3. Windows showing details of the result of the web service call.

Thank you.

5 Answers, 1 is accepted

Sort by
0
Wim Tilburgs
Top achievements
Rank 1
answered on 16 Feb 2011, 07:49 PM
Hello All,

I have the same question as the one above. Would be great if their was an answer on this question.

Regards,

Wim Tilburgs
0
Atanas Korchev
Telerik team
answered on 17 Feb 2011, 10:59 AM
Hi, 

You can check the following examples:
  1. This one shows how to retrieve data from the selected row and use it in code
  2. This one shows how to open a window from JavaScript

Let us know if you have additional questions.

Regards,
Atanas Korchev
the Telerik team
0
Albert
Top achievements
Rank 2
answered on 17 Aug 2011, 02:56 AM
Hello All,

i have the same trouble, but i do it using server-side selection,
can i open the pop up windows using server-side selection?

Regards,
Albert
0
christopher collinson
Top achievements
Rank 1
answered on 26 Aug 2011, 08:03 AM
Hi, 

I am trying to do this also. However, the examples dont show how to pass the dynamic data (such as id) to the window. Having a look around, I can see a contentUrl property. Should we be manually setting this before the call to open, or is there a method we should use?

Regards
Chris
0
Adam
Top achievements
Rank 1
answered on 31 May 2013, 08:12 AM
Hi guys,

I'm facing the same issue here, do you all have found the solution?


Regards,
Adam
Tags
Window
Asked by
Pinaki
Top achievements
Rank 1
Answers by
Wim Tilburgs
Top achievements
Rank 1
Atanas Korchev
Telerik team
Albert
Top achievements
Rank 2
christopher collinson
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Share this question
or