Good afternoon,
In my project I have a main page with 2 RadWindows. The first RadWindow is opened from the main page and the second RadWindow is opened from the first RadWindow. Since the second RadWindow is bigger, I use the RadWindowManager from the main page to open the second RadWindow.
The first RadWindow contains a RadDropDownList with relation names. In the second RadWindow I can add a relation to the database, but if that Window is closed the RadDropdownList with relation names in the first RadWindow is not updated with the new name.
In a script on the second RadWindow:
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function RefreshParentPage() {
GetRadWindow().BrowserWindow.location.reload();
}
In my code behind I have:
Dim script As String = "<script>RefreshParentPage()</" + "script>"
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "RefreshParentPage", script, False)
But when calling this script, the first RadWindow is closed, where I want it to be refreshed. I don't know how to reference the first RadWindow from the second.
How can I refresh the first RadWindow when the second RadWindow is closed?
Thxs
Regards,
Martin
Hi,
I recently upgraded from 2014.3.1209 to version 2017.2.621 and the timeline view of the scheduler is no longer rendering correctly and moving the appointments left. I have attached a screen shot of the issue showing an appointment that starts at 8am and ends to 5:30 pm. Tracing it through it looks like the appointment is getting a margin-left of a negative value set on render sending it off the left hand side of the scheduler.
Thanks.
Hello, I need to change a GridTemplateColumn to no longer be editable and instead have the former EditItemTemplate appear when adding a row instead in two different grids.
I tried just changing the EditItemTemplate elements into InserttemTemplate elements. This worked for one grid, however in the other grid it still seems to show the EditItemTemplate for that column when editing the row and not showing it when inserting. What could be going on?
Here is the grid element where it worked:
<telerik:RadGrid ID="ItemGrid" runat="server"
AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" Width="210px"
AllowMultiRowEdit="true" AllowFilteringByColumn="false"
OnNeedDataSource="ItemGrid_NeedDataSource" EnableLinqExpressions="false">
<GroupingSettings CaseSensitive="false" />
And the one where it didn't work:
<telerik:RadGrid ID="ItemGrid" runat="server"
AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" Width="860px"
AllowMultiRowEdit="true" AllowFilteringByColumn="false"
OnNeedDataSource="ItemGrid_NeedDataSource" EnableLinqExpressions="false"
OnItemDataBound="ItemGrid_DataBound"
ClientSettings-ClientEvents-OnBatchEditClosed="ItemGrid_BatchEditClosed"
ClientSettings-ClientEvents-OnBatchEditCellValueChanging="ItemGrid_BatchEditCellValueChanging"
ClientSettings-ClientEvents-OnBatchEditOpened="ItemGrid_BatchEditOpened">
Besides the elements here the only difference is they have a different number of columns. Both grids are on the same page. I also tried just removing the ClientSettings-ClientEvents-OnBatchEdit* and OnItemDataBound properties from the second grid and the same problem still occurs.
What determines if a step in the navigation bar is grayed out or not?
Mine is behaving oddly. Each step has the option for the user to create a new usercontrols (each containing several controls) via button click. But, when I do that the postback grays out all the segments in the navigation bar after the page reloads.
Thanks in advance for any information anyone can provide.
Am I missing something, the datepicker widget in scheduler renders as 'dials' on mobile device but the standalone datepicker renders like a calendar on a mobile device. Am I doing something wrong?
I have a problem if the RadDiagram is within a Web Form, which must be scrolled vertically. The vertical scrolling of the Web Form is not possible within the diagram control although the following properties are defined for the diagram (the interaction with the diagram and with its shapes is not required).
Editable="false" Selectable="false" ZoomMax="1" ZoomMin="1"
How do I solve the problem so that the vertical scrolling also works within the diagram control?
This problem only started after an upgrade to Version 2013.3.1324.45, previous version had no issues for 5+ years
I have a page with two grids where we move records between the two. If a user manually resizes any column in either grid I get the error below and it does not fire my code behind function. everything works fine if you don't resize.
GRID 1
<telerik:radgrid runat="server" ID="UnAssignedStudentGrid"
GridLines="None" Skin="Default" Height="300" Width="300" AllowMultiRowSelection="True" AllowSorting="False"
NeedDataSource="gvSearchResults_NeedDataSource" OnPreRender="gvSearchResults_PreRender">
<itemstyle backcolor="#fbfbfb" />
<alternatingitemstyle backcolor="#f7f7f7"/>
<ClientSettings>
<Selecting AllowRowSelect="True" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<Resizing AllowColumnResize="True" />
</ClientSettings>
</telerik:radgrid>
GRID 2
<telerik:radgrid runat="server" ID="AssignedStudentGrid"
GridLines="None" Skin="Default" Height="300" Width="300" AllowMultiRowSelection="True" AllowSorting="False"
NeedDataSource="gvSearchResults_NeedDataSource" OnPreRender="gvSearchResults_PreRender">
<itemstyle backcolor="#fbfbfb" />
<alternatingitemstyle backcolor="#f7f7f7"/>
<ClientSettings>
<Selecting AllowRowSelect="True" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<Resizing AllowColumnResize="True" />
</ClientSettings>
</telerik:radgrid>
Add/Remove Buttons
<td style="vertical-align: middle;" align="center">
<asp:Button runat="server" ID="btnAdd" style="width: 30px; height: 30px; font-size: 10px; font-weight: bold; text-align: left;" Text=">>" OnClick="btnAdd_Click" OnClientClick="return disableButtonAndPostback(this,'');" />
<br /><br /><br />
<asp:Button runat="server" ID="btnRemove" style="width: 30px; height: 30px; font-size: 10px; font-weight: bold; text-align: left;" Text="<<" OnClick="btnRemove_Click" OnClientClick="return disableButtonAndPostback(this,'');" />
</td>
Error:
Uncaught Error: Sys.WebForms.PageRequestManagerServerErrorException: Cannot find a column with UniqueName 'LastName'
at Function.Error$create [as create] (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:237)
at Sys$WebForms$PageRequestManager$_createPageRequestManagerServerError [as _createPageRequestManagerServerError] (ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:656)
at Sys$WebForms$PageRequestManager$_parseDelta [as _parseDelta] (ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1534)
at Sys$WebForms$PageRequestManager$_onFormSubmitCompleted [as _onFormSubmitCompleted] (ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1314)
at Array.<anonymous> (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:47)
at ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:3484
at Sys$Net$WebRequest$completed [as completed] (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6376)
at XMLHttpRequest.Sys$Net$XMLHttpExecutor._onReadyStateChange (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:5996)
Error$create @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:237
Sys$WebForms$PageRequestManager$_createPageRequestManagerServerError @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:656
Sys$WebForms$PageRequestManager$_parseDelta @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1534
Sys$WebForms$PageRequestManager$_onFormSubmitCompleted @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1314
(anonymous) @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:47
(anonymous) @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:3484
Sys$Net$WebRequest$completed @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6376
Sys$Net$XMLHttpExecutor._onReadyStateChange @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:5996
XMLHttpRequest.send (async)
Sys$Net$XMLHttpExecutor$executeRequest @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6076
Sys$Net$_WebRequestManager$executeRequest @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6302
Sys$Net$WebRequest$invoke @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6481
Sys$WebForms$PageRequestManager$_onFormSubmit @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1292
Sys$WebForms$PageRequestManager$_doPostBack @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:824
(anonymous) @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:47
disableButtonAndPostbackWithArgument @ sfafStandardScript1.js:464
disableButtonAndPostback @ sfafStandardScript1.js:445
onclick @ EditStudentsInClassroom.aspx?ids=53yb&p=1&sy=2016%2F2017&syid=73&gp=Baseline&gpid=1&su=&xxyz=10d0d5…:1154
I've implemented dropdown filters and have a problem filtering items that have single or double quotes.
<FilterTemplate>
<telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBoxArea" DataSourceID="SqlDataSource9" DataTextField="area"
DataValueField="area" Width="200px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("area").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="AreaChanged">
<Items>
<telerik:RadComboBoxItem Text="All" />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID="RadScriptBlockArea" runat="server">
<script type="text/javascript">
function AreaChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("area", args.get_item().get_value(), "EqualTo");
alert(args.get_item().get_value());
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
The problem seems to be in the statement: tableView.filter("area", args.get_item().get_value(), "EqualTo");
I can see the value from args.get_item().get_value() and it looks fine, the single and double quotes are there (see alert I put in to view the value).
Any suggestions or work arounds? Is this a problem with the Grid?