Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
55 views
In the latest version of the Telerik controls, when the toggle type is set to "radio" and the button type is set to "linkbutton", the button no longer changes its background based on the selected/clicked button.  This appears to still work for button type "standard".  You can see this issue using your online demo using IE 9.  Is there a hotfix for this issue or a workaround that restores the old behaviour for type "linkbutton"?
Tony
Top achievements
Rank 1
 answered on 18 Jan 2013
1 answer
93 views
I'm attempting to use two RadDatePickers on a page with RequiredFieldValidators and some javascript (the javascript hides and shows a couple of panels on the page, neither of which contains the DatePickers.) My problems are twofold:

1. When focusing on the DateInput field, the calendar does not pop up even though I have it set to. 
2. If I type in a date in either field and submit the page, the value of both is null, which of course trips my validators.

Are these issues related to the shared calendar bug? I'm using verion 2009.2.701.35. If not, could you provide any insight as to how to fix the problem? I can't for the life of me figure anything out. The problem is present in both IE and Chrome, and the other javascript on the page functions so it isn't  a javascript issue. I am importing JQuery at the top of the page but I wouldn't think that would mess anything up.

My code, such as it is, is below. As you can see there's nothing special.

<telerik:RadDatePicker ID="rfsDate" runat="server">
                    </telerik:RadDatePicker>
                    <asp:RequiredFieldValidator ID="reqRfsDate" ControlToValidate="rfsDate" runat="server" Display="Static"
                        ErrorMessage="Please enter a value for the 'RFS Date' field" Visible="true"
                        text=" *" ValidationGroup="formInput" Font-Size="Medium" />

protected void Page_Load(object sender, EventArgs e) {
        rfsDate.DateInput.DateFormat = "MM/dd/yyyy";
        rfsDate.ShowPopupOnFocus = true;
}
Kyle
Top achievements
Rank 1
 answered on 18 Jan 2013
0 answers
63 views
I've got a DNN application which has a "navigation bar" UserControl at the bottom of the page. There's a label inside a LinkButton on the bar that shows information about the current user's Shopping Cart.

NavBar.ascx
            <asp:LinkButton ID="ShoppingCartLink" runat="server" CssClass="dummy" OnClick="ShoppingCartButton_Click"
                Visible='<%# CurrentUserInRoles(Roles.Reseller, Roles.Customer)  %>'>
                <asp:Image ID="ShoppingCartButton" runat="server" ImageUrl="~/TelerikSkins/Growll/Common/Icon_Cart.png" /> 
                <asp:Label ID="ShoppingCartLabel" ForeColor="White" runat="server" OnPreRender="GetShoppingCartInfoText" />
            </asp:LinkButton>



Now, in addition to that control, I have a module added on the same page which is defined in a separate code file, which allows the user to add a product to their Shopping Cart when a button is clicked.

ProductConfiguration.ascx

<
asp:Button ID="AddToCart" runat="server" Text="AddToCart" ClientIDMode="Static" OnClick="AddToCart_click" />

AddToCart_click makes a service call which adds the product to their cart in the database.

How would I use DNN's built-in RadAjaxManager to update the NavBar as well when this is clicked?

Remember, the NavBar is outside of this module, so I won't be able to add AjaxSettings programmatically as described here: http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html
David
Top achievements
Rank 1
 asked on 18 Jan 2013
7 answers
486 views
I'm trying to center a checkbox in a grid.  The checkboxes are being centered somewhat, but it's not perfect.  The checkboxes are shifted to the right ever so slightly.  Oddly, when I put a text character in the box, it is shifted slightly to the left.  I don't know what the issue is.  Is there a padding parameter or margin parameter being set somewhere?
Waseem
Top achievements
Rank 1
 answered on 18 Jan 2013
1 answer
90 views
Hello Community,

i have a Problem with OnClientBlur and OnClientFocus and i hope you can help my with that.

In short... It doesn't work.

Is it not the same like the html attributes  "onfocus" and "onblur"?

<telerik:RadComboBox Width="140px" ID="rcbLaufzeit" runat="server" Skin="Web20" CssClass="left ddlisten"
    AutoPostBack="false" CloseDropDownOnBlur="true" Filter="Contains" ForeColor="#212c57"
    MarkFirstMatch="true" OnClientBlur="disableFehlerhinweis('tbLaufzeit'); hilfeTextDeaktivieren('HilfeLaufzeit');" OnClientFocus="hilfeTextAktivieren('HilfeLaufzeit');">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Jahre" Value="1" />
        <telerik:RadComboBoxItem runat="server" Text="Monate" Value="2" />
    </Items>
</telerik:RadComboBox>

If you need more Informations just ask.

Thanks for reading!

Daniel

Edit: Sorry for that title. I forgot to edit it :(
Kevin
Top achievements
Rank 2
 answered on 18 Jan 2013
1 answer
123 views
I am having an issue where the month selector at the top of the RadDatePicker popup us shifting to the right.  Please see attached image.  How can I adjust this?

Thanks,
Dan


Kevin
Top achievements
Rank 2
 answered on 18 Jan 2013
5 answers
336 views
Hello, i have been searching a while about this issue. I'm trying to scroll my page when i expand a row in my RadGrid (I don't want to scroll the Grid). I want the newly opened row to appear on the top of the web page.
I have HierarchyExpanded, but this triggers when i click on the row, not when the data is flully loaded.
I'm currently working on it but i am not an expert in javascript so i can't get this to work.
I already looked at http://www.telerik.com/help/aspnet-ajax/grid-scroll-to-selected-item.html but doesn't seem to work.
(My grid allow multiple selection, so i need to keep a reference to the last opened row.)
Anything i could do? Tips? Thanks.
Sophie
Top achievements
Rank 2
 answered on 18 Jan 2013
1 answer
76 views
hello, i try to use RadAjaxLoadingPanel , but rad grid column filters down't work . here is my code samples
p.s im using user control

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ACMSGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ACMSGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
      
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
  
<%--OnPreRender="ACMSGrid_PreRender"--%>
<telerik:RadGrid ID="ACMSGrid" runat="server" OnNeedDataSource="ACMSGrid_NeedDataSource"
    AllowFilteringByColumn="True" AllowPaging="True" OnItemDataBound="ACMSGrid_ItemDataBound"
    AllowSorting="True" CellSpacing="0" EnableLinqExpressions="false"
   OnPreRender="ACMSGrid_PreRender"
    GridLines="None" AutoGenerateColumns="False">
    <MasterTableView AllowFilteringByColumn="True">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
 
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
 
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
        <Columns>
            <telerik:GridBoundColumn DataField="ACMS_Number" HeaderText="ნომერი"
                SortExpression="ACMS_Number" UniqueName="ACMS_Number" FilterControlWidth="40px"
                AutoPostBackOnFilter="False" CurrentFilterFunction="Contains"
                FilterDelay="1000" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
 
            <telerik:GridDateTimeColumn DataField="ACMS_Date" SortExpression="ACMS_Date" HeaderText="თარიღი"
                UniqueName="ACMS_Date" CurrentFilterFunction="Contains" DataFormatString="{0:dd.MM.yyyy}"
                AutoPostBackOnFilter="True" FilterDelay="4000" ShowFilterIcon="false">
            </telerik:GridDateTimeColumn>
 
            <telerik:GridHyperLinkColumn AllowFiltering="false" DataTextFormatString="pdf '{0}'"
                DataNavigateUrlFields="id" UniqueName="id" DataNavigateUrlFormatString="~/common/ACMS_get_doc.aspx?id={0}"
                HeaderText="დოკუმენტი" DataTextField="id">
            </telerik:GridHyperLinkColumn>
 
            <telerik:GridBoundColumn DataField="ACMS_Type" HeaderText="ტიპი" HeaderStyle-Width="350px"
                SortExpression="ACMS_Type" UniqueName="ACMS_Type">
                <FilterTemplate>
                    <telerik:RadComboBox runat="server" ID="FilterCombo" DataSourceID="SqlDataSource3"
                        DataValueField="ACMS_Type" DataTextField="ACMS_Type" AutoPostBack="true"  AppendDataBoundItems="true"
                        SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ACMS_Type").CurrentFilterValue %>'
                        OnSelectedIndexChanged="FilterCombo_SelectedIndexChanged">
                            <Items>
                                  <telerik:RadComboBoxItem Text="" />
                                
                            </Items>
                    </telerik:RadComboBox>
 
              
 
      <asp:Button ID="btnShowAll" runat="server" OnClick="btnShowAll_Click" Text="ფილტრის გასუფთავება" />
              
                </FilterTemplate>
            </telerik:GridBoundColumn>
        </Columns>
 
    </MasterTableView>
    <ClientSettings>
        <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
            AllowColumnResize="True"></Resizing>
 
    </ClientSettings>
    <HeaderStyle Width="250px"></HeaderStyle>
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
 
<asp:SqlDataSource ID="SqlDataSource3" ConnectionString="<%$ ConnectionStrings:db_conn %>"
    ProviderName="System.Data.SqlClient" SelectCommand="SELECT  ACMS_type FROM itdc_ACMS_type"
    runat="server"></asp:SqlDataSource>

and here is codebehind

protected void Page_Load(object sender, EventArgs e)
   {
 
       acms get_data = new acms();
       ACMSGrid.DataSource = get_data.get_ACMS();
       ACMSGrid.DataBind();
   }
 
   protected void ACMSGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
   {
       acms get_data = new acms();
       ACMSGrid.DataSource = get_data.get_ACMS();
       ACMSGrid.DataBind();
   }
 
   protected void ACMSGrid_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridDataItem)
       {
           GridDataItem item = (GridDataItem)e.Item;
           HyperLink hyplnk = (HyperLink)item["id"].Controls[0];
           hyplnk.ImageUrl = "~/m/i/pdf.gif";
       }
   }
 
 
 
   protected void FilterCombo_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
   {
       string filterExpression;
       filterExpression = "([ACMS_type] = '" + e.Value + "')";
       ACMSGrid.MasterTableView.FilterExpression = filterExpression;
       ACMSGrid.MasterTableView.Rebind();
   }
   protected void ACMSGrid_PreRender(object sender, System.EventArgs e)
   {
 
 
       foreach (GridFilteringItem filterItem in ACMSGrid.MasterTableView.GetItems(GridItemType.FilteringItem))
       {
           RadComboBox dropdown = (RadComboBox)filterItem.FindControl("FilterCombo");
 
           //Response.Write(dropdown.SelectedValue);
           if (dropdown.SelectedValue == "All")
           {
               RefreshCombos();
           }
           else
           {
 
           }
       }
   }
 
   protected void RefreshCombos()
   {
        
       ACMSGrid.MasterTableView.FilterExpression = string.Empty;
 
       ACMSGrid.MasterTableView.Rebind();
   }
 
   protected void btnShowAll_Click(object sender, EventArgs e)
   {
       ACMSGrid.MasterTableView.FilterExpression = string.Empty;
 
       foreach (GridColumn column in ACMSGrid.MasterTableView.RenderColumns)
       {
           if (column is GridBoundColumn)
           {
               GridBoundColumn boundColumn = column as GridBoundColumn;
               boundColumn.CurrentFilterValue = string.Empty;
           }
       }
 
       ACMSGrid.MasterTableView.Rebind();
 
   }

Pavlina
Telerik team
 answered on 18 Jan 2013
16 answers
205 views
I'm working with the rad editor and have found that a link such as this:
<a href="#Download">Download Source</a>

will sometimes get changed to this:
<a target="_blank" re_target="null" href="#Download">Download Source</a>

I have no idea what is causing this to happen, but we work with the rad editor extensively and have found that about one out of every hundred documents containing links will randomly generate the above target and re_target properties. This causes all of the links to open in new windows.

I want to know if anyone has insight on this issue or even knows what causes it. This error is seemingly random and I have NOT been able to replicate it with hundreds of attempts. We create a large amount of different documents with the SAME links and some of them get these values generated for them.

One thing I did notice is that when switching from HTML view with the generated properties to PREVIEW and then back to HTML would most of the time clear the properties as if they were never there.

Any help is appreciated, thanks.
Laird Rixford
Top achievements
Rank 1
 answered on 18 Jan 2013
1 answer
132 views
This issue is specific to IE 9 and does not happen in Chrome and Firefox,
Occasionally It happens once in a while in Opera.

There is a master page "M" with a AJAX script manager control. 
In the content page a RadTabStrip control is used within the UpdatePanel. 

 Below is the declaration:  
<telerik:RadTabStrip ID="tlRetentionStrip" runat="server" SelectedIndex="0"
                  Skin="WebBlue" MultiPageID="tlMultiPage">
                  <Tabs>
                      <telerik:RadTab runat="server" Text="Queue Details" PageViewID="tlPageQueueDetails"
                          Selected="True" Owner="tlRetentionStrip">
                      </telerik:RadTab>
                      <telerik:RadTab runat="server" Text="Schedule: What does it run?" PageViewID="tlPageSchedule"
                          Owner="tlRetentionStrip">
                      </telerik:RadTab>
                      <telerik:RadTab runat="server" Text="Lead Filters" PageViewID="tlPageFilters" Owner="tlRetentionStrip">
                      </telerik:RadTab>
                  </Tabs>
              </telerik:RadTabStrip>

When the page is viewed in IE9, it has two issues
  1. It displays the tabs as bulleted list  (not always but often)
  2. It displays the Tab contents one below another.

Chrome.jpg:  Shows the correct view where the first tab shows the contents of onyl the first tab.
IE9.jpg: After displaying the contents of the first tab, the contents of the other tabs are shown below
Nencho
Telerik team
 answered on 18 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?