This is a migrated thread and some comments may be shown as answers.

Jquery get_items() of RadListBox

3 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saquib
Top achievements
Rank 1
Saquib asked on 26 Apr 2013, 04:59 PM
Hello,

I struggling through an IE9 specific issue. 
I have RadListBox which I am trying to get its Client ID in Jquery. The way I am doing it is recommended on telerik.com.

var lstBusinessModel = $find("<%=lbBusinessModel.ClientID %>");
var items = lstBusinessModel.get_items();

HTML markup

<telerik:RadListBox ID="lbBusinessModel" Width="200px" Height="300px" OnClientSelectedIndexChanged="BusinessModelSelected" 
 runat="server"></telerik:RadListBox>

It works perfectly fine in Chrome, Firefox, IE8, IE7. The only browser it doesn't support is IE9.

Are you guys aware of this issue?
Can you guys please look into this one and provide me the solution.

Thanks,
Saquib.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Apr 2013, 04:30 AM
Hi,

You can use the approach mentioned in the following help article.
Using jQuery

Thanks,
Shinu
0
Saquib
Top achievements
Rank 1
answered on 30 Apr 2013, 09:37 PM
Hello Shinu,

I am using Sitefinity 5, Can you or someone from the Telerik team tell me how can I add script reference to the inherited master pages. 

I tried to add RadScriptManager with the required script references in the user control that I built, but it thrown an error saying that I cannot have more than one RadScriptManager in a page. So I am assuming that there is a RadScriptManager in the Master page (Page Template). But the Page Template that my page uses is an inherited one. This inherited page template is based on a master page which is not inherited, in other words, I can view the code. Guess what? there is no RadScriptManager is this master page. That should mean that the inherited master page has created RadScriptManager which is not accessible. 

Did I reach the correct conclusion?

Note: I don't have "Include RadScriptManager"  checked on my page level.

Thanks,
Saquib.
0
Jen Peleva
Telerik team
answered on 04 May 2013, 12:37 PM
Hello Saquib,

Can you try to add your scripts with a ResourceLinks control or a Javascript embed control? Here's some further reference:

http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/controls/utility-controls/resourcelinks-control

You will also find this blog post useful:

http://www.sitefinity.com/blogs/gabesumner/posts/gabe-sumners-blog/2011/09/01/how_to_use_jquery_and_other_javascript_libraries_in_sitefinity

Here's also a forum thread, where I have provided sample references with the ResourceLinks control.

http://www.sitefinity.com/devnet/forums/designing-styling/beginners-question
You can also use the JavaScriptEmbedControl (which is the javaScript widget from our toolbox):

<%@ Register Namespace="Telerik.Sitefinity.Web.UI.PublicControls" Assembly="Telerik.Sitefinity" TagPrefix="sf" %>
<sf:JavaScriptEmbedControl runat="server" ID="JavaScriptEmbedControl6" Url="http://ajax.microsoft.com/ajax/beta/0910/MicrosoftAjaxAdoNet.js"
    ScriptEmbedPosition ="Head">
</sf:JavaScriptEmbedControl>
<sf:JavaScriptEmbedControl runat="server" ID="JavaScriptEmbedControl1" Url="~/Scripts/MicrosoftAjaxTemplates.js"
    ScriptEmbedPosition ="Head">
</sf:JavaScriptEmbedControl>
<sf:JavaScriptEmbedControl runat="server" ID="JavaScriptEmbedControl2" Url="http://ajax.microsoft.com/ajax/beta/0910/MicrosoftAjax.js"
    ScriptEmbedPosition ="Head">
</sf:JavaScriptEmbedControl>

Regards,
Jen Peleva
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Saquib
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Saquib
Top achievements
Rank 1
Jen Peleva
Telerik team
Share this question
or