Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
70 views
I downloaded it 3 times, each time it take a different length on disk ???
And vista tells me it is a corrupted package ?

This message just to test if I am the only one with this pb ?

Thanks
CS
CSurieux
Top achievements
Rank 2
 answered on 28 Aug 2009
6 answers
340 views
In my client-side event handler for the OnClientTextChange event, I've added code that under certain circumstances sets the text of the combobox to the empty string and cancels the server-side TextChanged event by calling client-side EventArgs.set_cancel(true).  This has created the following situation:

  1. User enters some text in the combobox, say "David", and hits enter, firing the search
  2. The user performs the action in the combo that causes my client-side code to cancel the server-side TextChanged event
  3. The user then enters "David" in the combobox again and hits enter, but neither the client- or server-side TextChanged events fire.

I think that cancelling the server-side TextChanged event is keeping the text as "David" even though I'm setting the text to the empty string in the OnClientTextChange event and the combobox properly shows the empty string.  The combobox still thinks its text is "David" and is thus not re-firing the search.  If I delete the last "d", everything fires as expected.

Is this supposed to work this way, and if so, could someone suggest a workaround?

Ivan
Top achievements
Rank 1
 answered on 28 Aug 2009
1 answer
58 views
When inserting a GroupBox in Firefox (3.5), there doesn't seem to be a way to select the groupbox borders in order to "cut" it, as there is in IE. A user must highlight the entire group box. Is this expected?
Rumen
Telerik team
 answered on 28 Aug 2009
1 answer
108 views
Hi,
I used AdvancedEditTemplate and OnClientFormCreated when I clicked on Appoitmed opened edit form. I now change to webservice
<WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" /> and I haven't my edit form...

Please help.
Peter
Telerik team
 answered on 28 Aug 2009
2 answers
69 views


i have a set of pages in my app that i only want to be allowed to be accessed inside a radwindow , whats the best server and or client side way of limiting a page to a radwindow display


thanks
kevin
kmv
Top achievements
Rank 1
 answered on 28 Aug 2009
1 answer
91 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
295 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
145 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
57 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
233 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?