Hello All,
We have a ASP.NET AJAX based application which uses Modal RadWindow Popups.
Same application will run in different organizations and some organizations have small resolution monitors.
First I would asked that if Popup Window is quite big in small resolution monitor ant Window's caption is now shown, how can I move Window with using mouse? Are there any key combinations which would move Modal RadWindow?
Second question is that have any of you made scalable Popup Windows? Can it be done using Telerik's RadWindow?
Thanks,
Michael

| catch (Exception ex) |
| { |
| changedRows[0].CancelEdit(); |
| Label lc = new Label(); |
| lc.Text="ERROR: "+ex.Message; |
| lc.ForeColor=Color.Red; |
| userControl.Controls.AddAt(0,lc); |
| e.Canceled=true; |
| e.Item.Edit = true; |
| } |
The problem: After this takes place, it seems that while the popup remains on the screen, the page has lost track of it. If I click my save button again then the updatecommand event is never called and the popup simply disappears. Other events defined in the user control also no longer take place.
It is probably something with radgrid not saving the usercontrol to viewstate. Any ideas how I can fix that?
-=-
On a somewhat related subject, while I'd very much like to find a solution to the above, I am also considering moving the editform to its own page. This is because when I double click on a row to open up the popup edit box with user control, radgrid implements that by a full postback that resends the whole grid (and page), this time including the popup right in the middle of the grid's generated html. The same thing takes place when I hit save or cancel in the edit popup. It has been suggested here that I should look at client-side databinding and editing but I'd like to avoid doing that. For now I see two options: 1) double-clicking on rows openup a new browser window with a new page or 2) I put my editform below the grid and load it and make it visible and jump to it when I double click on a row and put all of that in a radpanel so that this can be handled by an ajax request instead of a full post back.
Any thoughts on this and links to examples?
Regards,
Sylvain
| <!-- Start of Brightcove Player --> |
| <div style="display: none;"> |
| </div> |
| <!-- |
| By use of this code snippet, I agree to the Brightcove Publisher T and C |
| found at http://corp.brightcove.com/legal/terms_publisher.cfm. |
| --> |
| <script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script> |
| <object class="BrightcoveExperience" id="myExperience50110418001"> |
| <param name="bgcolor" value="#FFFFFF"> |
| <param name="width" value="411"> |
| <param name="height" value="308"> |
| <param name="playerID" value="49906927001"> |
| <param name="publisherID" value="21742339001"> |
| <param name="isVid" value="true"> |
| <param name="@videoPlayer" value="50110418001"> |
| </object> |
| <!-- End of Brightcove Player --> |
| <!-- Start of Brightcove Player --><div style="display: none;"></div><!-- |
| By use of this code snippet, I agree to the Brightcove Publisher T and C |
| found at http://corp.brightcove.com/legal/terms_publisher.cfm. |
| --><script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script><!-- End of Brightcove Player --> |

| <EditFormSettings UserControlName="../UserControls/Process/StateAlert.ascx" EditFormType="WebUserControl"> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| </EditFormSettings> |
| public object DataItem |
| { |
| get |
| { |
| return dataItem; |
| } |
| set |
| { |
| if (value != null) |
| { |
| if (value is StateJobTemplate) |
| { |
| StateJobTemplate template = (StateJobTemplate)value; |
| ShowControl(true, (StateJobTypes)template.StateJobType, template); |
| _sjtItem = template; |
| } |
| else |
| { |
| Telerik.Web.UI.GridInsertionObject newAlert = (Telerik.Web.UI.GridInsertionObject)value; |
| StateJobTemplate template = newAlert.GetPropertyValue("JobTemplate") as StateJobTemplate; |
| ShowControl(true, (StateJobTypes)template.StateJobType, template); |
| _sjtItem = template; |
| } |
| btnCancel.Visible = true; |
| } |
| dataItem = value; |
| } |
| } |
| Sys.WebForms.PageRequestManagerServerErrorException: Nie mo|na wyrejestrowa elementu UpdatePanel o identyfikatorze uPanelDelay, poniewa| nie zostaB on zarejestrowany w elemencie ScriptManager. Ta sytuacja mo|e wystpi, je[li element UpdatePanel zostaB usunity z drzewa formantów, a nastpnie dodany ponownie, co nie jest obsBugiwan operacj. |
| Nazwa parametru: updatePanel' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/spy.js :: onHTTPSpyReadyStateChange :: line 497" data: no] |
| http://localhost:9920/ScriptResource.axd?d=1B-MRZCEFwolhXDsshMf4JjZOQs3iq1lzhqE6bwgKqGK8lEWWx8KGThf_Rfugcg6TbxwknueZdk1ek5e3cT_FYN0GGs0HIzmvczdBTv9-1E1&t=ffffffff91beb05b Line 5 |
| <telerik:RadGrid ID="grdScoreCard" runat="server" |
| onneeddatasource="grdScoreCard_NeedDataSource" EnableViewState="False" |
| OnItemCommand="grdScoreCard_ItemCommand" |
| AutoGenerateColumns="False" GridLines="None" |
| onitemdatabound="grdScoreCard_ItemDataBound" AllowSorting="True"> |
| <headercontextmenu enabletheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </headercontextmenu> |
| <mastertableview showfooter="True" AllowMultiColumnSorting="true" AllowSorting="true"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:HyperLink ID="lnkInfo" Text="Details" ToolTip="Info" NavigateUrl="#" runat="server"></asp:HyperLink> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="AvgContractAmount" DataFormatString="{0:c}" |
| HeaderText="Avg. Contract $" |
| SortExpression="AvgContractAmount" |
| UniqueName="colAvgContractAmount" Aggregate="Sum" FooterAggregateFormatString="{0:0,0}"> |
| <FooterStyle HorizontalAlign="Right" /> |
| <ItemStyle HorizontalAlign="Right" /> |
| </telerik:GridBoundColumn> |
| protected void btnGenerate_Click(object sender, EventArgs e) |
| { |
| this.grdScoreCard.Rebind(); |
| } |
| protected void grdScoreCard_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) |
| { |
| if (e.CommandName == "Sort" || e.CommandName == "Page") |
| { |
| this.RadToolTipManager1.TargetControls.Clear(); |
| } |
| } |
| protected void grdScoreCard_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| this.Generate(); |
| } |
| protected void Generate() |
| { |
| DataTable table = this.GenerateData(); |
| this.grdScoreCard.DataSource = table; |
| } |
| protected void grdScoreCard_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) |
| { |
| if (e.Item.ItemType == Telerik.Web.UI.GridItemType.Item || e.Item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem) |
| { |
| HyperLink link = e.Item.FindControl("lnkInfo") as HyperLink; |
| if (link != null) |
| { |
| DataRowView view = (DataRowView)e.Item.DataItem; |
| this.RadToolTipManager1.TargetControls.Add(link.ClientID, view.Row["LocationID"].ToString(), true); |
| } |
| } |
| if (e.Item is Telerik.Web.UI.GridDataItem) |
| { |
| Telerik.Web.UI.GridDataItem item = e.Item as Telerik.Web.UI.GridDataItem; |
| if (item != null) |
| { |
| int index = e.Item.ItemIndex + 1; |
| item["colRank"].Text = index.ToString(); |
| } |
| } |
| if (e.Item is Telerik.Web.UI.GridFooterItem) |
| { |
| DataTable table = this.grdScoreCard.DataSource as DataTable; |
| this.GenerateFooter(e, table); |
| } |
| } |
<telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%"
BorderStyle="None" Skin="Sitefinity">
<Items>
<telerik:RadToolBarButton runat="server" Text="New">
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="Filter">
<ItemTemplate>
<telerik:RadComboBox ID="RadComboBox1" AutoPostBack="True" Runat="server">
<Items>
<telerik:RadComboBoxItem runat="server" Selected="True" Text="All" Value="0" />
<telerik:RadComboBoxItem runat="server" Text="All Open Requests" Value="1" />
<telerik:RadComboBoxItem runat="server" Text="My Open Requests" Value="2" />
<telerik:RadComboBoxItem runat="server" Text="My Closed Requests" Value="3" />
</Items>
</telerik:RadComboBox>
<telerik:RadToolBarButton runat="server" Text="Edit">
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="Print">
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="Search">
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="Refresh">
</telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
<
asp:SqlDataSource ID="sqldsRequestsFiltered" runat="server"
ConnectionString=""
SelectCommand="csp_ith_ssl_requests_filtered" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="RadComboBox1" Name="selection"
PropertyName="SelectedValue" Type="Int32" />
<asp:ControlParameter ControlID="lblUserName" Name="userid" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>