This is a migrated thread and some comments may be shown as answers.
Using DataForm in ChildWindow or RadWindow
11 Answers 180 Views
This is a migrated thread and some comments may be shown as answers.
lori guymon
Top achievements
Rank 1
lori guymon asked on 22 Mar 2011, 04:28 PM
Love the new DataForm control after reading about it.  I would love to use it to edit data in a grid similar to the article "Integrate RadDataForm with RadGridView" (http://www.telerik.com/help/silverlight/raddataform-integrate-with-radgridview.html).  However, we prefer to edit our data using dialog\modal forms instead of inline editing.  I also read the article "How To: Display RadGridView Row Details in RadWindow" (http://www.telerik.com/help/silverlight/gridview-how-to-display-row-details-window.html) that shows how to show the content (in the first article, this would be the dataform) in the RowDetailsTemplate in a RadWindow.

I'm just trying to determine the best way to use the DataForm to do editing of data in a grid (or even not in a grid) in a popup-mode fashion.  Should I put the dataform inside a ChildWindow or inside the RowDetailsTemplate and then open the content in a RadWindow?  (My preference would be to not have to create a ChildWindow and use the dataform inside the RowDetailsTemplate.)  In either case, how would I override the events on the Ok and Cancel buttons to close the form or radwindow after a commit or cancel?  

Any insight would be much appreciated!

 

11 Answers, 1 is accepted

Sort by
0
Ben Hayat
Top achievements
Rank 2
answered on 24 Mar 2011, 02:47 PM
Interesting! I'm right now going through the same change of heart/design as well. I started going about doing the creating/editing in DataForm in a separate Window, but I really like the demo where the data form shows up a child table/row of a GridView. It seems so much more natural to the user. So, I'll be going this route.
It would be great for others to share their experience as well.
..Ben
0
David Ocasio
Top achievements
Rank 2
answered on 24 Mar 2011, 03:05 PM
I like the focus of a child window better.

Inline and even in the detail pane
It's too easy to "do something else" and not complete the task you started.

my opionin
dco
0
Pavel Pavlov
Telerik team
answered on 24 Mar 2011, 03:26 PM
Hi guys,

Just blogged  something in the context:
http://blogs.telerik.com/pavelpavlov/posts/11-03-24/raddataform_and_radgridview_integration_-_popup_editing-2109138197.aspx

There is a sample app  source code . You may use the code there as a starting point.

Best wishes,
Pavel Pavlov
the Telerik team
0
Ben Hayat
Top achievements
Rank 2
answered on 24 Mar 2011, 03:40 PM
Pavel, thank you for such a quick response;

[Sometime I hate having too many choices, I drive myself crazy], scratch that...
Ok, this is a nice solution and is certainly worth considering, but what do you think of this solution? Just want to hear your opinion too? Why either one?
http://demos.telerik.com/silverlight/#DataForm/GridViewEditWithDataForm

What's the pros & cons between your solution and above link?
Thank you for GREAT work, Pavel!
..Ben
0
Pavel Pavlov
Telerik team
answered on 24 Mar 2011, 03:50 PM
Hi Ben ,

Thanks for the nice words !
Now on your question - SIncerely, I have got no idea which one would be the better approach :) .

I guess it is a matter of UX decision . From a developer's point of view  I would rather recommend the approach with RadDataForm in row details rather than as a popup .

The reasons:
1. It does not need additional button (edit) = less clicks for the end user.
2. It does not need special code to show / hide the form.
So,   less code = less stuff to support =  less things broken = less bugs .

Also it looks to me as a bit more MVVM - friendly.

Best wishes,
Pavel Pavlov
the Telerik team
0
Ben Hayat
Top achievements
Rank 2
answered on 24 Mar 2011, 03:56 PM
I'm with you 100%. You won a beer :-)
My reasoning going with the Row editing is Exactly as you pointed out. It's cleaner!

As far as the kinds words, I really meant it!!!
..Ben

p.s. With your new build coming (let us know when it's ready), I'll be switching over to RADDataForm and I'll throw some challenges against it for SP1.
Let us know when the new internal build is ready.
Thanks a bunch!
..Ben
0
Pavel Pavlov
Telerik team
answered on 28 Mar 2011, 12:22 PM
Hi,

A quick update - the new  LIB bits are ready . The download should be available in your accounts later today ( in few hours).

Greetings,
Pavel Pavlov
the Telerik team
0
Ben Hayat
Top achievements
Rank 2
answered on 28 Mar 2011, 03:16 PM
Pavel, can you tell us what the name of the zip file should be? Also what should we expect to be fix and what's still "known issues"?

Thanks!
0
Ben Hayat
Top achievements
Rank 2
answered on 28 Mar 2011, 07:33 PM
Has anyone seen the latest build in their acct? If yes, what's the zip file name?
0
Hristo
Telerik team
answered on 29 Mar 2011, 08:25 AM
Hello Ben Hayat,

The latest internal builds are uploaded and you can find them for download under Your Account. The version is 2011.1.0328.

Kind regards,
Hristo
the Telerik team
0
Ben Hayat
Top achievements
Rank 2
answered on 29 Mar 2011, 04:55 PM
Yes, I was able to get them last night, but I have a couple of issues that I posted and would appreciate some help.

Thanks!
..Ben
Asked by
lori guymon
Top achievements
Rank 1
Answers by
Ben Hayat
Top achievements
Rank 2
David Ocasio
Top achievements
Rank 2
Pavel Pavlov
Telerik team
Hristo
Telerik team
Share this question
or