Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiple View Controls for ModuleMultiple View Controls for Module
Previous
 
Next
New Post
7/4/2006 12:36 AM
 
I have implemented multiple view controls for my module as outlined in this post:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/110/threadid/46342/scope/posts/Default.aspx

and it works nicely. However, one of the views is meant to be un-editable as it is just a list of items. when you click on an item in the list, the details view is loaded - this is intended to be editable. The problem is, edit permissions are set on the wrapping 'dispatcher' control so the edit button is available no matter what view you load.

Is there any way to hide the edit button programmatically? or is there another way i should be going about this.

Thanks for any help.

 
New Post
7/4/2006 1:27 AM
 

What is the module control type set to on the control?  If it is set to View do you want to hide the edit link or pencil? 

Are you trying to use the same control for edit and view details?  I usually have different controls (copies) but I assume you could set IsEditable to no to make it read only - but I have never done that.  If you just want to hide the button - set its visible property to "false" based either on IsEditable (based on role and persmissions) or on some other factor (userID = ownerID, etc.). 

Is that getting at your intent? 

 
New Post
7/4/2006 9:55 PM
 
Thanks for your reply wedwardbeck.

The module control type is 'View'. I just wanted to remove the pencil link in the footer of the module. I had tried setting the IsEditable attribute on the module but it is read-only.

Is it possible to set properties on the buttons in the module footer? When i think about it, i should keep the edit button there so you can add a new Item to the list. In that case i jsut want to add text beside the pencil link to say 'add new item'.

I was originally trying to use the one control for view and edit details simply because i liked the idea of staying on the same page when using the module. However, it looks to be a lot more straight forward if i let dnn navigate to a new page to display the edit control.

Thanks for your patience - as this is my first dnn module i'm learning as i go:)
 
New Post
7/21/2006 5:54 AM
 
I'm getting a similar problem.  I'm dynamically loading a control using the Key based method described in the thread above and the edit link is visible even when I'm not logged in.  It seems that IsEditable is always returning true for the loaded control. If I click the edit link I'm then asked to log in.

Is there something I need to do when loading the control to ensure that the IsEditable property is set correctly?

Rob.

 
New Post
7/26/2006 10:54 AM
 
This is a real problem for me and I'd really appreciate some help if anybody has overcome a similar problem or has any sugestions.

Thanks,

    Rob.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiple View Controls for ModuleMultiple View Controls for Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out