Hi,
I have a RadWindowManager on a page where I have a function assigned to the OnClientBeforeClose event.
<
telerik:RadWindowManager
ID
=
"rwmManager"
runat
=
"server"
DestroyOnClose
=
"true"
ReloadOnShow
=
"true"
CenterIfModal
=
"true"
OnClientClose
=
"RefreshGrid"
OnClientBeforeClose
=
"ChangeAlert"
/>
The problem I am having is that the OnClientBeforeClose event only fires the first time I open the window. If I close the window and then re-open and then subsequently close the window, the OnClientBeforeClose event doesn't fire.
If I change the DestroyOnClose = "false" then the event will fire every time, but the previous window I opened gets cached and flashes on the screen before the new window is opened.
How can I make this work without setting the DestroyOnClose to false.
Thank You
Tracy
'm using Telerik UI for ASP.NET AJAX R1 2018. When I use the AntiXssEncoder as the default encoder...
<
httpRuntime
encoderType
=
"Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary"
maxRequestLength
=
"102400"
/>
I have a RadDropDownList in a TemplateColumn of a RadGrid. The grid is using batch editing mode, and the drop-down list is loading its data from a web service.
This is all generally working, except for the fact that the DDL does not load it's items until the first time you click on the control. Unfortunately, that is a tad too late for the existing value to be retained the first time that it is used. Editing subsequent rows is fine.
So, I'd like to cause the DDL to load it's items earlier. Is there a way to trigger the RadDropDownList to dynamically load it's list on demand??
Hi,
How can I get the grid row type when looping through all rows in grid client side.
var masterTable = $find("<%=rgvMainGrid.ClientID%>").get_masterTableView();
var rowCount = masterTable.get_element().rows.length;
for (var i = 0; i < rowCount; i += 1) {
//Get Type Of Row Here (ie. GroupHeader, Data Row, GroupFooter)
}
Also, is there a complete list of the Client API objects. I found a Client Side Programming Overview document but it only has few of the objects listed.
For example, the documentation lists the .get_masterTableView() but I don't see anything on
.get_masterTableView().getCellByColumnUniqueName or .get_masterTableView().get_element().rows.length
Thank You
Tracy
I am using this example and would like to change the TimeView.StartTime to then radScheduler.DayStartTime.Hours and the TimeView.Interval to 15 minutes when the raddock displays as the appointment edit. I have tried numerous events but the changes do not apply.
Any help would be greatly appreciated, thanks in advanve .
Dim rtpStartTime As RadDateTimePicker = TryCast(rdAddEditAppointment.ContentContainer.FindControl("StartTime"), RadDateTimePicker)
If Not IsNothing(rtpStartTime) Then
rtpStartTime.TimeView.StartTime = New TimeSpan(rsScheduler.DayStartTime.Hours, 0, 0)
rtpStartTime.TimeView.Interval = New TimeSpan(0, DefaultScheduleMinutes, 0)
End If
Dim rtpEndTime As RadDateTimePicker = TryCast(rdAddEditAppointment.ContentContainer.FindControl("EndTime"), RadDateTimePicker)
If Not IsNothing(rtpEndTime) Then
rtpEndTime.TimeView.EndTime = New TimeSpan(rsScheduler.DayEndTime.Hours, 0, 0)
rtpEndTime.TimeView.Interval = New TimeSpan(0, DefaultScheduleMinutes, 0)
End If
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"AjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnRefresh"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"phFields"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
asp:placeholder
id
=
"phFields"
runat
=
"server"
>
<
telerik:RadEditor
ID
=
"RadEditor1"
runat
=
"server"
>
</
telerik:RadEditor
>
<
telerik:RadEditor
ID
=
"RadEditor2"
runat
=
"server"
ToolProviderID
=
"RadEditor1"
>
</
telerik:RadEditor
>
<
asp:DropDownList
ID
=
"DropDownList1"
runat
=
"server"
AutoPostBack
=
"true"
>
<
asp:ListItem
Text
=
"a"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"b"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"c"
></
asp:ListItem
>
</
asp:DropDownList
>
</
asp:placeholder
>
<
asp:button
id
=
"btnRefresh"
runat
=
"server"
/>
</
form
>
I have a RadGrid which has a Detail link. When this detail link is clicked, a RadWindow with a series of controls is displayed. Among these controls is a RadGrid with an user control as its Edit Template. I can open the edit template, but when I click Insert, Cancel or Update, the edit template will not close.
This is the same template (and User Control) I use in a separate page that does not use a RadWindow but a normal ASPX page. All of the functions (Insert, Cancel, Edit) work just fine in this page from the associated RadGrid.
Hi,
I am using this approach to show custom icon:
https://www.telerik.com/support/kb/aspnet-ajax/window/details/adding-a-custom-button-to-radwindow-titlebar
But with latest version 2017.3.913 it is not working, icon is shown, but tiny (in Lightweight mode)
Can you help?
Alex