CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 2/22/2006 3:30:21 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 8 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
12 Items, 1 Pages 1 |< << Go >> >|
blmiles
Asp.Net User
Alternate display of Edit control for custom module...2/22/2006 3:30:21 PM

0/0

The Edit control of my custom module(s) always shows up as the only control of the page...

I have a custom treeview module in the left pane and a text module in the right pane with the module-in-question in the content pane.

When the user selects Edit from the module-menu, all modules on the page are hidden with only the Edit control for that module made visible - the norm in DNN it seems.

How can the Edit control be shown KEEPING the other modules on the page? ie: just swap it out with the View control and leave all else as-is... Thanks
flanakin
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 4:36:50 PM

0/0

The only way to do this would be to link to an existing page to edit your module. This would be kind of quirky because it's not how DNN was built. I'd suggest you look into including everything you need in the edit control instead. If you can't, it can be done, however - it just won't be pretty.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
blmiles
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 4:48:03 PM

0/0

Thanks Mike, it's sort of what I've found out but like to be sure I'm seeing this correctly.

what I've done now is to create ONE control containing the View and Edit control and not using the DNN IActionable interface.

I have Add/Edit btns on the parent control and make the child control visible as needed.

I've hit a snag in trying to get the controls to refresh/reload properly though...

Thanks for the help though.

Lindsay
DeveloperMCDBA
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 5:00:05 PM

0/0

Not to take away from Michael's post, but I think you could do a "LoadControl()" and load any of your other user controls inside your edit control. I haven't done this in DNN, but I can't imagine it wouldn't work.
-DarrenNeese.com
-DNN ROCKS!
-DeveloperSchool.com
blmiles
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 5:08:44 PM

0/0

Hi Darren, good idea BUT I have different modules in different panes using IMC. I want to keep all modules visible in the left and right pane (as they are view-only) and just display the Edit control on the content pane. The look/feel for the user going from View to Edit should be consistant/similar in both.

Now hitting a snag populating and repopulating the chld controls in the one parent control now so my have to resort to 3 child controls, LOL, namely View, Edit and New... changing their visibility as required.

I'm not worried either way as long as it behaves!!
flanakin
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 5:44:55 PM

0/0

Hmm... That could work. In fact, if you grab the skin and look for a pane, you could actually load a module in it... I think. It might be kinda tricky and you would have to know the name of the pane, but it'd be possible. The downside to this is that it wouldn't be very portable since pane names are controlled by the skin.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
joerowe
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 5:46:33 PM

0/0

Hi,

You might want to take a look at the thread I started called "Edit module inline".

One of the replies suggests an article using dynamic user control loading.

This looking interesting (and my second choice), but I'm personally interested in what the UseActionEvent ModuleAction property could do for us as I want to achieve the same as yourself. I personally think that its odd the way DNN works where it edits the module on its own?

I'd be interested in hearing which solution you pick.

Thanks,

Joe.


MIS Manager (and wannabe Software Architect)
Onyx Internet
DeveloperMCDBA
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 5:51:55 PM

0/0

DeveloperMCDBA wrote:
.....and load any of your other user controls inside your edit control....

no pane needed. Wink [;)]


-DarrenNeese.com
-DNN ROCKS!
-DeveloperSchool.com
flanakin
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 6:08:31 PM

0/0

Yeah, I caught that. Your post just triggered a thought Big Smile [:D] Besides that, Lindsay was looking for something that would mimic the view page, which would use other panes.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
flanakin
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 8:35:25 PM

0/0

I see... I didn't reallize you weren't using IActionable. It sounds like you've got a good solution here. You could simply use regular user controls and include the view and edit controls as you would in any .NET app. Then, cast the parent as a PortalModuleBase class to access its DNN properties.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
blmiles
Asp.Net User
Re: Alternate display of Edit control for custom module...2/22/2006 9:05:02 PM

0/0

That is pretty much what I've done. Glad to know you think it a good solution :-) then I know I'm not too far off the mark!

IActionable and IMC works just great IF I wanted to use it. Still have all that in place but duplicated my module to experiment with this Parent/Child control solution to same project. That all works except still having trouble populating/repopulating the child controls.

IIS and DNN just crashed and does not want to stay up for some reason external to my proj. so I have to take care of other issues right now.

Will keep you all posted on how this developes and will post a url to the site once it is live.

cheers,

Lindsay
blmiles
Asp.Net User
Re: Alternate display of Edit control for custom module...6/6/2006 1:25:13 PM

0/0

Michael, Darren et al,

I know I've been off this for a while BUT I've actually have moved a little further with the Parent/Child control idea. Hitting a minor snag again (hence me being back here :-))

To explain, I have a treeview (tv) in the leftpane and parent module with 4 child controls - PView, Pedit, CView, CEdit - in the content pane. The tv has a 2tier hierachy - parent/child nodes.

As the user selects a Parent node in the tv, the appropriate control is shown in the parent module, ie: PView is shown. Likewise Child node in the tv is selected, CView control in Parent module shows.

If the user wants to edit a PView or CView, they click the Edit btn on the control and the corresponding PEdit or CEdit is displayed.

All that works through IMC etc etc although there are way too many Page_load hits as the user goes from view to edit. (I got around the populating/repopulating issue by calling OnLoad in the "onModuleCommunication" event and once the Info object for the control had been set).

Phew, I didn't want to be longwinded here but anyway...

Here's the snag I'm hitting and all WAS working so I'm not sure what I've done :-)

On the PEdit (child control in module), when the user selects the update button, the data is written back to the db with no loss from the input controls - text boxes etc. BUT...

On the CEdit, some data is persisted OR viewstate is maintained and that is passed to the Info object for that control, however, some input boxes (namely a File selection control and combo boxes) don't maintain the data (file choice) or the selection (combo box) and that data is not there to pass into the Info object for db update...

LOL, make any sense? Wish I could send code but I'd be fired, LOL.

The short question is - is there any obvious reason why data the user has input into a control is lost BEFORE the code behind the update button is hit. I see the Page_Load being run prior to the code behind the update button..

Oh well. I'm about to post a different thread on making modules visible/not-visible at run-time. That may be the new tack I'm heading down. Might investigate the skin/pane idea and insert modules at runtime, dynamically...

Thanks for any input!

12 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Module discrepancy - novell.support.imanager - Web Programming Newsgroups problem with custom list control. where are the visual studio 2005 team additions? redirect to alternate url. continuing with the menu items on the second line ...
CSSFriendly Menus not working in IE6 - microsoft_downloads.css_friendly_control_adapters - Web Programming ... I even tried going to the control adapters homepage and then to the menu example ... problem with custom accesssitemapprovider. qualifying masterpage in desinger file ...
Custom Edit Control Free Download ... editor allowing integration of a highlyflexible edit ... This application allows for quick edit and display of csv data in a format that allows for...
Miva Customize Product Display Miva Merchant Modules and Applications ... Custom Product Display module gives you control over the Product Display Screen ... If the alternate button exists it will display for the selected button. ...
CodeGuru: Custom Draw items inside a ListView Control ... this if you want the text to display with the formatting as typed (good for source code) ... 30-Day Trial: SPAMfighter Exchange Module ...
Magento - Wiki - Custom Module with Custom Database Table These control the setup and appearance of your grid's and the options that they display. ... local/<Namespace>/<Module>/Block/Adminhtml/<Module>/Edit.php <?php ...
Wiki Syntax – ExpressionEngine Documentation ... brackets for this syntax and the ExpressionEngine Wiki Module does the ... Creating a Link with Alternate Display Text. Embedding Articles within Articles ...
#1447 (Custom Contexts Module) - FreePBX - Trac ... though, as it allows quite a bit of control and flexibility. ... query for my module name, and display name, neither of which I could access from ...
Miva Category Screen Modules - Miva Merchant Modules ... display control module designed to use unique displays for different categories. ... template editor in MIVA Merchant 5. While basic knowledge of how to edit ...
Fantom Systems Software - BIM-Edit BIM-Edit. Ease of Use. Source Control. Security. Performance & Efficiency. Operations ... for switching between the default screen size and the alternate screen size. ...



 
All Times Are GMT