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

[Solved] Want to Popup RadWindow on CommandItemDisplay "Add Record"

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 07 Aug 2009, 06:42 PM
We have a RadGrid in which "CommandItemDisplay" is set to "top".  We would like to change the behavior of the "Add Record" function within this display.  Instead of the normal form for a person to input data with the insert and cancel links, we would like to popup a RadWindow that includes another RadGrid from which a user could select a record.

We have all the code for the popup and to return values to the primary RadGrid.  All we need is how to override the "Add Record" functionality of the CommandItemDisplay so that our method is called instead of the default.

Thanks!

Dan

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Aug 2009, 05:26 AM
Hi Dan,

I would suggest you to use CommandItemTemplate instead of the default Command Item Settings. Add a button to the CommandItemTemplate of the grid to allow items insertion (don't forget to set CommandItemDisplay property of the grid to value which differs from None). Wire the click event for the button to open the insertion form.  You can fiind a similar approach in the following online demo.
Window Editing

Regards
Shinu

Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or