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

Pop Up Edit form for displaying details

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas Barbour
Top achievements
Rank 1
Thomas Barbour asked on 29 Jul 2008, 05:45 PM
Hello, my application scenario is the following.

I have a rad grid with a select column which currently uses a button for selection.

What I would like to do is when the user clicks on the button, I would like a pop-up window, similar to that of a pop-up editor, but I do not want to edit the grid item, only show more details.

To show the details, I need to be able to bind a custom user control that I have created inside the popup to a data item from my database in a server-side event.

I have looked through the forms / documentation and cannot find a proper way to do this, do you have any suggestions?

As an alternative, I'd like to be able to dynamically bind the data item to a user control in a details template, I cannot find how to do this either.

Any help is greatly appreciated,
Thanx, T.J.


1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 30 Jul 2008, 11:33 AM
Hello Thomas,

A similar example of using RadWindow for opening a custom control on button click is demonstrated in this online demo page

Alternatively, you can find attached a sample page and a custom control that is placed inside RadGrid's NestedViewTemplate. The template of a data item is expanded via a button column with CommandName="ExpandCollapse". Inside, the NestedViewTemplate contains an instance of the custom user control registered on the page. Passing of field data is realized through some public properties the custom control exposes that place the data in the respective labels. The Northwind's MS Access database is also attached

Sincerely yours,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Thomas Barbour
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or