Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Is it possible to have dynamic page heights in a RadMultiPages, so that the tabpage height is automatically adjusted to the content of each indidual page?
(We're not loading external content.)
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2013
1 answer
126 views
I am displaying a radconfirm from javascript and I want to prevent the user from dragging/moving the confirm window. Is it possible to restrict this?

Thankyou
dan
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2013
1 answer
195 views

I am trying to find a solution to exclude the DetailItemTemplate from export to Excel and Word. 



I have tried the following code in the export onclick event and whilst debugging shows that whilst it does change visible to false for each item, the detail still appears in Excel and Word:

For Each item As GridDataItem In RadGrid1.MasterTableView.Items

item.DetailTemplateItemDataCell.Visible = False

Next

Me.RadGrid1.MasterTableView.ExportToExcel()


(Note by default without any additional code Export to CSV or PDF appears to be excluding the DetailItemTemplate)

 

Any idea?



Thanks



Glenn



Glenn
Top achievements
Rank 1
 answered on 30 Nov 2013
1 answer
162 views
Is it possible to fire an event when the radwindow is minimized?

Thankyou
dan
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2013
5 answers
315 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
604 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
95 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
91 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
175 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?