This is a migrated thread and some comments may be shown as answers.

Custom button linking to sharepoint list/document library

7 Answers 167 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Peter Livsey
Top achievements
Rank 1
Peter Livsey asked on 10 Jul 2008, 11:43 AM
Hi

As part of our content editing we are looking at adding a custom button to the radeditor toolbar that allows a user to choose a document to add to the page.  These documents would be stored in a Sharepoint Document library, possibly in a different site collection so that the documents can be held centrally.

Is it possible to add a custom button to the toolbar that can then read a sharepoint list/document library to display the options available? 

If so how would be go about doing this? 

We are currently using version 4.5.2 of the editor but are looking at upgrading once we have looked into the differences and checked that the customisation we have already done continues to work.

Thanks
Peter

7 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 11 Jul 2008, 02:34 PM
Hi Peter,

Please review the following KB article that shows how to achieve the desired behavior:
Adding Custom Dialog to RadEditor for MOSS


Have a great weekend,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Peter Livsey
Top achievements
Rank 1
answered on 21 Jul 2008, 09:30 AM
Thanks for that, it has made things a bit easier to understand.

I've been able to add a custom .html file and .aspx file based on the example.

However, when I have tried added .net controls to the aspx page such as asp:dropdown I get a server error when the custom dialog is called.  Should it be possible to use these controls as we really need to be able to add code to the dialog pages to customise what is displayed.

Peter
0
George
Telerik team
answered on 23 Jul 2008, 09:02 AM
Hi Peter,

I tested the behavior based on your scenario and on my side everything worked fine. Please find attached a video that demonstrates how the provided solution works using the new 5.x version of RadEditor, along with my CustomDialog.aspx.

Sincerely,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
George
Telerik team
answered on 23 Jul 2008, 10:10 AM
Hi Peter,

I tested the behavior based on your scenario and on my side everything worked fine. Please find attached a video that demonstrates how the provided solution works using the new 5.x version of RadEditor, along with my CustomDialog.aspx.

I hope this helps.

Regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Peter Livsey
Top achievements
Rank 1
answered on 23 Jul 2008, 10:38 AM
Thanks for this, it is very similar to what I was trying. 

Is it possible to use asp events like Page Load?  The list that I would like to use doesn't have fixed values, so it would be useful to be able to run some code that adds the items to the list programmatically.

Also we are currently using version 4.5.2 of the editor, but are testing version 5.1 with our other functions we've developed.  Should this work in version 4.5.2?

Peter
0
George
Telerik team
answered on 24 Jul 2008, 10:11 AM
Hi Peter,

The external dialog is a regular ASPX page and there is nothing special about it. So, there should be no problems using the different page events. 

Note that, the provided example is for RadEditor for MOSS v 5.x. You can easily use it and with the 4.x one, but you should modify it a little bit. You can review the differences in the already provided KB.

I hope this helps.

Kind regards,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Peter Livsey
Top achievements
Rank 1
answered on 29 Jul 2008, 10:17 AM
Thansk for this, I'm currently testing moving over custom functions into version 5 of the editor.  The information has been very useful, it seems that version 5 is much better to work with.
Tags
WebParts for SharePoint
Asked by
Peter Livsey
Top achievements
Rank 1
Answers by
George
Telerik team
Peter Livsey
Top achievements
Rank 1
Share this question
or