Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to change Custom Property of Webpart using javascript.

Does anyone have any ideas on how to accomplish this?

share|improve this question
    
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
add comment

2 Answers

up vote 3 down vote accepted

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

share|improve this answer
add comment

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/

share|improve this answer
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 at 2:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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