or
| function ShowDialog() { | |
| //window.radopen(null, "DialogWindow"); | |
| //Forced reload (option 1): In order to force a reload on the dialog, the following approach should be used | |
| //window.radopen("./SimpleDialog.aspx", "DialogWindow"); | |
| //Forced reload (option 2): If one is not sure what the current url is, forced reload can be achieved like this: | |
| var oWnd = window.radopen(null, "DialogWindow"); | |
| oWnd.SetUrl(oWnd.GetUrl()); | |
| } | |
| /* Called when a window is being shown. Good for setting an argument to the window */ | |
| function OnClientShow(radWindow) { | |
| //Get current content of textarea | |
| var oText = document.getElementById("<%=radtextbox1.ClientID %>").value; | |
| //Create a new Object to be used as an argument to the radWindow | |
| var arg = new Object(); | |
| //Using an Object as a argument is convenient as it allows setting many properties. | |
| arg.TextValue = oText; | |
| //Set the argument object to the radWindow | |
| radWindow.Argument = arg; | |
| } | |
| function CallBackFunction(radWindow, returnValue) { | |
| var oArea = document.getElementById("<%=ChequeDetailsGrid.ClientID %>"); | |
| if (returnValue) oArea.value = returnValue; | |
| else alert("No text was returned"); | |
| } | |
| /* Called when a window is being closed. */ | |
| function OnClientClose(radWindow) { | |
| //Another option for passing a callback value | |
| //Set the radWindow.Argument property in the dialog | |
| //And read it here --> var oValue = radWindow.Argument; | |
| //Do cleanup if necessary | |
| } |
Thanxs in advance
Panos
| Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource |
| Dim mc As MembershipUserCollection |
| mc = Membership.GetAllUsers |
| RadGrid1.DataSource = mc |
| End Sub |