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

RadEditor Dialogs ReloadOnShow Property

2 Answers 76 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 11 Aug 2008, 11:19 AM
Hi

When adding a RadWindow to a page in aspx where can set the ReloadOnShow property to True to force it to reload. However for the RadEditor we add the dialog definitions in the code behind as follows:



Dim dlgEditRule As New DialogDefinition("Dialogs/dlgEditRule.ascx", New DialogParameters()) 



With dlgEditRule

.Modal =

True

.VisibleTitlebar =

True

.VisibleStatusbar =

False

.Title =

"<font size=""2""><b>Edit Rules</b></font>"

.Width = Unit.Pixel(576)

.Height = Unit.Pixel(500)

End With


.AddDialogDefinition(

"TP_EditRule", dlgEditRule)






In the code behind we don't have the option to set the ReloadOnShow property, is there a way to do this?

Thanks
David

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 12 Aug 2008, 11:27 AM
Sorry I'm confused, this is not related to my question at all?
0
Rumen
Telerik team
answered on 12 Aug 2008, 11:49 AM
Hi David,

Here is the syntax to set the ReloadOnShow property

Dim def1 As New DialogDefinition("~/test.ascx", New DialogParameters())
def1.ReloadOnShow = True

In your code you can set it like this

        Dim dlgEditRule As New DialogDefinition("Dialogs/dlgEditRule.ascx", New DialogParameters())

        With dlgEditRule
            .Modal = True
            .ReloadOnShow = True
            .VisibleTitlebar = True
            .VisibleStatusbar = False

            .Title = "<font size=""2""><b>Edit Rules</b></font>"
            .Width = Unit.Pixel(576)
            .Height = Unit.Pixel(500)
        End With

You should also make sure that you are using the latest version 2008.2.723 of Telerik.Web.UI.dll.

p.s. Please, excuse me, but the previously deleted response was for another forum post.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or