views:

232

answers:

2

I have create a DocumentLibrary list using the SharePoint UI and export it using the SharePoint Solution Generator 2008 (VSeWSS 1.3) to a Visual Studio .NET project.

Then I have made a webpart to show items from the document library using the ListViewByQuery with som input parameters. I have put the ListViewByQuery into a Ajax UpdatePanel. The list item menu rase an error 'ctx' is undefined. ctx is defined in the schema.xml file.

Any ideas?

+1  A: 

Work-around;

Had the same problem with a document library - to work-around I dragged the standard control part onto the page and made it non-visible (the doclibrary plugin ) Make sure that in this hidden control's view the "Name (linked to document with edit menu)" field is in the view.

That field will cause the creation of a ctx to support the edit drop-down.

TROC
A: 

Hi Did you ever resolve this issue, I'm having the same issue. The answer provided looks promising but I'm not quite sure as to how go about what he/she has advised.

Thanks in advance

Gary
You should post follow-up questions as a separate thread, notas an answer. After all, it doesn't really answer *this*question. Also more people would see it and try to answer if you post it asyour own question.In your question say where exactly you have problems and what is not working, best would be to add some code samples.
sth