Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
hi,

my captcha not displayed image on deployed but only in IE
firefox and chrome it's ok ????

why ie not display image ?
thank's
Ch Perez
Top achievements
Rank 1
 answered on 26 May 2010
0 answers
142 views
After a long battle, I've gotten good, validating results with RADMENU asp.net AJAX at http://www.haymondlaw.com.  I'm going to share with you guys how it is done. 

There are three simple steps to getting your RADMENU working in DNN / DOTNETNUKE / DNN 5+

Step 1) Register the control

Thanks to this post, I learned how to properly write my declaration, which is included below: http://www.telerik.com/community/forums/dotnetnuke/skin-objects/looking-for-dnn-sample-skin-for-radmenu.aspx

Here is my declaration, exactly as it stands.  You place this, or a modified version to your liking in your skin.ascx.  In case you don't know, that document sits in your Portals/X/Skin folder (whatever your location is exactly) and gets parsed when you upload your skin.  Open your skin.ascx file.  If there is already an entry there for the classic version of RADMENU, remove it.  Next, add a line like this in next to the other similar looking entries, but don't overwrite one of the other ones accidentally. 

<%

@ Register TagPrefix="dnn" TagName="RADMENU" Src="~/DesktopModules/r.a.d.menu/RadMenu.ascx" %>

Part 2, Add RADMENUAJAX to your skin

You cannot get the results you want without seeing the link to the skinning whitepaper below.  Basically, you will add this info to where you call in your RADMENU into your skin.  With the classic version, you used to add these into the skin.xml, but not with ASP.NET AJAX version of RADMENU.  Below is a link to the Telerik whitepaper with all the good little things you can do in DNN with radmenu.  Everything from animations, separators, etc, etc. 

Now this is important:   I read that DotNetNuke wont parse this info properly.  So, you'll have to add it directly to your .ascx manually as I did.   Parse your skin out, go up and grab the ascx and edit this in.  Basically, it's better to just skin that way anyway.  Take a look at how mine looks seen below.

Telerik Skinning API whitepaper:  http://www.telerik.com/help/aspnet/menu/menu_apireference.html
 
<
dnn:RADMENUAJAX runat="server" EnableEmbeddedSkins="false" id="dnnRADMENU" Skin="Vista" ExpandAnimationType="InOutElastic" ExpandAnimationDuration="300" CollapseAnimationType="none" childGroupSeparator="*SkinPath*/Menu/dnn/img/child_sep.gif" childGroupSeparatorCssClass="childseparator" HeaderSeparator ="*SkinPath*/Menu/dnn/img/nav-sep.gif" HeaderSeparatorCssClass="headerseparator" />

Save the document and upload it back, refresh your site.  Should be working.

Part 3)  Let RADMENU AJAX FOR DNN see your style

In order for your solution to work, Telerik says you'd need to link to a properly named css file with the skin name.  Except, that isn't a good solution in DNN.  See, you cannot just go linking to external resources in your ascx skin because it will render outside of the header and your skin won't validate according to w3c standards. 

Instead, just include (combine) the CSS entries from your menu style document into your skin.css and comment the section so you can find it easily later. 

VERY IMPORTANT, the classes are SUFFIXED with the skin name. Suffix means FOLLOWING.  You can use the internal styles that are hidden away in the telerik UI DLL or make your own.  It can be named whatever you like, but you must suffix your classes with that name and that name must match what is set when you reference RADMENU (see step 2 below)

ex:  .RadMenu_Vista

.Radmenu goes before the underscore.  Now, RADMENU is using psudo classes, which are a little different than what you might be used to.  Have a look at my CSS below and you will see what I mean.

Here is a link describing all the styles that will absolutely work for you in DNN as they did for me:
http://www.telerik.com/help/aspnet-ajax/menu_appearancecssselectors.html

Here is the complete CSS code behind my menu, and yes, it sits in my skin.css. 

/* <RadMenu / Vista> */.RadMenu_Vista .headerseparator {background-image:url(Menu/dnn/img/nav-sep.gif);width:1px;height:50px;}
.RadMenu_Vista .rmLink {font-family:Tahoma;font-size:14px;font-weight:lighter;}

/* <Root items> */

.RadMenu_Vista  .rmVertical {width:248px;}
.RadMenu_Vista .rmLink {line-height: 38px; text-decoration: none; color: white; position: relative; display: inline-block !important; }
.RadMenu_Vista .rmLink:hover {line-height: 38px; text-decoration: none; color: yellow; position: relative; display: inline-block !important; background-image:url(Menu/dnn/img/navbg_hover.gif); }

/* </Root items> */

/* <Submenu items> */

.RadMenu_Vista  .rmVertical .rmSeparator {height: 1px; line-height: 1px; background-image:url(Menu/dnn/img/child_sep.gif);height:2px;background-repeat:no-repeat;margin-left:20px; }
.RadMenu_Vista .rmGroup {padding-bottom:50px;}
.RadMenu_Vista .rmGroup .rmLink {line-height:28px;}
.RadMenu_Vista .rmGroup .rmLink:hover,
.RadMenu_Vista .rmGroup .rmFocused .RadMenu_Vista  .rmGroup .rmExpanded {color: yellow; background-image:url(Menu/dnn/img/child_hov.gif); background-repeat:no-repeat; }
.RadMenu_Vista .rmVertical {background-image:url(Menu/dnn/img/child_back.gif); background-repeat:no-repeat; background-position: 0 14px; line-height:28px; width:248px;}
.RadMenu_Vista
.rmGroup .rmFirst {background-image:url(Menu/dnn/img/menu_top.gif); background-repeat:no-repeat; padding-top:15px;width:248px;}
.RadMenu_Vista .rmGroup .rmLast {background-image:url(Menu/dnn/img/menu_bottom.gif); margin-bottom:-15px; background position: 0 13px; background-repeat:no-repeat; width:248px; }

4) Images

If you pasted my code above and got this far and yet nothing, then you probably forgot to put up images for your menu or change the css above to refect background colors instead of images.  Get it done.

Now, time to make the sprite for this menu...  ;-)

 

 

 

 

 

 

 

 

 

Eric Pontbriand
Top achievements
Rank 1
 asked on 26 May 2010
2 answers
144 views
Hi,
I am new to telerik. I have a TabStrip control in a web content page. I need to add several user controls dynamically to each tab. They need to be added after the pageview is created so I can't use the dynamic control load example in the demos as this assumes you are only adding the control at the time the pageview is created. I can add the user controls at page_load and it works fine and postback is ok. However, when I add any controls via my "NEXT" button the control only persists until the next postback.

How can I persist these user controls through a postback?

My ASPX snippet:

<

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>

 

 

 

 

<div id="RadTabDiv">
<telerik:RadTabStrip Style="position: absolute; top: 84px;" ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" Height="100%" Width="100%">

 

 

 

<Tabs>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage Style="position: absolute; top: 134px;" ID="RadMultiPage1" runat="server" SelectedIndex="0">

 

 

<telerik:RadTextBox Runat="server">

 

 

</telerik:RadTextBox>

 

 

</telerik:RadMultiPage>

 

 

</div>

 

 

<div id="Next" style="padding: 20px; float:right">

 

 

<asp:Button ID="btnNext" runat="server" Text="Next" CssClass="Button" />

 

 

</div>

 

 

One of the user controls I am adding:

<%

@ Control Language="vb" AutoEventWireup="false" CodeBehind="QuestionTextbox.ascx.vb" Inherits="CSS.QuestionTextbox" %>

 

<%

 

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 

<div style="height:50px">

 

 

 

<asp:Label ID="lblQuestion" runat="server" Text="Question:"/>

 

 

<asp:Label ID="lblQuestionText" runat="server" Text="??????"/>

 

 

<br />

 

 

<telerik:RadTextBox ID="txtAnswer2" runat="server" Width="200"/>

 

 

<telerik:RadComboBox Runat="server"></telerik:RadComboBox>

</

 

 

div>
My Code behind (if it helps). In this example I am hardcoding the Tabs and usercontrols but in the final app these will be dynamically generated via a list held in external data.

 

 

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

    If Not Page.IsPostBack Then

        AddTab(

"General")

 

 

 

        AddTab(

"Check Nearby SCNs")

 

 

    End If

         AddControls()

 

End Sub

 

 

 

 

 

 

Private Sub AddTab(ByVal tabName As String)

    Dim tab As New RadTab()

    tab.Text = tabName

    RadTabStrip1.Tabs.Add(tab)

 

 

 

    Dim pageView As New RadPageView()

    pageView.ID = tabName

    RadMultiPage1.PageViews.Add(pageView)

 

 

 

End Sub

 

Private Sub AddControls()

    Dim ProcessID As Integer = 20

    Dim TaskID As Integer = 10

    Dim Pageview As RadPageView = FindControl("ctl00$ContentPlaceHolder1$General")

    Dim ucQuestion As UserControl = Page.LoadControl("UserControls/QuestionTextbox.ascx")

 

    ucQuestion.ID =

 

"uc" & ProcessID & TaskID

 

 

 

 

 

    Dim lblQuestionText As Label = ucQuestion.FindControl("lblQuestionText")

    lblQuestionText.Text =

 

"What is your name?"

 

    Pageview.Controls.Add(ucQuestion)

    TaskID = 20

 

    Dim ucQuestion2 As UserControl = Page.LoadControl("UserControls/Statement.ascx")

    ucQuestion2.ID =

 

"uc" & ProcessID & TaskID

 

 

    Pageview.Controls.Add(ucQuestion2)

    TaskID = 30

 

 

 

    Dim ucQuestion3 As UserControl = Page.LoadControl("UserControls/QuestionDropdown.ascx")

    ucQuestion3.ID =

 

"uc" & ProcessID & TaskID

 

 

    Pageview.Controls.Add(ucQuestion3)

    TaskID = 50

 

 

 

    Dim txt1 As New TextBox

    txt1.Text =

 

"THIS IS THE TEXT"

 

    Pageview.Controls.Add(txt1)

 

    Dim Pageview2 As RadPageView = FindControl("ctl00$ContentPlaceHolder1$Check Nearby SCNs")

    TaskID = 40

 

 

 

 

    Dim ucQuestion4 As UserControl = Page.LoadControl("UserControls/QuestionTextbox.ascx")

    ucQuestion4.ID =

 

"uc" & ProcessID & TaskID

 

 

    lblQuestionText = ucQuestion4.FindControl(

 

"lblQuestionText")

 

 

    lblQuestionText.Text =

 

"What is your name?"

 

 

 

    Pageview2.Controls.Add(ucQuestion4) 

 

 

    Dim btnNext As Button = FindControl("ctl00$ContentPlaceHolder1$btnNext")  

    btnNext.Enabled = 

 

True

 

 

 

End Sub

 

 

 

 

Protected Sub btnNext_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnNext.Click

 

 

 

    Dim Pageview As RadPageView = FindControl("ctl00$ContentPlaceHolder1$General")

 

 

 

    Dim ucQuestion As New UserControl

 

    ucQuestion = Page.LoadControl(

 

"UserControls/QuestionTextbox.ascx")

 

    ucQuestion.ID =

 

"uc" & Now

 

 

 

    Dim lblQuestionText As Label = ucQuestion.FindControl("lblQuestionText")

 

    lblQuestionText.Text =

 

"Time is: " & Now

 

    Pageview.Controls.Add(ucQuestion)

 

End Sub

 

 

 

 

 

 



Thanks
Dave
Dave Isackson
Top achievements
Rank 1
 answered on 26 May 2010
5 answers
372 views
I am attempting to add a customised DetailTable to my RadGrid, but can't seem to get it working. I have tried two approaches so far with no luck.

1. Use another RadGrid within a NestedViewTemplate. The problem with this is hooking up the Parent/Child Relationship - I can't seem to get this happening properly as when you expand the row SelectedIndexChanged isn't fired. Any ideas?
2. Use a DetailTable alongside/inside a NestedViewTemplate. I could only get one or the other working, don't think this is possible.

Therefore, how am I supposed to show a DetailTable with extra stuff around it (basically some more data bound fields from the parent record that isn't shown in the row itself)?

Surely this would be functionality that is used quite frequently but I can't seem to find a demo or forum post exactly addressing this.
Ken
Top achievements
Rank 1
 answered on 26 May 2010
1 answer
107 views
I've been trying to modify the Image Manager in two ways. I'd like to remove the "New Folder" option and remove the link to the image editor because we don't want our users to have access to these functions. How can I do this in Sharepoint 2007? Everything I read about mentions the RadTools directory and ImageManager.ascx, neither of which I can find. Thanks!
Jefftheman45
Top achievements
Rank 1
 answered on 26 May 2010
18 answers
1.0K+ views
Hi there,

I'm working on small form where I use Javascript to validate form's elements through asp.net custom validator.

I was trying to read selected item value from RadCombo box but all my tries didn't help finding out the solution, I used below methods.

1. var xCombo = document.getElementById(<%=RadcomboBox1.ClientID%>);
var xItem = XCombo.GetValue();

and tried

2. var xCombo = document.getElementById(<%=RadcomboBox1.ClientID%>);
var xItem = XCombo.get_text();

unfortunately it didn't work. However if I place the second code in OnClientIndexChanging script it works perfectly and Javascript retrieve ComboBox selected item successfully. but I dont want to use such function because it requires Events args and Sender parameters.

I really need help since i'm stuck with this for hours now
loai taha
Top achievements
Rank 1
 answered on 26 May 2010
4 answers
201 views
I currently have a webpage that Inherits from a basePage class. Within the basePage class, I have some code to register an event handler for all unhandled errors on the web page, as seen below :

  protected override void OnInit(EventArgs e){
      // Trap any unhandled exceptions and log them.
      Error += BasePage_Error;
      base.OnInit(e);
    }

  private void BasePage_Error(object sender, EventArgs e){
      Exception ex = Server.GetLastError();
      int errorID = LogException(ex);
      Server.ClearError();
      Response.Redirect(Page.ResolveUrl(string.Format("~/Error.aspx?ReferenceNumber={0}", errorID)));
    }


The problem comes in after I add in an RadAjax panel to the main page and surround my current form with the AjaxPanel. If some unhandled error ends up going to BasePage_Error routine, when it goes to the Response.Redirect line I get the following javascript error on the browser:

Line: 4723
Error: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.

The Response.Redirect command is somehow causing issues, but only when I have the AjaxPanel on the page. If I remove the panel, and run into the same issue, the Response.Redirect line works perfectly. Does anyone have an idea on what I can be doing wrong, or how to fix this issue?
Kevin Kess
Top achievements
Rank 1
 answered on 26 May 2010
2 answers
242 views
i keep getting this error at random times. it's rarely with the same file and I can't seem to get it to happen consistently. I have no idea why it is happening but whenever it does it freezes the upload.

it happens at this line of code

"if(c(o.rowElement).parents().length==0){return;0}"

inside the telerik control's web resource
Daniel Gioulakis
Top achievements
Rank 1
 answered on 26 May 2010
2 answers
259 views
I'm trying to get a reference to a RadComboBox with a nested RadTreeView inside of a RadGrid.  I've been following your example at http://www.telerik.com/community/forums/aspnet-ajax/grid/client-side-find-control-problem.aspx which suggests using the findControl method: 

var comboBox = $telerik.findControl(parentElement, "RadComboBox1");

but this method is only returning a reference to the first instance of the combobox in the grid, not the selected record.  Seems like it would be pretty useless without someway of detecting the selected record but I cannot find any examples of how to do this.  I've tried getting a handle on the selected_Items() of the grid but that isn't working for me either.  I'm not the best at javascripting so it could be a syntax issue. 

Here's my sample script.  Currently, this code just updates the combo box text in the first row of the grid, regardless of which combobox/row i'm selecting from.  The function that's failing is nodeClicking().  Any assistance would be greatly appreciated:

 

<script type="text/javascript">  
 
function RowDblClick(sender, eventArgs) {  
 
sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());  
 
}  
 
 
 
function nodeClicking(sender, args) {  
 
if (sender.get_id().indexOf("tvAdjCategory") != -1) {  
 
var comboBox = $find("<%= cboAdjCategory.ClientID %>");  
 
}  
 
else {  
 
var radGrid = $find('<%= gvWalletTransactions.ClientID %>');  
 
var comboBox = $telerik.findControl(radGrid.get_element(), "cboCategory");  
 
}  
 
 
var node = args.get_node()  
 
comboBox.set_text(node.get_text());  
 
comboBox.trackChanges();  
 
comboBox.get_items().getItem(0).set_value(node.get_text());  
 
comboBox.commitChanges();  
 
comboBox.hideDropDown();  
 
}  
 
function StopPropagation(e)  
 
{  
 
if(!e)  
 
{  
 
e = window.event;  
 
}  
 
e.cancelBubble = true;  
 
}  
 
 
function OnClientDropDownOpenedHandler(sender, eventArgs) {  
 
if (sender.get_id().indexOf("cboAdjCategory") != -1) {  
 
var treeName = "tvAdjCategory";  
 
}  
 
else {  
 
var treeName = "tvCategory";  
 
}  
 
 
var tree = sender.get_items().getItem(0).findControl(treeName)  
 
var selectedNode = tree.get_selectedNode();  
 
if (selectedNode)  
 
{  
 
selectedNode.scrollIntoView();  
 
}  
 
}  
 
function OnLoad(sender, args) {  
 
var combo = sender;  
 
var input = combo.get_inputDomElement();  
 
input.onkeydown = onKeyDownHandler;  
 
}  
 
function onKeyDownHandler(e) {  
 
if (!e)  
 
e = window.event;  
 
// handle all keys except tab (keycode 9) other keys can be captured   
 
if (e.keyCode != '9') {  
 
e.returnValue = false;  
 
if (e.preventDefault) {  
 
e.preventDefault();  
 
}  
 
}  
 
}   
 
 
</script> 
 

 

Here's a sample of my grid:

 

 <telerik:RadGrid ID="gvWalletTransactions" runat="server" AllowSorting="True" meta:resourcekey="gvTransactions" 
                    AutoGenerateColumns="False" skin="Vista" font-size="X-Small" GridLines="None"   
                    AllowPaging="True">                                          
                        <MasterTableView DataKeyNames="TransactionID" GridLines="Both">  
                            <Columns> 
                                <telerik:GridBoundColumn DataField="TransactionID" Display="False"   
                                    HeaderText="TransactionID" UniqueName="TransactionID" Visible="False">  
                                </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn DataField="TransactionDate" HeaderText="Date"   
                                    UniqueName="TransactionDate">  
                                    <ItemTemplate> 
                                        <telerik:RadDatePicker ID="dtDate" runat="server" AutoPostBack="True" Skin="Vista" 
                                            Culture="English (United States)" ShowPopupOnFocus="True" Width="60px"   
                                            SelectedDate='<%# Bind("TransactionDate", "{0:d}") %>' EnableEmbeddedBaseStylesheet="False" CssClass="TextBoxAsLabel" > 
                                            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"   
                                            ShowRowHeaders="false" FirstDayOfWeek="Sunday" /> 
                                            <DatePopupButton visible="False" HoverImageUrl="" ImageUrl="" /> 
                                            <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy"   
                                                EnableEmbeddedBaseStylesheet="False" CssClass="TextBoxAsLabel"  AutoPostBack="True" SelectionOnFocus="SelectAll">  
                                            </DateInput> 
                                        </telerik:RadDatePicker> 
                                    </ItemTemplate> 
                                    <ItemStyle HorizontalAlign="Center"/>  
                                </telerik:GridTemplateColumn> 
                               <telerik:GridTemplateColumn DataField="Description" HeaderText="Description"   
                                    UniqueName="Description">  
                                    <ItemTemplate> 
                                        <Telerik:RadTextBox ID="txtDescription" runat="server"  width="250px" 
                                            Text='<%# Bind("Description") %>' CssClass="TextBoxAsLabel" Skin="Vista" 
                                            EnableEmbeddedBaseStylesheet="False" SelectionOnFocus="SelectAll" /> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                               <telerik:GridTemplateColumn DataField="Amount"   
                                    HeaderText="Amount" UniqueName="Amount" SortExpression="Amount">  
                                    <ItemTemplate> 
                                        <telerik:RadNumericTextBox ID="txtAmount" Runat="server" Skin="Vista" 
                                        Culture="English (United States)" Type="Currency" SelectionOnFocus="SelectAll" 
                                        Value='<%# Bind("Amount", "{0:C}") %>' CssClass="TextBoxAsLabel" Width="50px">  
                                        </telerik:RadNumericTextBox> 
                                    </ItemTemplate> 
                                    <ItemStyle HorizontalAlign="Center"/>  
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn HeaderText="Category" UniqueName="Category" > 
                                    <ItemTemplate> 
                                        <telerik:RadComboBox ID="cboCategory" runat="server" Skin="Vista" 
                                        OnClientDropDownOpened="OnClientDropDownOpenedHandler"   
                                        meta:resourcekey="cboCategory" Width="110px" DropDownWidth="200px">  
                                            <ItemTemplate> 
                                                <telerik:RadTreeView ID="tvCategory" runat="server" Skin="Vista" 
                                                OnClientNodeClicking="nodeClicking" > 
                                                </telerik:RadTreeView> 
                                            </ItemTemplate> 
                                            <Items> 
                                               <telerik:RadComboBoxItem Value="0"/>  
                                           </Items> 
                                        </telerik:RadComboBox> 
                                    </ItemTemplate> 
                                    <ItemStyle Wrap="False" HorizontalAlign="Center"/>  
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn HeaderText="Project" UniqueName="Project"   
                                    DataField="Project">  
                                     <ItemTemplate> 
                                        <telerik:RadComboBox runat="server" ID="cboProject" Skin="Vista" DropDownWidth="200px" 
                                        meta:resourcekey="cboProject" AppendDataBoundItems="true" Width="100px">  
                                            <Items> 
                                                <telerik:RadComboBoxItem Value="0" /> 
                                            </Items> 
                                        </telerik:RadComboBox> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="Account" HeaderText="Account"   
                                    DataField="ToFromAccount">  
                                    <ItemTemplate> 
                                        <telerik:RadComboBox runat="server" ID="cboAccount" Skin="Vista" Width="100px" 
                                        DropDownWidth="200px" meta:resourcekey="cboAccount" AppendDataBoundItems="true" > 
                                            <Items> 
                                                <telerik:RadComboBoxItem Value="0" /> 
                                            </Items> 
                                        </telerik:RadComboBox> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn DataField="Flagged" UniqueName="Flagged">  
                                    <ItemTemplate> 
                                        <asp:ImageButton ID="btnFlagged" runat="server" meta:resourcekey="btnFlagged" onclick="imgFlagged_Click" /> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                            </Columns> 
                            <EditFormSettings UserControlName="~/TransactionPages/UserControls/TransactionDetail.ascx" EditFormType="WebUserControl"/>  
                            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" Font-Italic="False" Font-Overline="False" Font-Size="Medium" Font-Strikeout="False" Font-Underline="False" /> 
                        </MasterTableView> 
                        <ClientSettings EnableRowHoverStyle="True">  
                            <Selecting AllowRowSelect="True" /> 
                            <ClientEvents OnRowDblClick="RowDblClick" /> 
                        </ClientSettings> 
                    </telerik:RadGrid>   

Aimee Rasmussen
Top achievements
Rank 1
 answered on 26 May 2010
3 answers
133 views
I wish to disable a combobox and all its items using client side script. I've read all the documentation about how I should do this but whenever I try to call the disable() method I get an error saying that the method does not exist.

I am getting the reference to the ComboBox by calling document.getElementById("<% = combo.ClientID %>") but I notice that in your examples you are using a function called $find which appears to be undocumented as I can find no description of it anywhere on the web.

If I try to use this instead of getElementByID it always returns null.

Please could you explain to me the difference between $find and getElementById and how I can get this to work.

I have tried enclosing the script in a RadScriptBlock but it made no difference.

I am using version 2008.3.1314.35 of the Rad Ajax Components

Bob Boffin
Veronica
Telerik team
 answered on 26 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?