Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
Hi Folks,

Is there a way that I can include the skin selecter in my application? I want the user to have a choice of what skin they use for their own portal and for them to see the combobox you see when you select a skin from an elements smart tag in the design view.

Can this be done?

Cheers,
Ian
Schlurk
Top achievements
Rank 2
 answered on 26 Jan 2010
0 answers
216 views

I have a RadMenu, an overloaded instance RadPanelBar and the RadEditor solution file intergrated into my sitecollection. the menu and the panelbar are both stored in masterpage. I don't want to use any script in the RadMenu, so I EnableEmbeddedScripts=false. However, it disables all scripts for all Telerik controls.

On the RadPanelbar, I can explicitly say EnableEmbeddedScripts="true", to no effect, and when I use page where RadEditor replaces the standard control, I get the perpetual 'Scripts are loading' message. 

If I put the change in the appsettings  area of the web-config

Telerik.Menu.EnableEmbeddedScripts value="false", then the same problem happens again.

Any ideas what is going on?

i'm using 2009 Q3 controls.

EDIT:
Added the RadPanelBar scripts into the script manager, and moved them to the layout folder,
   <asp:ScriptReference Path="/_layouts/scripts/Common/jQueryPlugins.js"></asp:ScriptReference>   <asp:ScriptReference Path="~/Scripts/Common/Navigation/NavigationScripts.js" />
And again nothing.

Paul Lawrence
Top achievements
Rank 1
 asked on 26 Jan 2010
2 answers
123 views
Hi

I have a radeditor in an update panel and a button that sets the format of the content of the editor by doing editor.pasteHtml().

If I make my updates to the editor, then get the content of the editor by using this.editorExample.Content via a regular postback, the content is correct.  However, when I put the editor in an updatePanel, make some format changes and do a partial postback, when I access the content of the editor, it does not know about the new format changes I have made.  I assume this has to do with the fact that there is a hidden iFrame which is not getting the updates in the partial postback, but is there a way I can access the correct content by using something other than an updatepanel (maybe a RadXMLHttpPanel)?

Thanks in advance
Michael Pullella
Top achievements
Rank 1
 answered on 26 Jan 2010
7 answers
240 views
Hi

I'd like to execute some client-side code right after an item has expanded.

How can I do that?

 

Yana
Telerik team
 answered on 26 Jan 2010
4 answers
119 views
Hi,

I am trying to modify the custom skin applied to my radgrid. I have tried the steps in
 http://blogs.telerik.com/DimoDimov/Posts/08-06-17/How_To_Override_Styles_in_a_RadControl_for_ASP_NET_AJAX_Embedded_Skin.aspx?ReturnURL=%2fDimoDimov%2fPosts.aspx

In my case, I am using vista as the skin and want to modify the selected row property.

.SelectedRow_vista{}
is modified to
div.SelectedRow_vista{}

However, I still get the same old stying applied to my radgrid.  Can someone help me please?

kind regards,

Anu
Anu
Top achievements
Rank 1
 answered on 26 Jan 2010
1 answer
110 views
Hello there,

After fighting a bit and reading a lot about client binding in RadGrid's I came to the conclusion that many features are missing. Unfortunately some of these restrictions are mentioned in different topics in this forum, on third-party websites and in some places in the documentation. What I miss a lot and what would save me a lot of time reading information all around the globe was documentation. A simple "pros & cons" section when using client binding. I would like to summarize some of the features when working with client binding of RadGrid's:

  • "When adding the DataBinding settings for a RadGrid on PreRender, you need to explicitly rebind it in order the grid to be populated.";
  • no hierarchy support;
  • no master/detail table view support;
  • no support for declarative sort expressions (it breaks header design);
  • no template column support (and anything that involves using the Eval() method);
  • missing or broken support for UseStaticHeaders="true" (it breaks the design of the grid);
  • ...

They may be more but I am sure some of these features have alternatives and worth mentioning. Such a section in the documentation would significantly help developers when taking a decision of use server or client bound RadGrid.

Best regards,
Valery Dachev.
Yavor
Telerik team
 answered on 26 Jan 2010
6 answers
179 views
Hi,

we're about buying subscription renewal so we're testing AJAX components. So far, we're fully excited about it, great work.

We were trying to accomplish specific ToolTip implementation, but with no avail.

Our goal
To have paginated Repeater (Int32 list as DataSource) inside ajaxified panel using RadAjaxManager, HyperLink in each item has attached ajaxified tooltip via RadToolTipManager, that simply displays its Int32 value. When page gets changed, TargetControls should be reinitiated (as your demos demonstrate). Thus, I placed the RadToolTipManager into UpdatedControls collection of RadAjaxManager, too. But here it goes. When I put mouse over the item, the ToolTip just blinks and disappeared. When I remove RadToolTipManager from UpdatedControls, values are displayed correctly. But the tooltip does not get updated when page change occurs.

My simplified code is attached below:

TestToolTip.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestToolTip.aspx.cs" Inherits="TestToolTip" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
     
        <asp:ScriptManager ID="sman" runat="server" /> 
     
        <telerik:RadAjaxManager ID="aman" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="pnlList"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlList" /> 
                    <telerik:AjaxUpdatedControl ControlID="tooltip1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
        </telerik:RadAjaxManager> 
     
        <div style="padding: 30px; border: 1px solid #000"> 
            <telerik:RadToolTipManager ID="tooltip1" runat="server" RelativeTo="Mouse" 
                Skin="Black" Width="50" Height="50" Position="MiddleRight" OnAjaxUpdate="OnUpdate" /> 
             
            <asp:Panel ID="pnlList" runat="server"> 
                <asp:Repeater ID="list1" runat="server" OnItemDataBound="OnItemBound"> 
                <ItemTemplate> 
                    <asp:LinkButton ID="lnk1" runat="server" Text="Test" />, <%# Container.DataItem %><br /> 
                </ItemTemplate> 
                </asp:Repeater> 
                 
                <asp:LinkButton ID="prev" runat="server" Text="prev" OnClick="OnMovePageMinus" /> |  
                <asp:LinkButton ID="next" runat="server" Text="next" OnClick="OnMovePagePlus" /> 
            </asp:Panel> 
        </div> 
     
    </form> 
</body> 
</html> 

TestToolTip.aspx.cs
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
using Telerik.Web.UI; 
 
public partial class TestToolTip : System.Web.UI.Page 
{ 
    protected const int PageSize = 4; 
     
    protected int PageIndex 
    { 
        get { 
            if (ViewState["PageIndex"] == null) 
            { 
                ViewState["PageIndex"] = 0; 
            } 
             
            return (int)ViewState["PageIndex"]; 
        } 
        set {ViewState["PageIndex"] = value;} 
    } 
     
    protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!IsPostBack) 
        { 
            LoadList(); 
        } 
    } 
     
    protected void LoadList() 
    { 
        tooltip1.TargetControls.Clear(); 
         
        List<int> ints = new List<int>(){ 1, 2, 3, 4, 5, 6, 7 }; 
         
        List<int> source = new List<int>(); 
         
        for (int i = PageIndex * PageSize; i < (PageIndex * PageSize) + PageSize && i < ints.Count; i++) 
        { 
            source.Add(ints[i]); 
        } 
         
        list1.DataSource = source; 
        list1.DataBind(); 
    } 
     
    protected void OnItemBound(object sender, RepeaterItemEventArgs e) 
    { 
        if (e.Item.DataItem == null) return; 
         
        Control lnk1 = e.Item.FindControl("lnk1"); 
         
        tooltip1.TargetControls.Add(lnk1.ClientID, e.Item.DataItem.ToString(), true); 
    } 
     
    protected void OnUpdate(object sender, ToolTipUpdateEventArgs e) 
    { 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(new LiteralControl(e.Value)); 
    } 
     
    protected void OnMovePageMinus(object sender, EventArgs e) 
    { 
        PageIndex--; 
         
        LoadList(); 
    } 
     
    protected void OnMovePagePlus(object sender, EventArgs e) 
    { 
        PageIndex++; 
         
        LoadList(); 
    } 
} 
 

Thanks very much for any help.
Svetlina Anati
Telerik team
 answered on 26 Jan 2010
3 answers
280 views
Hi,

I found a lot of bugs in the RadWindow control. First of all, the size of the control is not rendered properly in the Opera 10.x browser. if you open this link (http://demos.telerik.com/aspnet-ajax/window/examples/radwindowobject/defaultcs.aspx) in Opera and Chrome you can see the difference. The second problem with Opera and RadWindow is annoying horizontal scrollbar which appears when you open RadWindow with modal parameter set to true. The sample is available here (http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window) when you click the "Edit" link.  The third problem occurs when you are moving the RadWindow.  Unfortunately, during this action the target page is not visible. Moreover, there is a lot of problems with auto size. For example, when you open this link (http://demos.telerik.com/aspnet-ajax/window/examples/autosize/defaultcs.aspx) in the IE8 browser you can see that RadWindow doesn`t look properly. In addition, the auto size mode doesn`t work when the target page consists of html table and scrollbars are displayed. 
Is there any chance to get bug fixes?

Thanks in advance for your help,
Martin
Svetlina Anati
Telerik team
 answered on 26 Jan 2010
1 answer
126 views
In order to reproduce the issue,
1. Go to http://www.chevronlubricants.com/
2. Select United states as your country, and click "Go" button.
3. Click on "Select a Country" link at the the top right hand corner
4. You will go back to /welcome.aspx where the Combobox remembers the "United States" setting. Without changing anything in the combobox, click "Go" button.
5. You will see the issue, which is that instead of posting back correctly, it just refreshes the page and loses the "United States" setting.

There is a requiredfieldvalidator on the combobox, which appears to work correctly, except this weird postback issue when coming to the /welcome.aspx for a second time
Simon
Telerik team
 answered on 26 Jan 2010
1 answer
129 views
Hi

I'm using a couple of grids in my docks. When I try to enable Dock's EnableViewState function, I figured out I can't reach my grid's item.DataItem values anymore. What's the reason? Any help?

Here's my delete function:
    protected void btnDelete_Click(object sender, EventArgs e) 
    { 
        foreach (GridItem item in this.grdList.SelectedItems) 
        { 
            ShoppingCartItem cart = (ShoppingCartItem)item.DataItem; 
            SiteManager.Params.CurrentUserShoppingCart.Remove(cart); 
        } 
        RefreshLists(); 
    } 

Here's my init:
        protected override void OnInit(System.EventArgs e) 
        { 
            //find dock layouts
            DockLayout dockLayout = (DockLayout)FindControl("dockLayout"); 
            dockLayout.EnableViewState = false; 
            dockLayout.StoreLayoutInViewState = false; 
            PrepareLayoutDocks(dockLayout); 
            //this.EnableViewState = false; 
            base.OnInit(e); 
        } 



Pero
Telerik team
 answered on 26 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?