Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
76 views
Hi,

I'm just wondering if there is an opportunity to continue uploading large files even if you go to another page.
For instance, put the upload control on your master page, start uploading on one page and then go to another page, but see there the uploading progress.

Regards,
Al
Hristo Valyavicharski
Telerik team
 answered on 29 Nov 2013
1 answer
152 views
Hi guys,

I need to obtain an url from the server side and introduce it in a audio tag that is inside the LightBox. I register a JavaScript block from the server side and I want to open the LightBox when the page load, I call my RegisterJSOpenLightBox method on ItemCommand event.

The problem is It works for many browsers but not with IE9. In IE9 when I try to open the lightbox with javascript (lightBoxPlayer2.show();) cannot find the lightbox. I try to register with $(document).ready but it doesn't work.
Do you have any idea? I also used cstext2.Append("$(function() {"); .This is the error SCRIPT5007: Unable to get property 'show' of undefined or null reference 

Thank you very much

private void RegisterJSOpenLightBox(string urlFile)
{
    Type cstype = this.GetType();
    string csname = "OpenLightBox";
    ClientScriptManager cs = Page.ClientScript;
 
    if (!cs.IsClientScriptBlockRegistered(cstype, csname))
    {
        StringBuilder cstext2 = new StringBuilder();
        cstext2.Append("<script type=\"text/javascript\">");
        cstext2.Append("window.onload=function(e){");
        //cstext2.Append("window.load=function(e){");
        cstext2.Append("openLightboxPlayer('" + urlFile + "');");
        cstext2.Append("}</script>");
        cs.RegisterClientScriptBlock(cstype, "OpenLightBox", cstext2.ToString());
    }
}

function openLightboxPlayer(url) {
    var player = document.getElementById("AudioPlayer");
    player.src = url ;
    player.preload = "auto";
    // var lightBoxPlayer = $find('<= LightBoxPlayer.ClientID %>');
    // lightBoxPlayer.show();
    var lightBoxPlayer2 = $find('LightBoxPlayer').show();
    lightBoxPlayer2.show();
    return false;
}
<telerik:RadLightBox  ClientIDMode="Static"   ID="LightBoxPlayer" Width="500" Font-Size="Medium" runat="server"  Modal="true"  PreserveCurrentItemTemplates="true">
        <ClientSettings >
            <ClientEvents OnClosed="closeLightBox" />
            <AnimationSettings  HideAnimation="Resize" NextAnimation="Fade" PrevAnimation="Fade"  ShowAnimation="Resize" />
        </ClientSettings>
        <Items >
            <telerik:RadLightBoxItem  >
                <ItemTemplate >
                    <div style="margin:0px 10px">
                          <asp:Label ID="lblClientNamePlayer" Font-Bold="true" runat="server" ></asp:Label><br />
                          <asp:Label ID="lblAppDatePlayer" Font-Bold="true" runat="server" ></asp:Label>                      
                          <audio id="AudioPlayer" runat="server" style="width:100%; margin-top:12px " controls preload="auto">     
                          </audio>  
                          <div style="text-align:center">
                                <asp:Label ID="Label1"  Font-Bold="true" runat="server" >Click <asp:LinkButton ID="lnkDownloadAudio" runat="server" OnClick="DownloadAudio" Text="here"></asp:LinkButton> to download the recording  </asp:Label>                                  
                          </div>
                    </div>
                </ItemTemplate>
            </telerik:RadLightBoxItem>
        </Items>
    </telerik:RadLightBox>
Jose
Top achievements
Rank 1
 answered on 29 Nov 2013
5 answers
2.6K+ views
I see in FireBug the error: 

'SyntaxError: An invalid or illegal string was specified', 'http://localhost:63188/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2013.2.717.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ahe-IL%3a0507d587-20ad-4e22-b866-76bd3eaee2df%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3a4cacbc31%3a2003d0b8%3ae524c98b%3ae330518b%3ac8618e41%3ae4f8f289%3a11a04f7e%3a6b3f73b3%3a92fe8ea0%3afa31b949%3a874f8ea2%3a19620875%3a490a9d4e%3abd8f85e4%3a8e6f0d33%3a6a6d718d%3aa7e79140%3aaa288e2d%3ac172ae1e%3a9cdfc6e7', '1415'

My question how it is possible to understand where is the problem?
Marin
Telerik team
 answered on 29 Nov 2013
1 answer
90 views
I'm very happy with the file browser dialogs themselves, but I'm not so thrilled with the file upload dialog used there.

Is it possible to use a custom made file upload dialog with the file browser dialogs?
And if so, how would I accomplish this?
Vessy
Telerik team
 answered on 29 Nov 2013
1 answer
68 views
Hi ,

Please follow link for detailed issue. RadEditor IE autofocus issue

Thanks,
Francis P.
Ianko
Telerik team
 answered on 29 Nov 2013
3 answers
136 views
I have a gird  on ap a web page and on the grid is a GridDateTimeColumn I allow filtering I have it set as

<telerik:GridDateTimeColumn DataField="TradeDate" DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" FilterControlAltText="Filter TradeDate column" HeaderText="Trade Date" ReadOnly="True" SortExpression="TradeDate" UniqueName="TradeDate" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"  FilterControlWidth="110px"  EnableRangeFiltering="true" AutoPostBackOnFilter="true" ShowFilterIcon="false">
</telerik:GridDateTimeColumn>

This works fine but for some reason if the textbox next to the date time picker has focus and I hit the enter key it reloads the entire page.
Eric Klein
Top achievements
Rank 1
 answered on 29 Nov 2013
2 answers
99 views
Hello,

Background:
I'm using a RadTreeView within a custom module in DNN 7.

Problem:
When I click the browser's back button (probably in all browsers, but tested in Safari and Chrome with same results) and try to load nodes, I get a 500 err. The message is "Server.Transfer cannot be called in a Page callback." and the details are: "System.ApplicationException: Server.Transfer cannot be called in a Page callback." The stack trace is: 

[ApplicationException: Server.Transfer cannot be called in a Page callback.]
   System.Web.HttpServerUtility.Transfer(String path) +4699542
   DotNetNuke.Framework.PageBase.OnError(EventArgs e) +478
   System.Web.UI.Page.HandleError(Exception e) +164
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12290451
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12289981
   System.Web.UI.Page.ProcessRequest() +119
   System.Web.UI.Page.ProcessRequest(HttpContext context) +99
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +165

Has anyone ever seen this issue before?

Thanks,
SP




Nencho
Telerik team
 answered on 29 Nov 2013
5 answers
191 views
Hi,

I have placed 4 datetime pickers on a user control.

Click and open calander. Calander pops-up. Now when I Control + Click on any other date, it opens another window.

It is issue only on IE10 in compatibility mode. It does not happen on other browsers.
I have created a screen cast video to explain the issue and placed at..
http://www.youtube.com/watch?v=PdNFSde-zBg&feature=youtu.be

I have also copied the code below. 

Thanks to all who replies.

<tr>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate1" runat="server" TimeView-Columns="2" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate1" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate1" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate2" runat="server" TimeView-Columns="3" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate2" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate2" CssClass="std_white" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate3" runat="server" TimeView-Columns="3" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate3" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate3" CssClass="std_white" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate4" runat="server" TimeView-Columns="3" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate4" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate4" CssClass="std_white" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
</tr>
Deyan Enchev
Telerik team
 answered on 29 Nov 2013
1 answer
214 views
At the moment I got a RadGrid with NestedViewTemplate. In the NestedViewTemplate I show some specific deatail information of the grid item. Thats workin OK. But the SQL for gathering all the data for both the RadGrid and for the NestedViewTemplate is quit heavy.

What I would like to do is to only load the data for the NestedViewTemplate when it's expanded. Loading the data using a separate call to the database, this means that I can simplify the SQL for the RadGrid.

How and where can I get access to event that fired when the NestedViewTemplate expand. And how do I reach RadGrid dataitem to get an ID for calling the SQL for loading the detail data?

Anders Pedersen
Kostadin
Telerik team
 answered on 29 Nov 2013
1 answer
100 views
I'm wondering if i could find some suggestions here.

I have a radgrid with a couple thousand items. I need to process each of these items (on each time the page is loaded) and filter based on their processed status. Currently i load in a collection, process each item, remove items from the collection if needed, then bind it to the grid. in the item data bound event i update the item to show the processed status of that item.

Processing an item takes time, and processing thousands of items takes up to a minute or two. If i could just process the items in the item data bound event, then i would only be processing the items on the current page. Is there any way to remove an item from the item data bound and pull in another item from the next page? I need to keep the pages consistent so i need to keep 20 items (or whatever they choose per page) on the page.

If this is too hard to understand what i mean, i could try explaining again with an example if needed
Angel Petrov
Telerik team
 answered on 29 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?