Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
115 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
105 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
168 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
266 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
121 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
122 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
5 answers
241 views
Hi -

My goal is to have a selection of one ComboBox populate a Selection in another ComboBox. 
Example... Box 1 selection is Food, Box 2 selection would then have a collection of Food Items like cheese, bread or soda. 

Here is my code:

        RadPanelItem ProjectSearchItem = (RadPanelItem)RadPanelBar1.FindItemByValue("ProjectSearch");  
 
        RadComboBox projectGroupRadComboBox = (RadComboBox)ProjectSearchItem.FindControl("projectGroupRadComboBox");  
        IQueryable allProjectGroup = ProjectGroup.GetAllBindings();  
        projectGroupRadComboBox.DataSource = allProjectGroup;  
        projectGroupRadComboBox.DataValueField = "ID";  
        projectGroupRadComboBox.DataTextField = "Name";  
        projectGroupRadComboBox.DataBind();  
        projectGroupRadComboBox.Filter = RadComboBoxFilter.Contains;  
 
        if (projectGroupRadComboBox.SelectedValue != null && projectGroupRadComboBox.SelectedValue.Length > 0)  
        {  
          projectGroup = ProjectGroup.Get(Convert.ToInt32(projectGroupRadComboBox.SelectedValue));  
          RadComboBox projectNameRadComboBox = (RadComboBox)ProjectSearchItem.FindControl("projectNameRadComboBox");  
          IQueryable allProjectName = Project.GetAllBindings(projectGroup.DataModel.ID);  
          projectNameRadComboBox.DataSource = allProjectName;  
          projectNameRadComboBox.DataValueField = "ID";  
          projectNameRadComboBox.DataTextField = "Name";  
          projectNameRadComboBox.DataBind();  
          projectNameRadComboBox.Filter = RadComboBoxFilter.Contains;  
        }  
        else 
        {  
          RadComboBox projectNameRadComboBox = (RadComboBox)ProjectSearchItem.FindControl("projectNameRadComboBox");  
          IQueryable allProjectName = Project.GetAllBindings(null);  
          projectNameRadComboBox.DataSource = allProjectName;  
          projectNameRadComboBox.DataValueField = "ID";  
          projectNameRadComboBox.DataTextField = "Name";  
          projectNameRadComboBox.DataBind();  
          projectNameRadComboBox.Filter = RadComboBoxFilter.Contains;  
        } 

The if statement and next line contain my problem.

I am used to using .SelectedValue with DDLs to select the Value, but with ComboBoxes it is not working.  What do I use in place of .SelectedValue, or is it more complicated than that?  I have read other posts pertaining to this and don't know which direction to take.

Thanks!!
wen
Simon
Telerik team
 answered on 26 Jan 2010
1 answer
160 views
I'm using Visual Studio 2005 with the latest Telerik RadGrid component. We have disabled the AutoPostBack on the filter field and used JavaScript to intercept and stop the filter call made by the filter menu click. However we can find no way to then have a button on the page that then simulates the same call. Our attempts just won't work because the postback loses the filter details and when interrogating the grid filter values in the code-behind the select filter item is 'No Filter'.

Scenario:
1. Enter various filter values in columns and select the filter type from menu.
2. Click button that's posts back this detail and allows us to construct SQL to query on all column values.

We have tried a variety of options none of which seems to work (in VS2005 at least), can anyone point us in the right direction? Preferably with a detailed code example? You're help would be greatly appreciated!

CS. 
Tsvetoslav
Telerik team
 answered on 26 Jan 2010
1 answer
102 views

Hi,

I am working on an application generator and I need to code generic "browse" pages that automatically populate a grid with all instances of a given type. Everything in my application is object driven so I use an ObjectDataSource.

Problem : I need to bind some columns to property types that are not on the bindable type list... When the type is not bindable I just need to display the result of the ToSTring() method.

How can I do that ??

Thanks in advance,
Laurent.
Vlad
Telerik team
 answered on 26 Jan 2010
1 answer
79 views
http://demos.telerik.com/aspnet-ajax/splitter/examples/sp_tabview/defaultcs.aspx

We don't appear to have control of the text size nor the text fore color inside the Splitter Tabs. Is it because it's formatted inside of a skin? Can we access the text formatting options for the Splitter Tabs elsewhere?

We've tried many seemingly logical methods, all to no avail.

Thanks for any help you can offer because the text is too small for our particular application.

Svetlina Anati
Telerik team
 answered on 26 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?