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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DNN7 TermsSelector values available on every other postbackDNN7 TermsSelector values available on every other postback
Previous
 
Next
New Post
9/12/2013 12:36 PM
 
[DNN 7.0.6] I am trying to use the TermsSelector control in my module to categorize content. The client UI appears to work as expected (can check checkboxes, and terms appear in the box). However, when the page is posted back, the selected terms are not available. I created a completely new module, with only one user control and 3 controls - TermsSelector, Button, and a Label - and it works fine there. So I copied this page to my module, and found that the selected terns are available on every other postback, not every time. The original module was not developed for DNN7, only being modified to work with DNN7. I probably need to change some settings on the module - I am having a really hard time figuring this one out. Thanks in advance. 

 protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    tsTerms.PortalId = ModuleContext.PortalId;

                    tsTerms.IncludeTags = true;
                    tsTerms.IncludeSystemVocabularies = false;

                    ModuleInfo module = (new ModuleController()).GetModule(ModuleId, TabId, false);
                    tsTerms.Terms = module.Terms;
                    tsTerms.DataBind();
                }
            }
            catch (Exception exc) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = "";
            foreach (DotNetNuke.Entities.Content.Taxonomy.Term t in tsTerms.Terms)
            {
                Label1.Text += t.Name + ", ";
            }
        }
    }

 
New Post
9/16/2013 1:06 PM
 

Update: So I figured that this behaviour is because the telerik combobox is on a control that is being loaded dynamically into another control. I am not sure if this is a problem with telerik or the implementation of termsSelector itself. I have other ASP.Net controls along with the termsSelector which work fine.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DNN7 TermsSelector values available on every other postbackDNN7 TermsSelector values available on every other postback


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