Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
I am trying to get the rotator working correctly.  The first image it shows is aligned perfectly, but after the first animation, the image is shifted 1 pixel to the right and no longer lines up with everything else in that div.  Is that normal, and how do I fix it?  Like I said, the first image displayed is aligned properly.

baffeled.....

Rich
Fiko
Telerik team
 answered on 28 Aug 2009
2 answers
300 views
I have to add in children nodes to a RadTreeNode in JavaScript. The Node currently doesn't have any children. We cannot post back or do an AJAX call to get the additonal data (performance isn't good enough, and besides, we have the data locally in JavaScript anyway). However, when there isn't already some children nodes in a RadTreeNode, we get a JavaScript error "get_childListElement(...) is null or undefined" when calling the following code:

radNode.get_nodes().add(childrenNode); 

The following conditions are true:

  1. radNode is a RadTreeNode that has been created
  2. It has been added to a RadTreeView already
  3. set_expanded(true) has already been called on it
Justin
Top achievements
Rank 1
 answered on 28 Aug 2009
15 answers
149 views
I have a page that I am trying to update a form with information populated from a combobox selection. Basically, the user selects the name from the dropdown, and then I want the rest of the fields to be updated with some data. The problem is, as soon as I add the onclientselectedindexchanged="someFunction" the combobox stops working i.e. you can't click on it to drop down. Here is my code. Please note my radscripmanager is in the master page of this file. If I need to post my master page I can. What am I doing wrong? Thanks

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/admin/Admin.Master"
    CodeBehind="EditEntity.aspx.vb" Inherits="ClickableCommunity.EditEntity" %>

<%@ Register Assembly="RadMenu" Namespace="Telerik.WebControls" TagPrefix="radM" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <telerik:RadScriptBlock ID="ScriptBlock1" runat="server">

        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAANvmC5YwARPSDAHoiTGyjXRR-496V5WiR7LkdzcFVQzFkDe07hhSkvWarTS8udi3TGEWMPQwT-FAGew"
            type="text/javascript"></script>

        <script type="text/javascript">

            function getLatLon(sender, args) {

                var street = $find('<%= streetInput.ClientID %>').get_value();
                var city = $find('<%= cityInput.ClientID %>').get_value();
                var state = $find('<%= stateInput.ClientID %>').get_value();
                var zip = $find('<%= zipInput.ClientID %>').get_value();
                var address = (street + ", " + city + " " + zip);

                geocodeAddress(address);
            } //getLatLon

            //this function takes in an address and returns
            //the lattitude and longitude.
            function geocodeAddress(address) {
                var coder = new GClientGeocoder();
                coder.getLatLng(address,
                              function(point) {
                                  //the id of the tool tip
                                  var toolTip = $find("<%= cantFindLocation.ClientID %>");
                                  if (!point) {

                                      //show the tool tip if it is hidden
                                      if (!toolTip.isVisible()) {
                                          toolTip.show();
                                      } //if
                                      //the tool tip is showing and the clicked the link
                                      else {
                                          toolTip.set_text("Still no dice, <a href=\"#\" onclick=\"getLatLon()\">" +
                                                           "try again</a> or get them <a href=\"" +
                                                           "http://itouchmap.com/latlong.html\" target=\"_blank\"" +
                                                           ">manually</a>.");
                                      } //else
                                  } //if
                                  //we set the textboxes to their values
                                  else {
                                      var templat = $find('<%= latInput.ClientID %>');
                                      var templon = $find('<%= lonInput.ClientID %>');
                                      templat.set_value(point.lat());
                                      templon.set_value(point.lng());

                                      //hide the tooltip if its showing
                                      if (toolTip.isVisible()) {
                                          toolTip.hide();
                                      }

                                  } //else
                              } //function(point)
                            );
            } //geocodeAddress


            
        </script>

    </telerik:RadScriptBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px"
        Width="300px" EnableHistory="True" HorizontalAlign="NotSet">
    
    <table width="350px">
        <tr>
            <td>
                <center>
                    <span class="adminTableLabel">Select Entity</span>
                    <telerik:RadComboBox ID="businessNameDrop" runat="server" Skin="Web20"
                        Width="150px" MarkFirstMatch="True"
                        DropDownWidth="150px" CssClass="stateDropDownText" Font-Size="16px"
                        DataSourceID="businessDataSource" DataTextField="name"
                        DataValueField="businessid" AutoPostBack="true"
                        OnClientSelectedIndexChanged="RadComboBox1_TextChanged">
                        <CollapseAnimation Duration="1000" Type="InOutBack" />
                    </telerik:RadComboBox>
                    <asp:SqlDataSource ID="businessDataSource" runat="server"
                        ConnectionString="<%$ ConnectionStrings:connectionString %>"
                        SelectCommand="getAllBusinesses" SelectCommandType="StoredProcedure">
                    </asp:SqlDataSource>
                </center>
            </td>
            <td class="addBusinessSpacing">
            </td>
            <td></td>
        </tr>
        <tr>
            <td>
                <center>
                    <span class="adminTableLabel">Entity Name</span>
                    <telerik:RadTextBox ID="entityNameInput" runat="server" Skin="Web20" Width="150px">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="valTxtName" ControlToValidate="entityNameInput" ErrorMessage="Please enter a Business Name."
                        CssClass="errorMessage" runat="server" />
                </center>
            </td>
            <td class="addBusinessSpacing">
            </td>
            <td></td>
        </tr>
        <tr>
            <td>
                <center>
                    <span class="adminTableLabel">Street Address</span>
                    <telerik:RadTextBox ID="streetInput" runat="server" Skin="Web20" Width="150px">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="addressValidator" ControlToValidate="streetInput"
                        ErrorMessage="Please enter an address." CssClass="errorMessage" runat="server" />
                </center>
            </td>
            <td class="addBusinessSpacing">
            </td>
            <td>
                <center>
                    <span class="adminTableLabel">City</span>
                    <telerik:RadTextBox ID="cityInput" runat="server" Skin="Web20" Width="150px">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="cityValidator" ControlToValidate="cityInput" ErrorMessage="Please enter a City."
                        CssClass="errorMessage" runat="server" />
                </center>
            </td>
        </tr>
        <tr>
            <td>
                <center>
                    <span class="adminTableLabel">State</span>
                    <telerik:RadComboBox ID="stateInput" runat="server" Skin="Web20" Width="150px" ChangeTextOnKeyBoardNavigation="true"
                        MarkFirstMatch="true" DropDownWidth="150px" CssClass="stateDropDownText" Font-Size="16px">
                        <CollapseAnimation Duration="1000" Type="InOutBack" />
                        <Items>
                            <telerik:RadComboBoxItem Text="Alabama" Value="AL" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Alaska" Value="AK" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Arizona" Value="AZ" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Arkansas" Value="AR" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="California" Value="CA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Colorado" Value="CO" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Connecticut" Value="CT" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Delaware" Value="DE" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="District Of Columbia" Value="DC" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Florida" Value="FL" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Georgia" Value="GA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Hawaii" Value="HI" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Idaho" Value="ID" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Illinois" Value="IL" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Indiana" Value="IN" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Iowa" Value="IA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Kansas" Value="KS" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Kentucky" Value="KY" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Louisiana" Value="LA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Maine" Value="ME" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Maryland" Value="MD" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Massachusetts" Value="MA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Michigan" Value="MI" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Minnesota" Value="MN" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Mississippi" Value="MS" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Missouri" Value="MO" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Montana" Value="MT" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Nebraska" Value="NE" CssClass="stateDropDownText"
                                Selected="true" />
                            <telerik:RadComboBoxItem Text="Nevada" Value="NV" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="New Hampshire" Value="NH" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="New Jersey" Value="NJ" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="New Mexico" Value="NM" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="New York" Value="NY" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="North Carolina" Value="NC" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="North Dakota" Value="ND" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Ohio" Value="OH" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Oklahoma" Value="OK" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Oregon" Value="OR" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Pennsylvania" Value="PA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Rhode Island" Value="RI" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="South Carolina" Value="SC" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="South Dakota" Value="SD" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Tennessee" Value="TN" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Texas" Value="TX" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Utah" Value="UT" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Vermont" Value="VT" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Virginia" Value="VA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Washington" Value="WA" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="West Virginia" Value="WV" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Wisconsin" Value="WI" CssClass="stateDropDownText" />
                            <telerik:RadComboBoxItem Text="Wyoming" Value="WY" CssClass="stateDropDownText" />
                        </Items>
                    </telerik:RadComboBox>
                    <span class="errorMessage" style="visibility: hidden;">spacer text</span>
                </center>
            </td>
            <td class="addBusinessSpacing">
            </td>
            <td>
                <center>
                    <span class="adminTableLabel">Zip</span>
                    <telerik:RadTextBox ID="zipInput" runat="server" Skin="Web20" Width="150px">
                        <ClientEvents OnFocus="getLatLon" />
                    </telerik:RadTextBox>
                    <asp:RegularExpressionValidator ID="reZipCode" ControlToValidate="zipInput" ValidationExpression="^\d{5}$|^\d{5}-\d{4}$"
                        ErrorMessage="Not a valid Zip code!" Display="static" runat="server" CssClass="errorMessage" />
                    <telerik:RadToolTip runat="server" ID="cantFindLocation" Skin="Web20" Height="100px"
                        Width="400px" ManualClose="true" Position="TopRight" RelativeTo="Element" TargetControlID="streetInput">
                        <span class="normalText">I can't find the address you specified. Please make sure that
                            it is typed in correctly. If you would like to manually find the latitude and longitude,
                            go to <a href="http://itouchmap.com/latlong.html" target="_blank">here</a> and get
                            the coordinates. <a href="#" onclick="getLatLon()">Look Again</a> </span>
                    </telerik:RadToolTip>
                </center>
            </td>
        </tr>
        <tr>
            <td>
                <center>
                    <span class="adminTableLabel">Latitude</span>
                    <telerik:RadTextBox ID="latInput" runat="server" Skin="Web20" Width="150px">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="latValidator" ControlToValidate="latInput" ErrorMessage="Please enter a Latitude"
                        CssClass="errorMessage" runat="server" />
                </center>
            </td>
            <td class="addBusinessSpacing">
            </td>
            <td>
                <center>
                    <span class="adminTableLabel">Longitude</span>
                    <telerik:RadTextBox ID="lonInput" runat="server" Skin="Web20" Width="150px">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="lonValidator" ControlToValidate="lonInput" ErrorMessage="Please enter a Business Name"
                        CssClass="errorMessage" runat="server" />
                </center>
            </td>
            <td>
                <a href="#" onclick="getLatLon()">
                    <asp:Image ID="refresh" runat="server" ImageUrl="~/images/refresh.png" Height="20px"
                        Width="20px" AlternateText="Check coordinates again." />
                </a>
            </td>
        </tr>
    </table>
    <table width="350px">
        <tr>
            <td>
                <center>
                    <asp:Button ID="addEntity" runat="server" Text="Add Entity" /><br />
                    <asp:Label ID="output" runat="server" Text=""></asp:Label>
                    <asp:SqlDataSource ID="usersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:connectionString %>"
                        SelectCommand="returnAllNonAdminUsers" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                </center>
            </td>
        </tr>
    </table>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="businessNameDrop">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="entityNameInput" />
                    <telerik:AjaxUpdatedControl ControlID="streetInput" />
                    <telerik:AjaxUpdatedControl ControlID="cityInput" />
                    <telerik:AjaxUpdatedControl ControlID="stateInput" />
                    <telerik:AjaxUpdatedControl ControlID="zipInput" />
                    <telerik:AjaxUpdatedControl ControlID="latInput" />
                    <telerik:AjaxUpdatedControl ControlID="lonInput" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>

This is in my vb code behind right now
    Protected Sub RadComboBox1_TextChanged(ByVal sender As Object, ByVal e As EventArgs)
        entityNameInput.Text = businessNameDrop.Text
    End Sub
Veli
Telerik team
 answered on 28 Aug 2009
2 answers
65 views
Hi,

I have submitted a bug report on Jul 30 with the heading "Problem with Clearing the Selection in ListBox at Client Side" and got replay from "Genady Sergeev - the Telerik team " saying my telerik points has  been updated but unfortunately no points has been updated to account. kindly look it into this and let me know if there are any concerns.

Regards,

Santhosh
santhosh
Top achievements
Rank 2
 answered on 28 Aug 2009
3 answers
246 views
I'm trying to have a button to move a row up or down; all on the client side - I'm finding a lot of column moving tools in the client side doc, but row manipulation seems to be distinctly lacking...
Does anyone have any good pointers on where to find some code to do a client side move of a row up/down?

Thanks

       var lblID = sender.id.replace("lnkMoveUp", "lblPathFlowID"); 
       var grdId = sender.parentNode.parentNode.parentNode.parentNode.parentNode.id; 
       var grd = $find(grdId); 
         
       grd.get_masterTableView().set_dataSource(grd.get_masterTableView().get_dataItems().reverse()); 
       grd.get_masterTableView().dataBind(); 
Figured I should include a snippet that I have - Everything works except the repaint.
I break on the lower command (gotta love chrome) and check the grid's datasource and it show my data in the reverse order (good ol' chrome). I'm lost on how to get the grid to visually reflect these changes.

If there is a more better different way to move a row up or down on the client side - I'm all for hearing it.
Georgi Krustev
Telerik team
 answered on 28 Aug 2009
8 answers
308 views
Hi,

We are using a scheduler inside a container and used to be able to just resize the container (with the scheduler width as 100%) and use Telerik.Web.UI.RadScheduler._adjustHeight() to adjust the size of the scheduler. 

Upgrading from Q1 2008 to Q3 2008 this appears not to be available now.  How do I adjust the width and height of the scheduler clientside?

Dave
Jeff Nafe
Top achievements
Rank 1
 answered on 28 Aug 2009
1 answer
208 views
Hi Team,
   I am facing css validation erros when the site is submitted to W3c Css Validation
I am not sure of why i am getting these errors. Could you advice me on this. I have also attached the error report
74 .rrButton:hover  Parse Error opacity=100)    
75 .rrButton:hover  Property opacity doesn't exist in CSS level 2.1 but exists in [css3] : 1    
76 .rrButton:hover  Property -moz-opacity doesn't exist : 1    
77 .rrButton:hover  Property -ms-filter doesn't exist : "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"    
115 .rrButton.rrButtonDisabled  Parse Error opacity=20)    
116 .rrButton.rrButtonDisabled  Property opacity doesn't exist in CSS level 2.1 but exists in [css3] : 0.2    
117 .rrButton.rrButtonDisabled  Property -moz-opacity doesn't exist : 0.2    
118 .rrButton.rrButtonDisabled  Property -ms-filter doesn't exist : "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"    
130 html  Parse Error html* .rrVerticalList li { float: left !important; }    
 
86 .RadRotator_Default .rrButton.rrButtonDisabled  Parse Error opacity=20)    
87 .RadRotator_Default .rrButton.rrButtonDisabled  Property opacity doesn't exist in CSS level 2.1 but exists in [css3] : 0.2    
88 .RadRotator_Default .rrButton.rrButtonDisabled  Property -moz-opacity doesn't exist : 0.2    
 
31 .RadPanelBar .rpSlide  Property zoom doesn't exist : 1    
64 .RadPanelBar .rpLink  Property zoom doesn't exist : 1    
126 .RadPanelBar .rpGroup  Property overflow-x doesn't exist in CSS level 2.1 but exists in [css3] : hidden    
 
Thanks and regards,
Arun.M
Martin
Telerik team
 answered on 28 Aug 2009
8 answers
195 views
ShortcutKey is now missing from RadToolbar.  I used to use Ctrl for my ShortcutKey.  Is there a way to define that behavior?

And why is AccessKey defined on  RadToolbar at all?  That seems like a strange choice.
Peter
Telerik team
 answered on 28 Aug 2009
2 answers
128 views
Hello all,

Is it possible to use the radajaxmanager to run vbscript code client side?
if not is there a method on the radscriptmanager to achieve this?

Thanks,
Krishnen
Sebastian
Telerik team
 answered on 28 Aug 2009
2 answers
150 views
Hi,

Can any one help me out to configure an RADCombo to be LoadOnDemand MultiColumn in  RADGrid EditItem Template.

I believe this could be one of more important future in RAD.

Thanks

Alagappan
Alagappan Venkatachalam
Top achievements
Rank 1
 answered on 28 Aug 2009
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?