Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
57 views
I inherited a MOSS environment and I need to change the top navigation menu, I see that the navigation is using a RADMenu
<telerik:radmenu ID="TopNavMenu" runat="server" ExpandDelay="10" CollapseDelay="10"/>

But I can't find where its generating the menu from, I have checked SharePoint Navigation, fix links and no trace of sitemap. Please help me identify where the menu is being generated from so that I can be able to edit it.

Thanks
Lonsrd
Top achievements
Rank 1
 asked on 13 Aug 2013
1 answer
133 views
Hi,


I am developing  a sharepoint webpart  i want to load controls asynchronously within sharepoint webpart. One of the controls I use is ASP.net AJAX RADPivotgrid.

i Achieved this by using of  Partial Updatepanel Library.i followed this link to load controls asynchronously.(link:http://www.51aspx.com/CodeFile/PartialUpdatePanel,6051/Control/PanelHostPage.cs.html)

But now i click Filter icon in pivotgrid it gets a  postback and filter window is not opened.

When i click filter icon i want to open the Filter window asynchronously.

Code:

 private void ProcessPostBackControls(Control control)
        {
            if (control is RadComboBox)
            {
                if ((control as RadComboBox).OnClientSelectedIndexChanged.Equals("Telerik.Web.UI.Grid.ChangePageSizeComboHandler"))
                {
                    (control as RadComboBox).OnClientSelectedIndexChanged = "sppds_gridPageSizeChanged";
                }
            }
            else if (control is Button)
            {
                    if (!(((Button)control).CssClass.Equals("rgFilter")) && !(((Button)control).CssClass.Equals("rpgFilter")))
                    {
                        ((Button)control).OnClientClick = GetPostBackReference(control.ClientID.Replace('_', '$'), "null", true);
                        ((Button)control).OnClientClick += "return false;";
                    }
            }
            else if (control is ImageButton)
            {
                    ((ImageButton)control).OnClientClick = GetPostBackReference(control.ClientID.Replace('_', '$'), "null", true);
                    ((ImageButton)control).OnClientClick += "return false;";
            }

            foreach (Control child in control.Controls)
                ProcessPostBackControls(child);
        }

The above code works fine for radgrid Filtering and paging but does not work for Pivotgrid Filtering.


Am i missing anything here?
please help me to resolve this issue.
Tsvetoslav
Telerik team
 answered on 13 Aug 2013
1 answer
120 views
Hi Telerik Users and Telerik Team,

i am facing exactly the same behavior as described by Maxims Post
[http://www.telerik.com/community/forums/aspnet-ajax/grid/height-isn-t-correct-if-grid-set-as-visible-at-ajax-request.aspx].
All of his Pictures match my situation.

But it is not only a height-rendering-problem, the colgroups-width is to small (i assume Maxims cols width is fixed, mine is auto-sized).

At first: 
I have a Webapplication (ASP.Net Framework 4), i have installed the latest build of Telerik asp.net controls. I am using radAjaxpanels.
The Parts of the Webapp are loaded via .ascx-controls in an asp-panel. The loading itself is ajaxfied. Everthing works pretty fine so far.
I have no javascript-errors or stuff like this, which could cause the inccorect rendering.
The render-problems appear in all browsers in the same way (i have tested with IE, FF, Chrome - all latest versions)

The incorrect rendering:
Whenever the radGrid's first appearance in a session is created via ajax-request, the rendering-problems as described by Maxim happen.
From now on this behavior wont come back, it appears only once. I can jump through the application and everthing renders correctly.

Whenever the radGrid's first appearance in a session is created via (full) postback, the incorrect behavior will never happen.

I allready set the grids property 'EnableAjaxSkinRendering' to true and i tried the sender.repaint()-method on the client-event 'OnGridCreated'. However this doesn't affect the incorrect rendering.

My thoughts on this are:
With some client-side alerts i can see that whenever the radGrid's first appearance is created via ajax-request,
the sizing of radgrid happens befor the styles are assigned (see the Without-styles.png from Maxim). 
So after sizing the styles get assigned and now the size-properties are inccorect.


My Questions:
Is there an appropriate event after the styles for radgrid are assigned?
I would try some stuff at this point to check if my thoughts are leading to the right direction.

Do you have any other suggestions how i could handle this behavior?

Greetings Philipp
Eyup
Telerik team
 answered on 13 Aug 2013
2 answers
123 views

Hi,

 I have a master page with an update panel. The update panel is refreshed periodically by a timer.
On a child page I have RadWindowManger and I open a RadWindow of that page.

When the an Ajax call is made to update the update panel on the master page the RadWindow closes. I tested and verified that the call is an Ajax call on the master page and not a full postback.

This is the update panel on master page:
<asp:UpdatePanel runat="server" ID="pnlWorldTime" UpdateMode="Conditional" >
   <ContentTemplate>
       <asp:Timer runat="server" ID="tWorldClock" Interval="10000" OnTick="tWorldClock_Tick" />
       <asp:Literal ID="ltrWordTime" runat="server"></asp:Literal>
       <asp:HiddenField ID="hfRadWindowOpen" runat="server" />
   </ContentTemplate>
</asp:UpdatePanel>

This is the RadWindowManger on the child page:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="true" VisibleStatusbar="false"
    AutoSize="true" ShowContentDuringLoad="false" Behaviors="Resize, move, Close" Skin="DD"
    EnableEmbeddedSkins="false" EnableTheming="true"  DestroyOnClose="true" OnClientClose="OnClientClose">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server"  />
    </Windows>
    <AlertTemplate>
        <div class="alert-icon"></div>
        <div class="rwDialogPopup radalert">
            <div class="rwDialogText">
                {1}
            </div>
            <div class="alert-button">
                <a onclick="$find('{0}').close();" class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span> </span>
                </a>
            </div>
        </div>
    </AlertTemplate>
    <ConfirmTemplate>
        <div class="rwDialogPopup radconfirm">         
            <div class="rwDialogText">
                {1}        
            </div>                     
            <div class="confirm-buttons">
                <a onclick="$find('{0}').close(true);" class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan"><span class="rwInnerSpan"><img src="../images/buttons/delete_room.png" alt="" /></span></span>
                </a>
                <a onclick="$find('{0}').close(false);" class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span>
                </a>
            </div>
        </div>
    </ConfirmTemplate>
</telerik:RadWindowManager>


Any ideas?

Thanks

Tamir
Tamir
Top achievements
Rank 1
 answered on 13 Aug 2013
3 answers
353 views
Hi Community

Does radinput support auto capitalization of input? Any property that can be set to capitalize the input?

Thankyou
Senthil
Princy
Top achievements
Rank 2
 answered on 13 Aug 2013
8 answers
391 views
Hi,
 
If a user types into the combobox normally it works fine, but it you copy/paste text into the combo box it does pick up the values on post back.

Is this a know issue?

I tried this fix

 
var $ = $telerik.$;
 
var $T = Telerik.Web.UI;
 
var $p = Telerik.Web.UI.RadComboBox.prototype;
 
var onPaste = $p._onPaste;
 
$p._onPaste = function (e) {
 
text = this.get_text();
 
this._updateFilterText = true;
 
};

and it fires properly but the value of this.get_text(); is empty if data has been pasted in there.

this is similar to http://www.telerik.com/community/forums/aspnet-mvc/combobox/autocomplete-copy-and-paste-not-working-in-ie.aspx#1554552

thanks
Toby
Hristo Valyavicharski
Telerik team
 answered on 13 Aug 2013
1 answer
92 views
Hello,
i Have a radslider inside a radtab and i am also using the update panel of asp, and when i change values of the slider and click a button that does a async trigger, when i change tabs the slider disappears, but only in chrome, IE works fine.
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2013
7 answers
313 views
Hello,

I have a nested RadWindow in RadListView control which I managed to open, but after it is closed, I cannot open it anymore because the $find function returns null.

I don't need it to open on page load, it should be opened when user clicks on the <a> element.

It should do a postback only when user clicks on the button that will be inside the window (which I left out in the following code because that part is not implemented yet).

Current code:

<telerik:RadAjaxPanel runat="server" ID="rapConfiguration" LoadingPanelID="ralpConfiguration">
          <telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px">
               <ContentTemplate>
                    <p style="text-align: center;">
                         Random text.
                    </p>
               </ContentTemplate>
          </telerik:RadWindow>
 
    <a href="javascript:void(0)" onclick="OpenDialog(); return false">
        <div style="width:180px; float:left; margin-top:10px; margin-bottom:10px;">
            <div style="width:180px; float:left; text-align:center;"><img src="../Images/add_user.png" width="60px" height="60px" /></div>
            <div style="margin-top:5px; width:180px; float:left; text-align:center; font-family: Arial, Helvetica, sans-serif;">Add users</div>
        </div>
    </a>
</telerik:RadAjaxPanel>
<telerik:RadCodeBlock runat="server" ID="rdbScripts">
<script type="text/javascript">
        function OpenDialog() {
            var temp = $('div[id$="modalPopup"]').first();
            var wnd = $find(temp.attr("id"));
             wnd.show();
         }
</script>      
</telerik:RadCodeBlock>



Thank you.
Dan
Top achievements
Rank 1
 answered on 13 Aug 2013
1 answer
164 views
Hello,

I'm having problems changing the dialog button text (for link manager and image manager ) in code behind. 

I was able to change the text for the spellchecker by doing the following:
oRadEd.Localization.Main.SpellCheckEnd = "MyText";

If I try to do something similar for the Dialog windows It is not possible since oRadEd.Localization only offers to change Main, Modules and Tools text. I don't have access to the dialog text. 

The reason why we must do this that way is because we store the translation in database. 
Ianko
Telerik team
 answered on 13 Aug 2013
2 answers
127 views
I'm trying to develop a tabstrip where the selected css and the hovered css are the same.  However, what happens is the following:
  -  When the tab is selected, hover over over the selected item.  
  -  Mouse away from the selected tab
  -  The selected tab no longer returns back to its selected css state, it returns back to the css class of the tab instead.

See the below code snippet for an example.  Is there an easy solution i'm missing?

<%@ Page Language="C#" AutoEventWireup="true" Inherits="Testing2.TestRadTabs" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Test with Tabs</title>
    <style type="text/css">
        .tabCSS
        {
            background-color:#cde3ee;
            color:White;
            padding-top:5px;
            padding-bottom:5px;
            font-size:14px;
            font-weight:bold;
        }
        .selectedCSS
        {
            background-color:#5ba7cb !important;
            color:White;
            padding-top:5px;
            padding-bottom:5px;
            font-size:14px;
            font-weight:bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager>
    <telerik:RadTabStrip ID="tsMessages" runat="server" Width="100%" MultiPageID="mpMessages" EnableEmbeddedSkins="false">
        <Tabs>
            <telerik:RadTab Text="Inbox" CssClass="tabCSS" HoveredCssClass="selectedCSS" SelectedCssClass="selectedCSS" Selected="true"></telerik:RadTab>
            <telerik:RadTab Text="Sent"  CssClass="tabCSS" HoveredCssClass="selectedCSS" SelectedCssClass="selectedCSS"></telerik:RadTab>
            <telerik:RadTab Text="Deleted" CssClass="tabCSS" HoveredCssClass="selectedCSS" SelectedCssClass="selectedCSS"></telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="mpMessages" runat="server">
        <telerik:RadPageView ID="pageOne" runat="server" Selected="true">
            Inbox messages.
        </telerik:RadPageView>
        <telerik:RadPageView ID="pageTwo" runat="server">
            Sent messages.
        </telerik:RadPageView>
        <telerik:RadPageView ID="pageThree" runat="server">
            Deleted messages.
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    </form>
</body>
</html>


Thanks again or the help!

-  Pat
Pat
Top achievements
Rank 1
 answered on 13 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?