Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
192 views
I am using Version=2011.2.712.35 and am having a problem getting the RadComboBox to work properly with the RequiredFieldValidator. I have verified that the RequiredFieldValidator works with a DropDownList and then replaced the ddl with the rcb and it works no longer

<telerik:RadComboBox ID="ddlSourceSystem" runat="server" Width="250px" Height="220px" AllowCustomText="True"
         ShowToggleImage="True" CausesValidation="false" ShowMoreResultsBox="false" EnableLoadOnDemand="false"
         MarkFirstMatch="false" EnableVirtualScrolling="false" AutoPostBack="false">
         <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
     </telerik:RadComboBox>
      
<asp:RequiredFieldValidator runat="server" ID="rfvSourceSystem" ValidationGroup="accountValidation"
                ControlToValidate="ddlSourceSystem" ErrorMessage="Source System is required"
                InitialValue="" Text=""><img src="images/exclamation_red.png" width="16" height="16"/></asp:RequiredFieldValidator>

Tim
Top achievements
Rank 2
 answered on 09 Sep 2011
2 answers
195 views
Hi,

 I have been trying to search this on the forum but couldnt find any. I have a simple requirement of dynamically showing (from client side) at the x y position of the mouse. The difference between some example shown at the site is that it always has targetcontrolid but the element i clicked does not have any id.... Its a html anchor element and an example is shown below

<a href="javascript:showComments(1);">Comment1</a>

So far i have been able to determine the x y position of the mouse but wanted to see if there is any tooltip.showAt function which will position the tooltip at the specified x,y co-ordinates?

Pretty sure this has been answered somewhere but couldnt find it

 
TIGER
Top achievements
Rank 1
 answered on 09 Sep 2011
12 answers
303 views
My apologies if this has already been asked and answered. I searched, but did not find specific results relating to this problem.

RadGrid hooked up to a SQLDataSource. This is part of a utilitarian admin interface. The data is simple zip code information. It is an SSL protected website with BASIC windows authentication on IIS6. When I click on Export to Excel(or Word, etc..) the username/password credentials prompt comes back up. If the user re-enters their information, the download completes successfully. I don't want the prompt to re-appear.
My thought was that it may have something to do with where the RadGrid stores its temporary file on the server before export, or is it streamed in memory?

Any help is appreciated.
Steele
Top achievements
Rank 1
 answered on 09 Sep 2011
2 answers
109 views
We have a form with a RadMaskedTextBox on it for phone numbers.  We also have a control on the page that allows users to "lookup" employees using a popup web form which is tied to AD.  The "lookup" form is a pop-up window which when a user selects an employee name; populates information back to the form that launched it.  However, the phone number is not being properly set in the RadMaskedTextBox.

When the popup window opens it sends the ID of the RadMaskedTextBox in the query string and attempt to use the following code to set the RadMaskedTextBox's value.

window.opener.aspnetForm.MASKEDTEXTBOX_ID.set_value('0001234567);
The issue we're encountering is similar to the one described in this thread but it doesn't seem to have an answer.

http://www.telerik.com/community/forums/aspnet-ajax/input/getting-radmaskedtextbox-client-object-on-other-page.aspx

The issue we're encountering is similar to the one described in this thread but it doesn't seem to have an answer.
JR
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
149 views
$find() is failing miserably for me when I try to obtain a reference to the RadMultiPage control on my page. The following just returns null on the second statement of showPageView .Here is my markup... I've got the showPageView function bound to the OnClientItemClicked event of the RadMenu. I'm just trying to show a different multiPage when a RadMenuItem is clicked. Extremely simple, I know. Any thoughts? This is driving me crazy. I'm using VS2008 and v 2010.2.929.35

Thanks in advance for any help/insight!

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <link href="CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </asp:ScriptManager>
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            $(document).ready(function() {      // Wait for the HTML to finish loading.
                var resize = function() {
                    var height = $(window).height();  // Get the height of the browser window area.
                    var element = $("form");          // Find the element to resize.
                    element.height(height);           // Set the element's height.
                }
                resize();
                $(window).bind("resize", resize);
            });
 
            function showPageView(sender, eventArgs) {
                var clientId = "<%= RadMultiPage1.ClientID %>";
                var multipage = $find(clientId);
                if (eventArgs.get_item().get_value() != null) {
                    alert(eventArgs.get_item().get_value());
                    var pageView = multipage.findPageViewByID(eventArgs.get_item().get_value());
                    if (pageView)
                        pageView.set_selected(true);
                }
            }
    </script>
    </telerik:RadScriptBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div id="mainWrapper">
        <div id="pageWrapper">
            <div id="topWelcomeBanner">
                <div id="welcomebox">
                    <a target="_blank" href="http://www.mercer.com:80/regredirect.htm?siteLanguage=100">Register on our site</a
                    <font style="color:#0057A6">|</font>
                    <a target="_blank" href="https://clients.haifc.com">Log in to Client Portal</a>
                </div>
            </div>
            <div id="masthead">
                <a href="">
                    <img border="0" src="images/mercer_logo_175x24.gif" name="cmp_img_global_header_logo" alt="Mercer" title="Mercer"/>
                </a>
                <div align="right" style="font-size:10px" class="piller1">
                    <a href="">
                        <img border="0" src="images/mercer_pillars_new.gif" name="cmp_img_global_header_logo" alt="Consulting. Outsourcing. Investments."/>
                    </a>
                </div>
            </div>
            <div class="hnav">
                <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal" OnClientItemClicked="showPageView" CssClass="menu">
                <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
                <CollapseAnimation Duration="200" Type="OutQuint" />
                <Items>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Home" Value="RadPageView6" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Who We Are" Value="RadPageView1" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Who We Serve" Value="RadPageView2" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Research" Value="RadPageView3" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Media Center" Value="RadPageView4" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Contact Us" Value="RadPageView5" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                </Items>
                <ExpandAnimation Type="OutQuart" />
            </telerik:RadMenu>              
            </div>
                    <div id="leftCol">
                        <telerik:RadMultiPage ID="RadMultiPage1" runat="server"
                                            SelectedIndex="0">
                            <telerik:RadPageView ID="RadPageView6" runat="server">                                           
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView1" runat="server">                                  
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView2" runat="server">                              
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView3" runat="server">
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView4" runat="server">
                                Media Center</telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView5" runat="server">
                                </telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </div>
                <div id="rightCol">                 
                    <img src="images/DRH.gif" width="121px" height="212px" alt="Dennis R. Hammond"  />
                    <div id="overlay"></div>
                    <div id="dennis">Dennis Hammond</div>
                    <div style="margin-bottom:8px" class="hrboxForMercerInNewsRightBucket"></div>
                    <h3><font color="#000000"><strong>Research Weekly Update</strong></font></h3>
                    <br />
                    <asp:Button ID="btnWeekly" runat="server" Text="Get the Latest" CssClass="headerbutton" PostBackUrl="http://www.haifc.com/ResearchLibrary/weekly/2011/09062011.pdf"/>
                    <div style="margin-bottom:8px" class="hrboxForMercerInNewsRightBucket"></div>
                    <div id="connect">
                     <h3><font color="#000000"><strong>Connect with us</strong></font></h3>
                            <br />
                           <p style="font-size:12px; margin-bottom:10px;">
                          <span class="iconMercerInNews">
                            <a href="http://twitter.com/MercerInsights" target="_blank">
                            <img align="absmiddle" src="images/icn-share-twitter_14x14.gif"/>
                            </a>
                            </span>
                              <a href="http://twitter.com/MercerInsights" target="_blank" class="linksNoSize">Twitter</a>
                            </p>
                           <p style="font-size:12px; margin-bottom:10px;">
                          <span class="iconMercerInNews">
                            <a href="http://www.linkedin.com/groups?mostPopular=&;gid=113026" target="_blank">
                            <img align="absmiddle" src="images/icn-share-linkedin_14x14.gif"/>
                            </a>
                            </span>
                              <a href="http://www.linkedin.com/groups?mostPopular=&;gid=113026" target="_blank" class="linksNoSize">LinkedIn</a>
                            </p>
                           <p style="font-size:12px; margin-bottom:10px;">   
                          <span class="iconMercerInNews">
                            <a href="http://www.facebook.com/MercerInsights" target="_blank">
                            <img align="absmiddle" src="images/icn-share-facebook_14x14.gif"/>
                            </a>
                            </span>
                              <a href="http://www.facebook.com/MercerInsights" target="_blank" class="linksNoSize">Facebook</a>
                             </p>
                             <div style="margin-bottom:8px" class="hrboxForMercerInNewsRightBucket"></div>
                      </div>
                </div>
                <div id="footer">
                    <hr />
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody><tr>
                            <td valign="top" align="left">
                            <p style="margin-bottom:20px;"><a href="http://www.mmc.com" title="Marsh & McLennan Companies" target="_blank">
                            <img border="0" src="images/parent_logo_199x27.gif" name="cmp_img_global_header_logo" alt="Consulting. Outsourcing. Investments."/>
                            </a></p>
                            </td>
                            <td valign="top">
                            <div id="footertable">
                                <a href="http://www.mercer.com:80/rsslisting.htm?siteLanguage=100"><img style="cursor: pointer" src="images/icon_rss.gif"></a> |  
                                <a href="http://www.mercer.com:80/termsofuse.htm?siteLanguage=100">Terms of use</a> | <a href="http://www.mercer.com:80/privacy.htm?siteLanguage=100">Privacy</a> | <a href="http://www.mercer.com:80/help.htm?siteLanguage=100">  
                                Help</a> | <a href="https://connectv7.mercer.com/eRoom">Mercer's Client Extranet</a><br />
                            Â©2011 Mercer LLC, All Rights Reserved</div>
                            </td>
                        </tr>
                    </tbody></table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 08 Sep 2011
2 answers
309 views
Hi,
I added the below code for masking a column. The column has to display 9-digit number in this form ####-#####
But the column is displayed as  123456789 instead of  1234-56789

<telerik:RadGrid ID="rg_submitted_requests" runat="server" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" GridLines="Both" CellPadding="0">
   <MasterTableView  AutoGenerateColumns="false">
    <Columns>
        <telerik:GridMaskedColumn Mask="####-#####" HeaderText="PAF #" DataField="PAF_NUMBER">                        
        </telerik:GridMaskedColumn>
    </Columns>
   </MasterTableView>
</telerik:RadGrid>

Please let me know if there any issues with the above code.

Appreciate your help,
Mani
Eva
Top achievements
Rank 1
 answered on 08 Sep 2011
2 answers
143 views
I have a screen awith a radgrid and In the eidt form I have a textbox which allows a user to enter a numeric value. 
<td>
      <label for="CIK">
           CIK:</label>
     <asp:TextBox ID="CIKTextbox" runat="server" Text='<%# Bind("CIK") %>' Columns="35" AutoPostBack="true" OnTextChanged="CIK_TextChanged" />
     <asp:label id="DupCheck" Font-Bold="true" ForeColor="Red" runat="server" />
</td>
Ithen in the code behind I have
protected void CIK_TextChanged(object sender, EventArgs e)
 {
     TextBox txtbx = (TextBox)sender;            
     GridEditFormItem editFormItem = (GridEditFormItem)txtbx.NamingContainer;
     Label lbl = (Label)editFormItem.FindControl("DupCheck");
     if (CheckCIK(txtbx.Text))
         lbl.Text = "This CIK Already Exists";
     else
         lbl.Text = "";
 }

This works and it displays the message when it should, but when it refreshes the grid is locked and I am unabel to edit any of the text fields fields, but the drop down lists work and when ever I access a drop down that causes a postback the textboxes work again. 

Eric Klein
Top achievements
Rank 1
 answered on 08 Sep 2011
2 answers
198 views
Hello, please see the following page for our issue:

http://www.humaliensacademy.com/market/

- You will be redirected to login screen, login with:
username:  joeTester
password:  joeTester1

Once logged in, go back to the link above.

- ISSUE:  click on the SELECT SET combobox in Google Chrome.  You will see it appears behind the Silverlight PivotViewer below it.  This only happens in Google Chrome.  I've tried all the Z-Index fixes from all the other threads, no luck, and if you view the source you will see I have the Z-Index set very high on the combobox and its surrounding div.  Is there a way to set the Z-index on the actual pop out specifically or something?    Please help.  thank you.

- SIDE QUESTION:  Notice I changed the background color of the combobox to that green to match the screen.  How do I change the background color of the pull down image part?  you will see it is still the default white color.  Thanks again.

joe
Joe
Top achievements
Rank 1
 answered on 08 Sep 2011
1 answer
102 views
I'm following the RadDock demo "My Portal" pretty closely to add existing docks.  I have drop downs and other controls that need to be loaded dynamically on my dock controls.  I can get the docks to be created, but data isn't loaded.  How can I get the Page_Load to run on a dock when I create it dynamically?

Edit: FIGURED IT OUT...PLEASE DISREGARD!!!  Thanks
CG
Top achievements
Rank 1
 answered on 08 Sep 2011
6 answers
407 views
I'm dynamically creating several RadComboBoxes.  MarkFirstMatch is true, AllowCustomText is false, and the TabIndex is set for each of the controls.

I need the Enter key to function as such:  1) select the item selected in the combo box (the way that it functions by default) and then 2) tab into the next tabindex.

I've been trying to achieve this using the OnClientKeyPressing event without sucess since I'm not sure how to "turn" the Enter key press into a Tab key press.

Thank You,
sash
erato
Top achievements
Rank 1
 answered on 08 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?