Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
44 views
Using the following CSS to make the width the same for all the input boxes in RadSocialShare Email Popup Window:
.rfdTextbox.RadForm input[type='text'].rfdDecorated,   .rfdTextbox.RadForm input[type='search'].rfdDecorated,   .rfdTextbox.RadForm input[type='url'].rfdDecorated, .rfdTextbox.RadForm input[type='tel'].rfdDecorated, .rfdTextbox.RadForm input[type='email'].rfdDecorated {
  width: 240px!important;
  }

However the CSS is also changing the size of another Radcaptcha input box on the underlying page.
I can't figure out the CSS to only include the RadSocialShare?

Any help would be greatly appreciated.
Glenn
Top achievements
Rank 1
 answered on 18 Sep 2014
2 answers
109 views
I'm trying to export a radgridview to Excel.  When I was using regular paging, everything was working fine but since I switched to virtual paging, I can only export the current page to excel instead of the entire grid's contents.  I've added the following code to the ItemCommand handler:
case RadGrid.ExportToExcelCommandName:
                {
                    rgResult.PageSize = rgResult.MasterTableView.VirtualItemCount;
                    rgResult.ExportSettings.ExportOnlyData = true;
                    rgResult.ExportSettings.IgnorePaging = true;
                    rgResult.ExportSettings.OpenInNewWindow = true;                     
                    rgResult.MasterTableView.ExportToExcel();
                }
                break;
This causes an "System.ArgumentOutOfRangeException" exception when trying to set the page size equal to the grid's virtual item count. Probably because the VirtualItemCount is equal to 0.

Thanks!
Tom
Top achievements
Rank 1
 answered on 18 Sep 2014
3 answers
341 views
I am having a funny problem with one of my RadComboBoxes. It is applied to a skin that it used throughout my website. On all but one page the RadComboBox looks and functions correctly. However on one page, the background behind the select-able items becomes transparent. I also lose the border around the select-able items.

I am wondering as to what may be causing this issue.

This is what the definition looks like.

<telerik:RadComboBox runat="server" ID="ddlRoles" Visible="false" EnableViewState="true"
    AutoPostBack="True" CausesValidation="false" ZIndex="999999">
    <Items>
    </Items>
</telerik:RadComboBox>


I removed the items from my list, but there are 9 items hardcoded into it. Any help is appreciated!
Alexander
Top achievements
Rank 1
 answered on 18 Sep 2014
4 answers
111 views
Hi,
I have a Radgrid with GridDateTimeColumn, when i click on edit the calendar image is not displaying, instead it displays text "the calendar popup." this happens only for the first time when i click edit and when i mouse over the control, the control (textbox and calendar) moves up and the calendar image is displayed. when i cancel and click edit again its works fine.
Sanjana
Top achievements
Rank 1
 answered on 18 Sep 2014
1 answer
122 views
To reproduce the issue, go to the Telerik Basic Filtering Demo.

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

Scroll the page so that the filter icon is near the top of the page. When you click the filter icon the page will scroll. This does not happen in IE. How can I prevent this? I have tried adding "MaintainScrollPositionOnPostback="true" to my page.
Pavlina
Telerik team
 answered on 18 Sep 2014
5 answers
94 views
Hi,

On the silk skin the enable rounded corners fails to work, presumably this is a bug?

What would be the CSS for hiding the rounded corners please?

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 18 Sep 2014
3 answers
192 views
I have a basic menu created successfully, but would like to have a template applied to a couple dynamically created items.

I would like to have a User Control be the contents so that the management of the content can be controlled separately.

So my basic scenario is this:

Create Root Menu item, Create Sub item, Apply ItemTemplate, Create New Sub Item, Undo Template...

My Template is such:
​

'ItemTemplate Class. Just pulls the User Control
Class QC_HACCP_Hold
        Implements ITemplate
        Public Sub InstantiateIn(ByVal container As Control) Implements ITemplate.InstantiateIn
            Dim lit1 As New QC_HACCP_Hold_Lot
            container.Controls.Add(lit1)
        End Sub
    End Class
 
 
'User Control write up - QC_HACCP_Hold_Lot
 
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="QC_HACCP_Hold_Lot.ascx.vb" Inherits="sadlersnet.QC_HACCP_Hold_Lot" %>
<asp:panel id="pnlHold" runat="server">
    <p>
        Enter Lot Number to Place on Hold<br />
        <asp:TextBox ID="txtLotNumber" runat="server"></asp:TextBox><asp:Button ID="cmdHoldLot" runat="server" Text="Set to Hold" />
    </p>
</asp:panel>
 
'Code to Create Parent and Sub with Template Applied
        Dim _QCHACCP_Place_Lot_On_Hold As RadMenuItem = AddMenuItem("Place Lot on Hold", Nothing, False)
        With _QCHACCP_Place_Lot_On_Hold
            Dim _QC_HoldTemplate As New Custom_Rad_Templates.QC_HACCP_Hold
            mnuMain.ItemTemplate = _QC_HoldTemplate
            .Items.Add(New RadMenuItem)
   
        End With
 
'Helper function for creating menuitems
Private Function AddMenuItem(ByVal Caption As String, URL As String, ByVal AutoPostBack As Boolean, Optional ByVal Target As String = Nothing) As RadMenuItem
        Dim _MenuItem As RadMenuItem = New RadMenuItem
        _MenuItem.PostBack = AutoPostBack
        _MenuItem.NavigateUrl = URL
        _MenuItem.Text = Caption
        If Not IsNothing(Target) Then _MenuItem.Target = Target
        Return _MenuItem
    End Function

Im getting the Parent and it knows theres a sub, and expanding just gives me a little tiny box with no content...

Any Ideas?
Dimitar Terziev
Telerik team
 answered on 18 Sep 2014
2 answers
143 views
Hi there!  I'm trying to slightly change the appearance of the tabs of a radsplitter with sliding panes.  I'm currently using the WebBlue skin, but would like to add distinct borders to the tabs and a different color to the expanded tab.  I've added the following css code to my page, but nothing changes.

I must be missing something.  Any help appreciated.  Thanks!
​.
RadSplitter .paneTabContainer
 {
 border-color: #424242 !important;
 border-width: thin !important;
 
 }
 
 .RadSplitter .paneTabContainerDocked,
 .RadSplitter .paneTabContainerDockedHorizontal
 {
 background: #FAAC58 !important;
 }
 
 .RadSplitter .tabsContainer .paneTabContainerExpanded,
 .RadSplitter .tabsContainer .paneTabContainerExpandedHorizontal
 {
 background: #FAAC58 !important;
 }
Dusty
Top achievements
Rank 1
 answered on 18 Sep 2014
5 answers
304 views
I have the following RadAjaxManager defined in my page. The problem is once a user enters some text in the RadModalPopup, I want the RadGrid to refresh when the modalpopup closes. It currently is not, any ideas as to why not?

​
           function closeRadWindow() {
 
               $find("<%= RadAjaxManager.ClientID %>").ajaxRequest();
 
           }
 
 
 
       </script>  
 
   </TELERIK:RADCODEBLOCK>
 
   <telerik:RadWindowManager ID="RadWindowManager" runat="server">
 
        <Windows>
 
            <telerik:RadWindow ID="RadWindow1" runat="server" Modal="true" Title="Add New Description to Table" Width="400px" Height="150" Behaviors="Close, Move" OnClientClose="closeRadWindow">
 
                <ContentTemplate>
 
                   <asp:Label ID="Description" runat="server" Text="New Description: "></asp:Label>
 
                   <asp:TextBox ID="NewDescriptionTextBox" runat="server" Width="300px"></asp:TextBox>
 
                    <asp:Button ID="AddNewDescriptionButton" runat="server" Text="Add" OnClick="AddNewDescriptionButton_Click" /><br /><br />
 
                    <asp:Button ID="CancelAddDescriptionButton" runat="server" Text="Cancel" />
 
                    <asp:Label ID="messageLabel" runat="server" Text="Label" Visible="false"></asp:Label>
 
                </ContentTemplate>
 
            </telerik:RadWindow>
 
        </Windows>
 
    </telerik:RadWindowManager>
 
 
 
       <telerik:RadAjaxManager runat="server" ID="RadAjaxManager" DefaultLoadingPanelID="RadAjaxLoadingPanel" OnAjaxRequest="RadAjaxManager_AjaxRequest">
 
           <AjaxSettings>
 
               <telerik:AjaxSetting AjaxControlID="AdminHoldReasonGrid">
 
                   <UpdatedControls>
 
                       <telerik:AjaxUpdatedControl ControlID="AdminHoldReasonGrid" />
 
                   </UpdatedControls>
 
               </telerik:AjaxSetting>
 
 
 
               <telerik:AjaxSetting AjaxControlID="RadAjaxManager">
 
                   <UpdatedControls>
 
                       <telerik:AjaxUpdatedControl ControlID="AdminHoldReasonGrid" />
 
                   </UpdatedControls>
 
               </telerik:AjaxSetting>
 
           </AjaxSettings>
 
       </telerik:RadAjaxManager>
 
 
 
 
 
 
 
THIS IS THE RELEVANT CODE BEHIND
 
 
       protected void RadAjaxManager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
 
       {
 
           AdminHoldReasonGrid.MasterTableView.SortExpressions.Clear();
 
           AdminHoldReasonGrid.Rebind();
 
       }
Sasha
Top achievements
Rank 1
 answered on 18 Sep 2014
10 answers
401 views

I have a problem with 2 of my controls "disappearing" when I use the RadAjaxManager to update them when I click a button.

Here is my button:
<asp:Button runat="server" id="btnClick" OnClick="btnClick_Click" />

Here is the btnClick_Click in my C# file:

        protected void btnClick_Click(object sender, EventArgs e)
        {
            SqlConnection myConn3 = new SqlConnection("Dataconnection");
            myConn3.Open();
           
            string getCategoryQueryString;
            getCategoryQueryString = "SELECT MasterTableCategories.MasterID, MasterTableCategories.SICCode, [Sic-Codes].[SIC Name1] AS Category FROM MasterTableCategories INNER JOIN [Sic-Codes] ON MasterTableCategories.SICCode = [Sic-Codes].[SIC Code1] WHERE (MasterTableCategories.MasterID = @MasterID)";

            SqlCommand getCategoryQuery = new SqlCommand(getCategoryQueryString, myConn3);
            getCategoryQuery.Parameters.Add("@MasterID", Master_RecordID.Value);
            SqlDataReader getCategoryReader = getCategoryQuery.ExecuteReader();

            if (getCategoryReader.HasRows)
            {
                getCategoryReader.Read();
                Category.Text = getCategoryReader["Category"].ToString();
                SICCode.Value = getCategoryReader["SICCode"].ToString();
            }
            else
            {
                //For testing purposes
                Category.Text = "Cars";
                SICCode.Value = "123456789";
            }
            getCategoryReader.Dispose();
            myConn3.Close();
        }

Here is the Ajax:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel_CampaignChange">
      <AjaxSettings>
      <telerik:AjaxSetting AjaxControlID="btnClick">
          <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="Category" />
            <telerik:AjaxUpdatedControl ControlID="SICCode" />
         </UpdatedControls>
        </telerik:AjaxSetting>
      </AjaxSettings>
    </telerik:RadAjaxManager>

Here are the controls:
<asp:TextBox ID="Category" runat="server" Width="100%" ReadOnly="true"></asp:TextBox>
<asp:HiddenField ID="SICCode" runat="server" Value="" />

The user presses the button and the btnClick_Click goes to the database and retrieves the Category and SIC Code.  It's then supposed to update the controls with string data, but makes the ENTIRE textbox and hidden field disappear from the html.  All I am left with is an empty div...sort of.  It even removes the CategoryPanel div and SICCodePanel div from the html.

If anyone has a clue why these controls vanish, I would appreciate it immensely!

Maria Ilieva
Telerik team
 answered on 18 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?