Custom button linking to sharepoint list/document library

8 posts, 0 answers
  1. Peter Livsey
    Peter Livsey avatar
    44 posts
    Member since:
    Aug 2012

    Posted 10 Jul 2008 Link to this post

    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
  2. George
    Admin
    George avatar
    859 posts

    Posted 11 Jul 2008 Link to this post

    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

  3. Peter Livsey
    Peter Livsey avatar
    44 posts
    Member since:
    Aug 2012

    Posted 21 Jul 2008 Link to this post

    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
  4. George
    Admin
    George avatar
    859 posts

    Posted 23 Jul 2008 Link to this post

    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
  5. George
    Admin
    George avatar
    859 posts

    Posted 23 Jul 2008 Link to this post

    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
  6. Peter Livsey
    Peter Livsey avatar
    44 posts
    Member since:
    Aug 2012

    Posted 23 Jul 2008 Link to this post

    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
  7. George
    Admin
    George avatar
    859 posts

    Posted 24 Jul 2008 Link to this post

    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.
  8. Peter Livsey
    Peter Livsey avatar
    44 posts
    Member since:
    Aug 2012

    Posted 29 Jul 2008 Link to this post

    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.
Back to Top