Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views

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

 

 

Marin Bratanov
Telerik team
 answered on 29 Jan 2018
0 answers
150 views
'm using Telerik UI for ASP.NET AJAX R1 2018.  When I use the AntiXssEncoder as the default encoder...
 web.config 
    <httpRuntime encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary"  maxRequestLength="102400"/>
ghd258 ghd258
Top achievements
Rank 1
 asked on 27 Jan 2018
1 answer
118 views

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??


Marin Bratanov
Telerik team
 answered on 26 Jan 2018
1 answer
98 views

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

 

 

 

 

Eyup
Telerik team
 answered on 26 Jan 2018
1 answer
52 views

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

Dan
Top achievements
Rank 1
 answered on 25 Jan 2018
5 answers
172 views
Using Q2 2014.  If I receive the error:

uncaught TypeError: Cannot read property 'set_additionalQueryString' of null
WebResource.axd line 12175

The error occurs in the console (tested with Chrome and IE) when the DropDownList is changed (postback, but any postback will cause the problem).

Very specific case.  The following code will reproduce.  The failure appears to be related to RadEditor with shared toolbar (ToolProviderID). 
- Removing the shared toolbar resolves the issue.
- Disabling AJAX resolves the issue.
- Removing the Refresh button or removing it from AAX resolves the issue.

However, I need all of the above to be enabled.

<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>

Any help or direction would be greatful.  This error appears to be disabling pop-ups with RadWindow.
Alex
Top achievements
Rank 1
 answered on 25 Jan 2018
3 answers
1.3K+ views

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.

Attila Antal
Telerik team
 answered on 25 Jan 2018
4 answers
151 views

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

 

Alex Dybenko
Top achievements
Rank 2
 answered on 25 Jan 2018
4 answers
1.6K+ views
We know we have set what the available page size options were on a Radgrid before, but we can't find our code for it. 2012 version had a Pagesizes property, but that's not there on Q3 2011. Anyone remember what the correct way to control page sizes in Q3 2011 was?
Eyup
Telerik team
 answered on 25 Jan 2018
4 answers
383 views
Unless I'm trying things out incorrectly, it doesn't seem CloudUpload sets the content type upon successfully uploading a file to azure storage.

I looked into the custom azure provider item, but doesn't seem to be an option to set content type.  

Did I test this out wrong?  Is this a known bug?  Is there a workaround?
Pat
Top achievements
Rank 1
 answered on 25 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?