Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
76 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
533 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
112 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
149 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
375 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
81 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
240 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
153 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
5 answers
119 views
We upgraded out radcombobox component to the latest version (2012.2.724.40) last week from version 2009.3.1314.20.  And today I tested with version 2012.2.912.40.
We have comboboxes in a repeater which itself is loaded dynamically when needed. When a postback occurs and the values in the comboboxes are changed the values are retained after a postback, when the values aren't changed selectedvalue returns "" (string.empty). When I replace the old telerik dll's it works fine, the latest break this.

Our problem is simular to this problem: http://www.telerik.com/community/forums/aspnet-ajax/combobox/selectedvalue-lost-on-postback-in-dynamically-added-user-controls.aspx
Hristo Valyavicharski
Telerik team
 answered on 18 Jan 2013
1 answer
67 views
Wanted to do some miner tweaks to the integrated Metrotouch skin using the online stylebuilder but realised it wasent avalible. is there any download link avalible for this skin?
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 18 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?