Has anyone gotten the OnClientClose or ClientCallbackFunction method to fire when a window is closed? I am opening a window but neither method gets called anymore. Below is my code:
| var url = "<%=DocuSys.DocuView.SitePages.PreOp.Screening%>?showheader=" + showheader; |
| var oWnd = window.radopen(url,null); |
| oWnd.set_Status(url); |
| oWnd.set_Title("Drug Screening"); |
| oWnd.setSize(_docWidth - 30, _docHeight - 130); |
| oWnd.center(); |
| oWnd.<OnClientClose|ClientCallBackFunction> = function (radWindow, returnValue) |
| { alert("returnValue"); |
| if(returnValue == "accept") |
| { |
| SignPreop(); |
| } |
| } |
The <OnClientClose|ClientCallBackFunction> is to show I have tried both of those methods.
Jason
Hi, i use a radgrid, if i select other page don't show anhyting.
I using this:
<telerik:RadGrid ID="rgResults" runat="server" AllowPaging="True"
AllowSorting="True" OnNeedDataSource="rgResults_NeedDataSource"
GridLines="None" Skin="WebBlue"
onitemcommand="rgResults_ItemCommand" >
<FilterMenu EnableTheming="True">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
<PagerStyle FirstPageToolTip="Primera Página" LastPageToolTip="Última Página"
NextPagesToolTip="Siguiente Página" NextPageToolTip="Siguiente Página"
PagerTextFormat="Cambiar Página: {4} &nbsp;Página <strong>{0}</strong> de <strong>{1}</strong>, Registros <strong>{2}</strong> a <strong>{3}</strong> de <strong>{5}</strong> Encontrados."
PrevPagesToolTip="Página Anterior" PrevPageToolTip="Página Anterior" />
<MasterTableView NoMasterRecordsText="No se encontraron registros." >
<Columns>
<telerik:GridButtonColumn CommandName="Select" Text="Ver"
UniqueName="column">
</telerik:GridButtonColumn>
</Columns>
<PagerStyle FirstPageToolTip="Primera Página" LastPageToolTip="Última Página"
NextPagesToolTip="Siguiente Página" NextPageToolTip="Siguiente Página"
PagerTextFormat="Cambiar Página: {4} &nbsp;Página <strong>{0}</strong> de <strong>{1}</strong>, Registros <strong>{2}</strong> a <strong>{3}</strong> de <strong>{5}</strong> encontrados."
PrevPagesToolTip="Página Anterior" PrevPageToolTip="Página Anterior" />
</MasterTableView>
<GroupingSettings GroupSplitDisplayFormat="Mostrando {0} de {1} registros." />
<ClientSettings AllowExpandCollapse="False" AllowGroupExpandCollapse="False"
AllowKeyboardNavigation="True">
<DataBinding EnableCaching="True">
</DataBinding>
<Selecting AllowRowSelect="True" />
<ClientMessages PagerTooltipFormatString="Página <strong>{0}</strong> de <strong>{1}</strong>" />
</ClientSettings>
<SortingSettings SortedAscToolTip="Ordenar Ascendente"
SortedDescToolTip="Ordenar Descendente" SortToolTip="Haga clic para ordenar" />
</telerik:RadGrid>
And codebehind:
protected void rgResults_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
DataSet Results = new DataSet(); Userconection.ConnectionString = "Server=" + server + ";Port=" + port + ";Database=" + database + ";Uid=" + user + ";Pwd=" + paswd + ";";
Userconection.Open();
MySqlDataAdapter adapter = new MySqlDataAdapter("Select ID from table1", Userconection);
adapter.Fill(Results);
rgResults.DataSource =Results;
}
Thanks for you help!
Briayan
| <telerik:RadPanelBar ID="testPanel" CollapseAnimation-Duration="100" |
| CollapseAnimation-Type="Linear" ExpandAnimation-Duration="50" |
| ExpandAnimation-Type="Linear" PersistStateInCookie="true" |
| ExpandMode="SingleExpandedItem" CausesValidation="False" runat="server" |
| Skin="WebBlue" AllowCollapseAllItems="true"></telerik:RadPanelBar> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!Page.IsPostBack) |
| { |
| RadPanelItem productOne = new RadPanelItem(); |
| productOne.Text = "Product One"; |
| productOne.CssClass = "MainItem"; |
| testPanel.Items.Add(productOne); |
| RadPanelItem featuresOne = new RadPanelItem(); |
| featuresOne.Text = "Series Features"; |
| productOne.Items.Add(featuresOne); |
| RadPanelItem productTwo = new RadPanelItem(); |
| productTwo.Text = "Product Two"; |
| productTwo.CssClass = "MainItem"; |
| testPanel.Items.Add(productTwo); |
| RadPanelItem featuresTwo = new RadPanelItem(); |
| featuresTwo.Text = "Series Features"; |
| productTwo.Items.Add(featuresTwo); |
| } |
| } |
Troubleshoot issues with Windows SharePoint Services.
I have been tring every thing, I added the dlls as a safe cotrol in my web.config as descriped in http://www.telerik.com/help/aspnet-ajax/create-ajax-enabled-sharepoint-webpart-radcontrols.html
This is my simple code:
Protected Overrides Sub CreateChildControls()
MyBase.CreateChildControls()
Dim panel As Panel = New Panel()
panel.ID = "Panel1"
Dim treeView As RadTreeView = New RadTreeView()
treeView.ID = "RadTreeView1"
treeView.Nodes.Add(New RadTreeNode("What's the time?"))
panel.Controls.Add(treeView)
Dim Label As New Label()
Label.Text = "This is a label"
panel.Controls.Add(Label)
Me.Controls.Add(panel)
End Sub
Please help !!!
RadGrid1.ExportSettings.ExportOnlyData =
true;
RadGrid1.ExportSettings.IgnorePaging =
true;
RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.
GridExcelExportFormat.ExcelML;
RadGrid1.MasterTableView.ExportToExcel();
I read in some earlier forum that Telerik WebGrid cannot handle more than 40000 rows. Mine is hitting exception around 25000 rows itself. Please email or call me at 609-203-9797 please.
Thanks,
Satish