Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
248 views
I am trying to use $find to get the ID of a non-rad DropDownList.  The $find function returns null.

Is there something I am doing wrong?

Thanks for any help, the code follows. ~ Matt

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
    <div> 
 
        <script type="text/javascript"> 
            function RadComboBox1_OnClientSelectedIndexChanged(sender, args) { 
                //works: 
                var product = args.get_item(); 
                alert(product.get_text()); 
                //doesn't work: 
                var ddlControl = $find("<%= cboVA_IllustrationType.ClientID %>"); 
                var indexValue = ddlControl.selectedIndex; 
                var selectedValue = $find("<%= cboVA_IllustrationType.ClientID %>").options[indexValue].value; 
                alert(selectedValue); 
            } 
        </script> 
 
        <telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Web20" OnClientSelectedIndexChanged="RadComboBox1_OnClientSelectedIndexChanged"> 
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="Fixed Annuity" /> 
                <telerik:RadComboBoxItem runat="server" Text="Fixed Index Annuity" /> 
                <telerik:RadComboBoxItem runat="server" Text="Variable Annuity" /> 
                <telerik:RadComboBoxItem runat="server" Text="Immediate Annuity" /> 
                <telerik:RadComboBoxItem runat="server" Text="Term" Selected="true" /> 
                <telerik:RadComboBoxItem runat="server" Text="Universal Life" /> 
                <telerik:RadComboBoxItem runat="server" Text="Variable Universal Life" /> 
            </Items> 
        </telerik:RadComboBox> 
        <p> 
            <asp:DropDownList ID="cboVA_IllustrationType" runat="server"> 
                <asp:ListItem>Hypothetical</asp:ListItem> 
                <asp:ListItem Selected="True">Historical</asp:ListItem> 
            </asp:DropDownList> 
        </p> 
    </div> 
    </form> 
</body> 
</html> 
 

Matt
Top achievements
Rank 1
 answered on 23 Dec 2008
2 answers
92 views
Hi, All!

There is a grid layout problem with RadGrid in Firefox. Layout was set to fixed: <MasterTableView TableLayout = "fixed" >, each column had a fixed width in pixels: <telerik:GridBoundColumn HeaderStyle-Width="140px" >, grid width wasn't specified. It works fine in IE, but in FF the columns were scaled (widened) to the size of the container. It is strange, because the HTML looks properly:

<TABLE class=MasterTable_WebBlue id=ctl00_DefaultContent_Form2_GrdExtra_ctl00_Header style="TABLE-LAYOUT: fixed; OVERFLOW: hidden; BORDER-COLLAPSE: collapse; TEXT-OVERFLOW: ellipsis; empty-cells: show" cellSpacing=0 border=0>
<COLGROUP>
   <COL width="200px">
   <COL width="200px">
   <COL width="50px">
</COLGROUP>

It seems, some initializing script works improperly. Who have faced with widening in FF too?

Thanks!

Alexey
Top achievements
Rank 1
 answered on 23 Dec 2008
6 answers
190 views
Hi,
    How to remove the '+' sign of the last node from the tree view .
I took the help of the existing online example but is it is not working for me .

With Thanks & Regards
Manoj
Peter
Telerik team
 answered on 23 Dec 2008
1 answer
108 views
Hi,

Kindly advice how to remove Borders for RADEditor LITE WebPart? Are there any configuration changes to be done?

Thanks in advance for your help.

Warm Regards,
Satheesh
Stanimir
Telerik team
 answered on 23 Dec 2008
5 answers
181 views
Hi,
    I am at level 3 . How can I get the level 2, level 1 and level 0 value .
I tried with

Convert

.ToInt32(e.Node.Nodes[1].Value);

But is it giving error . Can you please tell me where I am doing  wrong ?

With Thanks & Regads
Manoj

 

Manoj
Top achievements
Rank 1
 answered on 23 Dec 2008
1 answer
93 views
Hi

I have hierarchical grid in which parent record consists of date ,goal ID,Target.
child record also consist of target ,date .
parent and child are two user controls binding in hierarchical rad grid.
where  i can add multiple records for a single parent record, before adding child record i need to check date shouldn't be greater than existing parent record date in client side .  very urgent

Any help appreciable.
Iana Tsolova
Telerik team
 answered on 23 Dec 2008
1 answer
51 views
Hi,

I am using a telerik heirachial grid in which parent and child records will be available . parent and child are two user controls .

For each parent record there will be multiple child records , In parent and child raddatepicker allowed ,
child raddatepicker date shouldn't be greater than parent raddatepicker date . i need to validate in client-side


Any help appreciable .

Thanks in advance
Iana Tsolova
Telerik team
 answered on 23 Dec 2008
1 answer
97 views
Sorry to ask this question, when I should spend the time to work it out myself, but I'm on a deadline and need to prove that the Telerik ASP.Net controls will work in an MVC environment.

So, how do I access a RadCalendar (in a View) from within my controller action. Am I right that I should be able to access it's state via a incoming parameter some how? 

Perhaps there is a post, or example, or article someone could point me to? I searched without success.

Thanks in advance.
 
Vlad
Telerik team
 answered on 23 Dec 2008
1 answer
174 views
Hi,
I am using RadEditor in my web application, in which i have to implement the following.
1. User  copy some PDF file contents (including Text, images and Table) and paste in RadEditor.
2. After pasting into RadEditor , the content of editor will be automatically saved into database as well as in MS Word file without any button click.

Thanks
Vikram
Georgi Tunev
Telerik team
 answered on 23 Dec 2008
2 answers
112 views
Hi

I am using RadDatePicker in my web application and I am using the following code snippet to execute database operation while selecting a date.   

<telerik:RadDatePicker runat="server"  ID="targetDatePicker" DbSelectedDate='12\2\2008' AllowEmpty="true" RadControlsDir="~/Control/RadControls/" OnDateSelected='<%#CreateCompleteDateRequest(123)%>'>

Note: Function CreateCompleteDateRequest(123) handle ajax code that updates the database.

However, it worked in OnClick() event. But we require the operation in OnDateSelected (after selecting a date from date picker).

Could you please share if you happen to know any resolution.

Thanks,
Dipankar Shakya
Dipankar
Top achievements
Rank 1
 answered on 23 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?