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

[Solved] Custom Editor in Popup From Grid

3 Answers 53 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.
Paul
Top achievements
Rank 1
Paul asked on 15 Jun 2011, 07:33 AM
Hi,

I'm using a grid to bind to a collection and want to use the "pop-up" editor for new & editing records.

I have managed to get the Edit & Delete buttons into a "command" column and the default pop-up appears ready for editing.

Do you have an example of how to: -

1. Define an "in-line" editor within the grid for the edit pop-up
and
2. Define an ".ascx" file to be used for the edit.

I don't always want the same columns in the grid that I want in the editor and vice-versa. I also want to be able to split a record into Tabs within the form if required and therefore need more control over the formatting of the form.

Thanks - Paul.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Jun 2011, 08:22 AM
Hello Paul,

 The closest thing we have is the customizing the popup editor code library project.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 15 Jun 2011, 08:47 AM
Awesome ! Thanks once again !

This is what I want I think. I was struggling with seeing how it linked up, but its another of those convention over configuration scenarios. I couldn't see how, in the grid, I could point "explicitly" at an ".ascx"

If I wanted to point explicitly at an ascx for a particular editing scenario, can I do this ? how ?

Also, how can I control the "title" of the pop-up window. The one in the example just says "Edit" but I would need to translate all text in my application and so need a programmatic way of changing that. It looks like it has been automatically set "by convention" again I guess.

You guys are cool with your support for the MVC stuff. We do have other licensed Telerik products so I don't feel quite so bad... ;-)

BTW - I posted yesterday about an issue... (I edited it so it likely didn't appear for you guys to look at) I think its a known issue and I noticed that ... <actually, if you read the post - you'll see :-) >
http://www.telerik.com/community/forums/aspnet-mvc/grid/scrollable-grid-and-width-problem.aspx
Any ideas on that one ?
0
Atanas Korchev
Telerik team
answered on 15 Jun 2011, 10:10 AM
Hello Paul,

 The only way to customize the text shown by the grid is by tweaking its localization file. This help topic shows how.

 The column width with scrolling is a limitation we are aware of. When the total sum of the column widths exceeds the total width of the grid strange things will happen. The solution is to leave one column without width set so it can accommodate all the remaining width of the grid. If you mean something else - please send a sample project which shows the problem you are facing. We will see what can be done.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Paul
Top achievements
Rank 1
Share this question
or