Customize RadBusyContent in RadPdfViewer

5 posts, 0 answers
  1. Guy
    Guy avatar
    46 posts
    Member since:
    Nov 2008

    Posted 07 Mar 2012 Link to this post

    Hi, 

    I would like to know how I could customize message shown in RadBusyIndicator when loading or printing RadPdfViewer. I found even when printing the message is not swuitable because is still  "Loading...". How can localize this message because my application is multi-language.

    Thanks for your replay.

    Guy
  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 09 Mar 2012 Link to this post

    Hi Guy,

    You can override the control template of RadPdfViewer and the RadBusyIndicator in it. This can be achieved most easily in Expression Blend. Please, refer to this article for more information on changing the content of RadBusyIndicator.

    Kind regards,
    Kammen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Guy
    Guy avatar
    46 posts
    Member since:
    Nov 2008

    Posted 09 Mar 2012 Link to this post

    Hi Kammen,

    Thank u for your quick replay.  I tried your advice but i  there is something i dont understand. I checked also the demo examples provided online. It seems that event i remove the RadBusyIndicator in the control template i still have RadBusyIndicator when i run the application. I guess there is a built in BusyIndicator in the PdfViewer and i don t know how i can access it to change the busy message depending on the state. Can u give me an idea how i can achieve this.

    Thank u 

    Guy
  5. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 12 Mar 2012 Link to this post

    Hi Guy,

    Removing the BusyIndicator from the template of the control should be sufficient.

    Please find attached a demo which includes the template of RadPdfViewer in which the BusyIndicator has been commented out and is not shown when opening documents or printing them. I have also included the style of the RadBusyIndicator in case you decide to customize it instead of removing it altogether.

    Kind regards,
    Iva Toteva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  6. Guy
    Guy avatar
    46 posts
    Member since:
    Nov 2008

    Posted 12 Mar 2012 Link to this post

    Hi Iva ,
    Thanks for your  quick replay and it helps me a lot to customize the PdfViewer's busyIndicator when it is in the loading or printing mode.
    Best regards,
    Guy

Back to Top
DevCraft banner