Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
50 views

Hi,

I have old version of Telerik controls (ProductVersion: 2008.03.1125.20) but maybe you know something about this problem.

I have on my page:

<telerik:RadFileExplorer ID="fileExp" runat="server">
    <configuration viewpaths="~/Documents" uploadpaths="~/Documents" deletepaths="~/Documents">
</configuration>
</telerik:RadFileExplorer>

Creating folders, renaming and deleting is working, deleting files also but when I rename file, it is moved (with new name)
to folder '~/' (outside ~/Documents). What is wrong?
Adrian
Top achievements
Rank 1
 answered on 13 Feb 2012
4 answers
229 views
Need some help...

Here's the js to open my rad window (working great)
function GetRadWindow(){ 
   var oWindow = null
   if (window.radWindow) oWindow = window.radWindow; 
   else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
   return oWindow; 
 
function OpenRadWindow(url, modal, width, height, name, cancelReturnValue, title, refresh, refreshElement, onClose) { 
    var oManager = GetRadWindowManager(); 
    if (oManager == null) { 
        alert("No Rad manager is available"); 
        return
    } 
    Wnd = oManager.open(url, name); 
    Wnd.setSize(width, height); 
    Wnd.set_title(title); 
    Wnd.setActive(true); 
    Wnd.SetModal(true); 
    Wnd.set_showContentDuringLoad(true); 
    Wnd.center(); 
    Wnd.refresh = refresh; 
    Wnd.cancelReturnValue = cancelReturnValue; 
    Wnd.returnValue = cancelReturnValue; 
    if (onClose!=null) Wnd.add_close(onClose); 
    if (refreshElement==null) refreshElement = "custom"
    Wnd.refreshElement = refreshElement; 

Here's my code that SHOULD be firing when the window closes:

<telerik:RadCodeBlock ID="cb1" runat="server"
    <script type="text/javascript"
        function refreshCustomFields(sender,eventArgs) 
        { 
          var ajaxManager = $find("<%= rapCustom.ClientID%>"); 
          ajaxManager.ajaxRequest(eventArgs); 
        } 
    </script> 
</telerik:RadCodeBlock>  

So, window opens great, when I close it, it should fire the "refreshCustomFields" JavaScript method which in turn will trigger an AjaxRequest on my RadAjaxPanel.  However, I get the following error in Firefox:

Error: a[b] is not a function 
Source File: http://localhost:64113/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2 
Line: 6 

And this error in IE 8 (Windows 7)
Webpage error details 
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) 
Timestamp: Wed, 28 Oct 2009 21:14:42 UTC 
 
 
Message: Function expected 
Line: 6 
Char: 29366 
Code: 0 
URI: http://localhost:64113/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2 

The client script "refreshCustomFields" is in the source and the add_close(onClose) gets called and set properly when the window opens (JavaScript debugger).  But I get errors when I close the window.  Any help would be appreciated.



Dev
Top achievements
Rank 1
 answered on 13 Feb 2012
5 answers
515 views
Hi,
I have scenario where i need to have  <telerik:GridImageColumn > inside rad grid. On click of this image i need to open radwindow or any .aspx.
How can i achieve this functionality.Below is the sample code.
 
     <telerik:RadGrid ID="rdGrdBudgetAssignment" runat="server" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="20"
     GridLines="None" Width="95%">
     <PagerStyle Mode="NextPrevAndNumeric" />
     <MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" CommandItemDisplay="Top">
      <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
      <CommandItemSettings ExportToExcelText="Export To Excel" ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />
      <Columns>
      <telerik:GridImageColumn ImageUrl ="../Images/SortAsc.gif"></telerik:GridImageColumn>
      <telerik:GridImageColumn ImageUrl="../Images/SortDesc.gif"></telerik:GridImageColumn>
      </Columns>
     </MasterTableView>
      <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true"  >
     <Resizing AllowColumnResize="true" />
     </ClientSettings>
     </telerik:RadGrid>

Regards,
Akki
Casey
Top achievements
Rank 1
 answered on 13 Feb 2012
2 answers
163 views
Is it possible to hide the (de)select-all checkbox in the radgrid header and place a generic checkbox with similar functionality outside the radgrid?
monte
Top achievements
Rank 1
 answered on 13 Feb 2012
3 answers
309 views
hi telerik,

         i am using codes from  http://www.telerik.com/help/aspnet-ajax/ajax-show-loadingpanel-on-initial-pageload.html  link to show loading panel .  since i am using master-content page , i have to make little change in the code as below

In Master Page

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function pageLoad(sender, eventArgs) {
                if (!eventArgs.get_isPartialLoad()) {
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("InitialPageLoad");
                    if (window.contentPageLoad) {
                        window.contentPageLoad(sender, eventArgs);
                    }
                }
            } 
        </script>
    </telerik:RadCodeBlock>
    <div>
        <telerik:RadAjaxManager ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
            DefaultLoadingPanelID="RadAjaxLoadingPanel1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black">
            Loading.........
        </telerik:RadAjaxLoadingPanel>
        <asp:Panel ID="Panel1" runat="server">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
        </asp:Panel>
    </div>
    </form>
</body>


In Content Page

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
 
            function contentPageLoad(sender, eventArgs) {
                alert("i am from content page");
 
                // on pageLoad doing lot of stuffs for example
                document.getElementById("<%= Label1.ClientID %>").innerHTML = "hello"
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxPanel runat="server" ID="ajaxPanel">
       <%--  all controls will be residing inside the ajax panel--%>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </telerik:RadAjaxPanel>
</asp:Content>


  
now the problem is on page load the ajaxrequest starts and the contentPageLoad() assigns value to the label, but when the ajaxrequest ends the value assigned through 
contentPageLoad() is refreshed . Please Help Me.
 
Antonio Stoilkov
Telerik team
 answered on 13 Feb 2012
1 answer
117 views
Hi, 

I'm trying to bind data with knockout to RadComboBox, but without any progress for now. This is situation that I have

<table data-bind="foreach: MyModel"><br>
<tr>
<td>
<telerik:RadComboBox runat="server" DataTextField="Name"
DropDownWidth="240" DataValueField="Value" Width="100" AppendDataBoundItems="true"
</telerik:RadComboBox>
</td>
</tr>
</table>


How can I populate this radcombobox because right now it seams impossible :(

When this code is rendered I get same ID for all RadComboBox controls, and drop down event don't work (When I click on it)
Cat Cheshire
Top achievements
Rank 1
 answered on 13 Feb 2012
2 answers
73 views
xx
Erik
Top achievements
Rank 2
 answered on 13 Feb 2012
1 answer
106 views
Hi,

I have a problem with telerik client-side on older computer. When I test my page on older notebook with atom and 4GB Ram, telerik need 10seconds for initialize JS. I send screen from HttpWatch. When I use notebook with intel i7 and 8GB ram all is ok, and telerik need 1-2s. Is possible reduce telerik scripts? Can I do something for faster initialize?
I see forum and try some telerik optimization, but nothing help me.

Thanks for answer.

Regards
Roman Krsko
Marin
Telerik team
 answered on 13 Feb 2012
5 answers
410 views
Hi,

I would like to close all rows that are in edit-mode when i click on edit one another row. That way i can only edit one row at a time (locks better).

I would also like this to work the same way when i insert a new row.

How do i do that?
Vasssek
Top achievements
Rank 1
 answered on 13 Feb 2012
3 answers
147 views
i am new to radcontrol, and I would like to ask how can I use AJAX Panel to change the contentplaceholder?
For example, user will click on the button (placed inside the masterpage), and the ajax panel will load and refresh the content place holder.
Maria Ilieva
Telerik team
 answered on 13 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?