Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
335 views
Why there was any error saying "CheckedItems is not a member of Telerik.WebControls.RadComboBox" ?
Why there was an error saying "Checked is not a member of Telerik.WebControls.RadComboBoxItem" ?

            Dim collection As IList(Of RadComboBoxItem) = rcb.CheckedItems
            Dim intCheck As Integer = collection.Count

            For Each itm As RadComboBoxItem In collection
                If itm.Value = drName(strColumn) And Not (drName(strColumn) Is DBNull.Value) Then
                    itm.Checked = True
                    Exit For
                End If
            Next

my development tools were VS2010 using IIS 6.5 ASP 2.0
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2013
11 answers
636 views
I've got a problem I don't know quite how to resolve; I've used Telerik AJAX controls on other parts of the site, but since I've upgraded to a newer version (Q3) and reregistered the reference, this error keeps popping up in the designer:

Error creating template groups. Reason: System.InvalidCastException: [A]Telerik.Web.UI.RadGrid cannot be cast to [B]Telerik.Web.UI.RadGrid. Type A originates from 'Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'c:\Users\klemens\AppData\Local\Microsoft\Visual Studio\9.0\ProjectAssemblies\gm17spra01\telerik.web.ui.dll'. Type B originates from 'Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'c:\Users\klemens\AppData\Local\Microsoft\Visual Studio\9.0\ProjectAssemblies\e9yumfmq01\Telerik.Web.UI.dll'.

at Telerik.Web.Design.RadGridDesigner.get_GridComponent()
at Telerik.Web.Design.RadGridDesigner.get_TemplateGroups()

Whenever I upgrade to a newer release of Telerik, I always uninstall the controls first, then install a newer version, but the version numbers in this case match, so I don't quite know how two different project assemblies got into the project in the first place.
Pavlina
Telerik team
 answered on 29 Nov 2013
2 answers
109 views

in the Advanced form, whenever using the multiple ressources scenario (AllowMultipleValues = true), all the ressources are displayed in a single column (as shown in attached image).

This is OK if there is less than 3 or 4 possible ressources, but becomes pretty ugly whenever there is 10 or 15 potential ressources. Would it be possible to consider for a future release to add a parameter to display the ressources in several columns ?

Another possibility would be to display the ressources as a multiple selection combo or listbox (with checkboxes).





François

Francois MARTIN
Top achievements
Rank 2
 answered on 29 Nov 2013
3 answers
106 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
209 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.8K+ 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
137 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
94 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
194 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
149 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?