Hi,
I need to set the browser window disable until the user click OK/Cancel button in the radwindow
I saw the example , in TELERIK site,http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
As like in this example, when the user clicks the "Choose Destination & Date" button , a radwindow appears. I got the same effect in my radwindow sample application.In telerik example, when the user clicks the Choose City icon , another radwindow opens. At that time, the browser window is disabled. I need that effect in the browser window .please help me regarding this urgently.
Thanks in Advance.
<telerik:RadWindowManager ID="RadWindowManager1" ReloadOnShow="true" runat="server" Skin="Outlook" Animation="Fade">
<Windows>
<telerik:RadWindow ID="radwindow1" runat="server"
ShowContentDuringLoad="False"
NavigateUrl="window1.aspx"
width="400px"
height="400px"
title = "New Contact" style="display:none;" Behavior="Default" InitialBehavior="None" Left="" Modal="true" Top="" VisibleStatusbar="true"></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
| //create chart type Pie |
| ChartSeries activityChartSeries = new ChartSeries(); |
| activityChartSeries.Type = ChartSeriesType.Pie; |
| //styles |
| activityChartSeries.Appearance.Border.Visible = false; |
| activityChartSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels; |
| activityChartSeries.DefaultLabelValue = "#%{P2}"; |
| //data source |
| RadChart2.DataSource = activityStats; |
| //add series |
| RadChart2.Series.Add(activityChartSeries); |
| RadChart2.Series[0].DataYColumn = "Value"; |
| //data bind |
| RadChart2.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(RadChart2_ItemDataBound); |
| RadChart2.DataBind(); |
| <telerik:RadChart ID="RadChart2" BorderWidth="0" ChartTitle-Appearance-Border-Visible="false" ChartTitle-TextBlock-Visible="false" Legend-Appearance-Border-Visible="false" Width="500" Height="375" OnBeforeLayout="RadChart2_BeforeLayout" |
| OnItemDataBound="RadChart2_ItemDataBound" runat="server" DefaultType="Pie" Skin="Web20"> |
| </telerik:RadChart> |
| <telerik:RadGrid ID="RadGrid1" runat="server" Skin="trublue" EnableEmbeddedSkins="False" |
| GridLines="None" Style="left: 25px; position: relative; top: 14px; text-align: left;" |
| Width="750px" AllowPaging="True" PageSize="20" AutoGenerateColumns="False"> |
| <PagerStyle Mode="NumericPages" /> |
| <HeaderContextMenu EnableEmbeddedSkins="False"> |
| </HeaderContextMenu> |
| <MasterTableView DataKeyNames="TransactionsID"> |
| <DetailTables> |
| <telerik:GridTableView Name="TransDetails" runat="server" DataKeyNames="CheckNumber"> |
| <NestedViewTemplate> |
| <asp:Panel ID="Container" runat="server"> |
| <telerik:RadTabStrip ID="Gridtab1" runat="server" Skin="trublue" EnableEmbeddedSkins="False" |
| MultiPageID="gridmultypage1"> |
| <Tabs> |
| <telerik:RadTab runat="server" PageViewID="gridpageview1" Selected="true" Text="Transactions Details"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" PageViewID="gridpageview2" Selected="true" Text="Attachment Details"> |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage ID="gridmultypage1" SelectedIndex="0" runat="server"> |
| <telerik:RadPageView ID="gridpageview1" runat="server"> |
| <br /> |
| <table style="position: static; text-align: left"> |
| <tbody> |
| <tr> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| <asp:Label Style="position: static" ID="lblchkno" runat="server" Width="115px" Text="Cheque Number"> |
| </asp:Label></td> |
| <td> |
| :</td> |
| <td style="width: 224px"> |
| <asp:Label Style="position: static" ID="lblchequenumber" runat="server" Width="260px"></asp:Label> |
| </td> |
| <td style="width: 12px"> |
| </td> |
| </tr> |
| <tr> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| <asp:Label Style="position: static" ID="lblchkamount" runat="server" Text="Cheque Amount"> |
| </asp:Label></td> |
| <td> |
| :</td> |
| <td style="width: 224px"> |
| <asp:Label Style="position: static" ID="lblchequeamount" runat="server" Width="260px"></asp:Label> |
| </td> |
| <td style="width: 12px"> |
| </td> |
| </tr> |
| <tr> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| <asp:Label Style="position: static" ID="lblchkdate" runat="server" Text="Cheque Date"></asp:Label></td> |
| <td> |
| :</td> |
| <td style="width: 224px"> |
| <asp:Label Style="position: static" ID="lblchequedate" runat="server" Width="260px"></asp:Label> |
| </td> |
| <td style="width: 12px"> |
| </td> |
| </tr> |
| <tr> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| <asp:Label Style="position: static" ID="lblcltname" runat="server" Text="Client Name"></asp:Label> |
| </td> |
| <td> |
| :</td> |
| <td style="width: 224px"> |
| <asp:Label Style="position: static" ID="lblclientname" runat="server" Width="260px"></asp:Label> |
| </td> |
| <td style="width: 12px"> |
| </td> |
| </tr> |
| <tr> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| <asp:Label Style="position: static" ID="lblbnkname" runat="server" Text="Bank Name"></asp:Label> |
| </td> |
| <td> |
| :</td> |
| <td style="width: 224px"> |
| <asp:Label Style="position: static" ID="lblbankname" runat="server" Width="260px"></asp:Label> |
| </td> |
| <td style="width: 12px"> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <br /> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView2" runat="server"> |
| <br /> |
| <table> |
| <tr> |
| <td> |
| <telerik:RadGrid ID="RadGridDD" Skin="trublue" EnableEmbeddedSkins="False" runat="server" |
| AutoGenerateColumns="false"> |
| <ClientSettings> |
| <Selecting AllowRowSelect="true" /> |
| </ClientSettings> |
| <MasterTableView> |
| <Columns> |
| <telerik:GridTemplateColumn> |
| <HeaderTemplate> |
| Download |
| </HeaderTemplate> |
| <ItemTemplate> |
| <asp:LinkButton ID="btndownload" runat="server" Text="Download" OnClick="btndownload_click"></asp:LinkButton> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="id" HeaderText="id" UniqueName="id" Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="transno" HeaderText="transno" UniqueName="transno" |
| Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="docname" HeaderText="Document Name" UniqueName="docname"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="filename" HeaderText="File Name" UniqueName="filename"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <table style="position: static"> |
| <tr> |
| <td style="width: 100px"> |
| <asp:Button ID="btnfront" runat="server" Style="position: static" OnClick="btnfrontgrd_click" Enabled="false" |
| Text="View Front" /></td> |
| <td style="width: 100px"> |
| <asp:Button ID="btnback" runat="server" Style="position: static" OnClick="btnbackgrd_click" Enabled="false" |
| Text="View Back" /></td> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| </td> |
| <td style="width: 100px"> |
| <asp:Button ID="btndownloadgrd" runat="server" Style="position: static" OnClick="btndownloadgrd_click" Enabled="false" |
| Text="Download" /></td> |
| <td style="width: 100px"> |
| <asp:Button ID="btnprintgrd" runat="server" Style="position: static" Text="Print" |
| Visible="False" /></td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
| <br /> |
| <iframe id="frameimage" style="overflow: scroll;" runat="server" width="674px" height="640px"> |
| </iframe> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| </asp:Panel> |
| </NestedViewTemplate> |
| <Columns> |
| <telerik:GridBoundColumn DataField="CheckNumber" HeaderText="CheckNumber" UniqueName="CheckNumber"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="CheckDate" HeaderText="CheckDate" UniqueName="CheckDate"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="CheckReceivedOn" HeaderText="CheckReceivedOn" |
| UniqueName="CheckReceivedOn"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="CheckAmount" HeaderText="CheckAmount" UniqueName="CheckAmount"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="DepositeDate" HeaderText="DepositeDate" UniqueName="DepositeDate"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="InvoiceNo" HeaderText="InvoiceNo" UniqueName="InvoiceNo"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <ExpandCollapseColumn Visible="True"> |
| </ExpandCollapseColumn> |
| <EditFormSettings> |
| <EditColumn CancelImageUrl="trublue/Grid/Cancel.gif" EditImageUrl="trublue/Grid/Edit.gif" |
| InsertImageUrl="trublue/Grid/Update.gif" UpdateImageUrl="trublue/Grid/Update.gif"> |
| </EditColumn> |
| </EditFormSettings> |
| </telerik:GridTableView> |
| </DetailTables> |
| <Columns> |
| <telerik:GridBoundColumn DataField="TransactionsID" HeaderText="TransactionsID" UniqueName="TransactionsID"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="DepositeDate" HeaderText="DepositeDate" UniqueName="DepositeDate"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ChecksCount" HeaderText="ChecksCount" UniqueName="ChecksCount"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="TotalAmount" HeaderText="TotalAmount" UniqueName="TotalAmount"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <ExpandCollapseColumn Visible="True"> |
| </ExpandCollapseColumn> |
| <EditFormSettings> |
| <EditColumn CancelImageUrl="trublue/Grid/Cancel.gif" EditImageUrl="trublue/Grid/Edit.gif" |
| InsertImageUrl="trublue/Grid/Update.gif" UpdateImageUrl="trublue/Grid/Update.gif"> |
| </EditColumn> |
| </EditFormSettings> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| <ClientEvents OnRowDblClick="RowDblClicked" /> |
| </ClientSettings> |
| <FilterMenu EnableEmbeddedSkins="False"> |
| </FilterMenu> |
| </telerik:RadGrid> |
<rad:RadUpload runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" />
<rad:RadUpload runat="server" ID="documentUpload" InitialFileInputsCount="3" Skin="Default" />
