4

I want to change Custom Property of Webpart using javascript.

Does anyone have any ideas on how to accomplish this?

  • Can you be more specific? with property do you mean any public property of your web part class which appears on web part edit panel? that is what i understand from custom property and if so, it not possible. – megusta Nov 17 '11 at 14:18
3

there are some options but imo easiest one is to use Client Object Model: see SP.WebParts.WebPart.Title

0

This is an old question, but I figured I'd post a solution I came up with. I haven't tested in SharePoint 2010, but it's possible to update any web part property using JavaScript CSOM: http://almondlabs.com/blog/update-web-part-properties-csom/

  • 2
    Thanks for posting! One of our guidelines here is that we do not accept link only posts. If you could, please summarize your blog post so that if it is deleted or moved in the future others who come looking can still get an understanding of what you found. – Robert Kaucher Mar 4 '14 at 2:17

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.