0

I've created cascading drop downs populated from SharePoint lists, by following this post by Lars in SharePoint designer without using code, it works fine, my issue is that the secondary drop down only populates if the main drop down causes auto-post-back, is there any way to make the secondary drop down populate without causing post back and without using server-side code?

1

I don't get it. Cascading means exactly this: one depends on another. In your case, the secondary dropdown can only be populated once a selection on the first dropdown has been made and sent back to the server with autopostback=true. The query of the secondary dropdown datasource needs to receive the value of the parameter from the first dropdown selection. How could the secondary dropdown populate without it?

The only thing that you could try is to set the DefaultValue property for the datasource ControlParameter.

  • Thanks for your'e reply, the thing is i'm using the main drop down as a control parameter in my data view's select command, and once I select it's value instead of causing post-back i'm calling the data view's manual refresh function which causes only partial post back - __doPostBack('ctl00$m$g_41f15437_f263_46cb_9aa1_22c7c42f7f59$ctl01','__cancel'); now i need to add another filter using this secondary cascading dropdown, and i want it to populate without postback for the entire page, if that's possible. – Guy Perry Jan 20 '14 at 9:05
  • show us some code so that we can better undestand – MdMazzotti Jan 20 '14 at 9:13
  • There is only some client side code that on the main drop down change calls the data view's "_dopostback" function, anyways I've changed my solution so that now my secondary drop down is populated via SPservices whenever the main drop down select value is changed, with a the SPservices caml query containing it's value, it works fine, thank's again for replying! – Guy Perry Jan 20 '14 at 13:00
-1

I have a simple solution without any JavaScript code: Cascading Drop Down Lists in SharePoint. Let me know if it solves your problem.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • Please don’t add just a link as answer to a question. If the link breaks, the answer you provided will not be useful for future visitors. Provide an answer of your own and use the link as reference. If needed, you can block quote the content from your link. More information is found in our help center, especially How do I write a good answer – Benny Skogberg Sep 25 '14 at 8:51
  • You're likely not a Stack Overflow user... almost ALL answers include links, because otherwise it would be impossible/impractical to include the full explanation in an answer. Anyway, I have no interest in this, so you are free to delete all of my answers if you like, and have a nice life. – Ricardo Peres Sep 25 '14 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.