Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.3K+ views
Hello,

I am in the process of building a control that registers some javascript after each postback (regular or ajax).  This is done in the PreRender event of the control and looks something like this:

ScriptManager.RegisterStartupScript(this, this.GetType(), this.ClientID + "_SplitterBarStartupScript", sb.ToString(), true);  
 

This works fine both when using no Ajax panel at all and also when using the ASP.NET UpdatePanel.  After each postback the script is injected correctly and runs.  This doesn't work with the RadAjaxPanel though.

I did some testing and found that RegisterClientScriptBlock does fire with the RadAjaxPanel after each postback.  I do not want to use this however because the script is injected before the elements have been loaded (too early).

I have also seen suggestions on the forum to use the RadAjaxPanel's ClientScripts collection.  This will also not work for me because this is a custom control and doesn't know what other controls are included on the page.

I would like this to work in all 3 scenarios: regular postback, ASP.NET UpdatePanel and RadAjaxPanel.

Please advise as to how I should proceed.

Thanks,
Kevin
sahil
Top achievements
Rank 1
 answered on 18 Nov 2010
1 answer
86 views
Hi - I have a rotator with some text in it. The text needs to be bold. It looks fine in other browsers but after the first scroll, IE renders the text really badly - almost unreadable.

Any ideas why and how to fix it?
Fiko
Telerik team
 answered on 18 Nov 2010
4 answers
162 views
I'm looking for Grid-Like behaviour and functionality on the client side. I want an easy way to extract data values from a tree list data item, similar to the way you do it in a grid:

var treeList = $find("<%= treeList.ClientID %>");
var item = treeList.get_selectedItems()[0];
var selectedID = item.getDataKeyValues("someDatabaseID");

It would be great if we could bind client data keys to the tree list without declaring them as columns (just like on a radgrid).
Nikolay Rusev
Telerik team
 answered on 18 Nov 2010
1 answer
120 views
I assume this is something stupid I've missed but I'm missing it.  In my local development machine (Running the VS Dev Web Server) the upload control looks great, see localdev.png.  But when I push the project out to my production server that is IIS7 on Windows 2008, it's like it can't render the CSS.  See prodIIs7.png attached.

There is a script error in the browser (IE7):
URI: http://domain.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=scriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afab31106-1bd6-4491-9a14-59e0fc4a7081%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.519.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afcd44c12-f50d-4937-b05d-1aa46b5c5b3e%3a16e4e7cd%3a86526ba7%3a68f76a79%3af7645509%3a24ee1bba%3aa585d0d4%3a874f8ea2%3a2a2fc429

Message: 'Sys' is undefined

Any ideas?
Yana
Telerik team
 answered on 18 Nov 2010
3 answers
220 views
I have a tabstrip whose name is highlighted below. When I try and get the selected tab I'm on, the value comes back null. I know I am on a tab, because that is where the data entry is taking place. The selectedTab variable is supposed to be coming back with a value.

What am I doing wrong?

html
------------
<telerik:RadTabStrip ID="tsCoding" runat="server" Align="Left" MultiPageID="RadMultiPage1"
                                                                                    OnClientTabSelected="tsCoding_OnClientTabSelected" AutoPostBack="false" CausesValidation="false"
                                                                                    ScrollButtonsPosition="Right" BackColor="Gray">

<Tabs>
                                                                                        <telerik:RadTab Text="<u>C</u>hart" AccessKey="C" PageViewID="pvChart">
                                                                                        </telerik:RadTab>
                                                                                        <telerik:RadTab runat="server" id="tbEMTool" Text="E/M <u>T</u>ool" AccessKey="T"
                                                                                            PageViewID="pvTreatMent" Enabled="false">
                                                                                            <Tabs>
                                                                                                <telerik:RadTab Text="Treatme<u>n</u>t" AccessKey="N" PageViewID="pvTreatMent" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="Comple<u>x</u>ity" AccessKey="X" PageViewID="pvComplexity"
                                                                                                    Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="<u>R</u>esult" AccessKey="R" PageViewID="pvResult" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="<u>H</u>istory" AccessKey="H" PageViewID="pvHistory" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="<u>E</u>xam" AccessKey="E" PageViewID="pvExam" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="<u>S</u>ummary" AccessKey="S" PageViewID="pvSummary" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                            </Tabs>
                                                                                        </telerik:RadTab>
                                                                                        <telerik:RadTab Text="P<u>Q</u>RI" AccessKey="Q" id="tbPQRI" Enabled="false">
                                                                                            <Tabs>
                                                                                                <telerik:RadTab Text="<u>A</u>cute MI" AccessKey="A" PageViewID="pvAcuteMI" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="Chest <u>P</u>ain" AccessKey="P" PageViewID="pvChestPain" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="S<u>y</u>ncope" AccessKey="Y" PageViewID="pvSyncopy" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                                <telerik:RadTab Text="Pne<u>u</u>monia" AccessKey="U" PageViewID="pvPneumonia" Enabled="false">
                                                                                                </telerik:RadTab>
                                                                                            </Tabs>
                                                                                        </telerik:RadTab>
                                                                                    </Tabs>
                                                                                </telerik:RadTabStrip>


js
--

 

var tsCoding = $find("<%= tsCoding.ClientID %>");

 

 

var selectedTab = tsCoding.get_selectedTab();

 

 

if (selectedTab != null) {

 

Yana
Telerik team
 answered on 18 Nov 2010
4 answers
243 views
Hi,

My RadComboBox is positioned at the bottom of the page. The DropDown is opened to the top of the arrow, so that is correct. But the height of the DropDown is automatically only about 100px, while there are more than 20 ComboBox items in the list.

Is it possible to set the height of the DropDown (server side ór client side)?

Thx,
Danny
Danny Scheelings
Top achievements
Rank 1
 answered on 18 Nov 2010
1 answer
106 views
Do I need to have an <asp:Panel ...> </asp:Panel> in order for the RadAjaxManager to work?
Shinu
Top achievements
Rank 2
 answered on 18 Nov 2010
2 answers
90 views
Does the Rad Editor support inline HTML images per RFC 2557?

Meaning, that you can specify images as follows: 

<img src="data:image/png;base64,actual bytes of image go here/>

Cheers,

Daniel
Daniel
Top achievements
Rank 1
 answered on 18 Nov 2010
1 answer
89 views
Hi, My custom dialogs just stop working, my code is exactly like http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx ,
when i click in the custom dialog button show me an error "the command xxx is not implemented yet"
Rumen
Telerik team
 answered on 17 Nov 2010
2 answers
130 views
Hello,

I would like to replace the Timeline Button with an Add Button. When the add button is selected I'd like to bring up the new appointment dialog.

Thanks,

Scott
Scott
Top achievements
Rank 1
 answered on 17 Nov 2010
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?