
| <telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200" |
| HideDelay="1" ID="RadToolTipManager1" Width="450px" RelativeTo="Element" |
| Animation="Slide" Position="BottomCenter" OnAjaxUpdate="OnAjaxUpdate" |
| Skin="Sunset" HideEvent="LeaveToolTip" /> |
| this.RadToolTipManager1.TargetControls.Add(this.ImageGuarantee.ClientID, "Guarantee", true); |
| this.RadToolTipManager1.TargetControls.Add(this.ImageWhy.ClientID, "Why", true); |
| this.RadToolTipManager1.TargetControls.Add(this.ImageVIP.ClientID, "VIP", true); |
Hi,
i'm using telerik radwindow and radgrid in my page.
when i double click on grid record my pop-up window displayed. i have 'Close' asp button on my child page.
i'm calling CloseandRebind() javascript function on 'Close' click. it will refresh my parent page. RadAjaxmanager displays the loading panel while refresh of the parent page.
my child rad window displays 'X' button on Top Right corner. i have written OnClientClose function on my parent page window defination like below.
owin.OnClientClose = "OnClientClose"
but page is not getting refreshed on click of 'X'. also loading panel also not displayed.
//java script
function OnClientClose(sender,args)
{
//window.location.href = window.location.href;// - will refresh the page by reloading the URL
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
function CloseAndRebind(args)
{
GetRadWindow().Close();
GetRadWindow().BrowserWindow.refreshGrid(args);
}
function refreshGrid(arg) {
if (!arg) {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
else {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
}
}
please sugggest some solution so that both the close buttons works proper and loading panel displays on click of both buttons.
Thanks
Sweta
| <telerik:RadWindow runat="server" Width="800px" Height="600px" |
| NavigateUrl="Explorer.aspx" ID="ExplorerWindow" |
| Behaviors="Resize, Close, Move" AutoSize="True" ClientIDMode="AutoID" |
| Behavior="Resize, Close, Move" |
| style="POSITION: absolute; visibility: visible; overflow: visible; z-index: 10000000;" |
| InitialBehavior="None"> |
| </telerik:RadWindow> |
| function OpenFileExplorerDialog() { |
| var wnd = $find("<%= ExplorerWindow.ClientID %>"); |
| wnd.Show(); |
| } |
| <asp:Button ID="selectFile" OnClientClick="OpenFileExplorerDialog(); return false;" |
| Text="Open... " runat="server" type="submit" /> |
| function OnClientLoad(editor) { |
| editor.set_useClassicDialogs(true); |
| } |
<td valign="top">
<telerik:RadGrid ID="rgdCurrency" runat="server" AutoGenerateColumns="False" DataSourceID="dsCurrencyHeader"
GridLines="None" Width="200px" OnItemDataBound="rgdCurrency_ItemDataBound" >
<MasterTableView DataSourceID="dsCurrencyHeader" AutoGenerateColumns="False" DataKeyNames="currencycd">
<Columns>
<telerik:GridBoundColumn DataField="currencycd" HeaderText="Currency" SortExpression="currencycd"
UniqueName="currencycdFld">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="currencycd" UniqueName="ChartColumn" HeaderText="Exchange">
<ItemTemplate>
<telerik:RadChart ID="rdcCurrency" runat="server" AutoLayout="True" DataSourceID="dsCurrencyDetail"
DefaultType="Line" Height="25px" Width="50px" CreateImageMap="False" SeriesPalette="WebBlue">
<Series>
<telerik:ChartSeries Name="perDirhamExchAmt" DataYColumn="perDirhamExchAmt" Type="Line">
<Appearance>
<FillStyle MainColor="94, 117, 142" SecondColor="222, 245, 245">
</FillStyle>
<LabelAppearance Visible="False">
</LabelAppearance>
<Border Color="DimGray" />
</Appearance>
</telerik:ChartSeries>
</Series>
<PlotArea>
<XAxis IsZeroBased="False">
<Appearance MajorTick-Visible="False">
<MajorGridLines Color="DimGray" Visible="False" Width="0" />
<LabelAppearance Visible="False">
</LabelAppearance>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">
</Appearance>
</TextBlock>
</AxisLabel>
</XAxis>
<YAxis IsZeroBased="False">
<Appearance MajorTick-Visible="False" MinorTick-Visible="False">
<MajorGridLines Color="DimGray" Visible="False" />
<LabelAppearance Visible="False">
</LabelAppearance>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">
</Appearance>
</TextBlock>
</AxisLabel>
</YAxis>
<YAxis2>
<Appearance MajorTick-Visible="False" MinorTick-Visible="False">
<MinorGridLines Visible="False" />
<LabelAppearance Visible="False">
</LabelAppearance>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">
</Appearance>
</TextBlock>
</AxisLabel>
</YAxis2>
<Appearance Corners="Round, Round, Round, Round, 6" SeriesPalette="WebBlue">
<FillStyle FillType="Solid" MainColor="White" SecondColor="White">
</FillStyle>
<Border Color="DimGray" Visible="False" />
</Appearance>
</PlotArea>
<ChartTitle Visible="False">
<Appearance Corners="Round, Round, Round, Round, 6" Dimensions-Margins="4%, 10px, 14px, 0%"
Position-AlignedPosition="Top" Visible="False">
<FillStyle GammaCorrection="False" MainColor="224, 224, 224">
</FillStyle>
<Border Color="DimGray" />
</Appearance>
<TextBlock>
<Appearance TextProperties-Font="Verdana, 11.25pt">
</Appearance>
</TextBlock>
</ChartTitle>
<Legend Visible="False">
<Appearance Visible="False">
<ItemTextAppearance TextProperties-Color="DimGray">
</ItemTextAppearance>
<Border Color="DimGray" />
</Appearance>
</Legend>
</telerik:RadChart>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
.cs
protected void rgdCurrency_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = e.Item as GridDataItem;
RadChart chart = item["ChartColumn"].FindControl("rdcCurrency") as RadChart;
dsCurrencyDetail.SelectParameters[0].DefaultValue = item.GetDataKeyValue(
"currencycd").ToString();
chart.DataSource = dsCurrencyDetail.Select(
DataSourceSelectArguments.Empty);
chart.DataBind();
}
}

| <telerik:RadToolBar ID="mainToolBar" runat="server" |
| Style="z-index: 90001" Width="100%" |
| OnButtonClick="mainToolBar_ButtonClick" |
| OnClientButtonClicked="OnClientButtonClicked" |
| onitemcreated="mainToolBar_ItemCreated"> |
| <Items> |
| <telerik:RadToolBarButton ImageUrl="~/images/toolbar/New.gif" AccessKey="N" Text="<u>N</u>ew" |
| ToolTip="New" Value="New"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton IsSeparator="true" /> |
| <telerik:RadToolBarButton ImageUrl="~/images/toolbar/print.gif" ToolTip="Print" CommandName="Print" |
| Value="Print" /> |
| <telerik:RadToolBarButton ImageUrl="~/images/toolbar/Excel.png" AccessKey="N" ToolTip="Excel" |
| Value="ExportToExcel" PostBack="false"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton IsSeparator="true" /> |
| <telerik:RadToolBarButton ImageUrl="~/images/toolbar/Refresh.gif" ToolTip="Refresh" |
| Value="Refresh" PostBack="false"/> |
| <telerik:RadToolBarButton IsSeparator="true" /> |
| <telerik:RadToolBarButton ImageUrl="~/images/toolbar/delete.gif" ToolTip="Delete" |
| Value="Delete" PostBack="false" /> |
| <telerik:RadToolBarButton Value="Search" > |
| <ItemTemplate> |
| </ItemTemplate> |
| </telerik:RadToolBarButton> |
| </Items> |
| </telerik:RadToolBar> |
| protected void mainToolBar_ItemCreated(object sender, Telerik.Web.UI.RadToolBarEventArgs e) |
| { |
| throw new Exception("ItemCreated fired"); |
| } |