Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
I've got a combo box with CheckBoxes set true and some custom CssClasses being applied to the Input and Dropdown. When the combobox is expanded and an item checked state changes, the input gets rewritten with only the rcbInput class applied, the one from InputCssClass is not carried forward.
Nencho
Telerik team
 answered on 26 Oct 2012
1 answer
121 views
First, sorry for my bad English; i'm Dutch.

I'm new to this forum, and new to the Telerik Controls for AJAX. Currently I'm trying the demo, to see if it works for me.

I'm having a strang problem, witch only occurs in Internet Explorer (9), not in Chrome. When I'm adding a RadComboBox to my screen, it's perfectly in place. But, when I'm viewing my site in IE9, the control is out of position. It has moved about 25px down. When I go with my cursor/mouse, over the control, it jumps in the right position. Very strange.

Can anybody help me?

update:
I found out that the whole DIV moves back in the right position, when I hover over the control. Only when I set the DIV's position to absolute, nothing happens. But, then there's white space above the DIV, which I don't like. 
Nencho
Telerik team
 answered on 26 Oct 2012
1 answer
58 views
My guess is there's no way to do this, but any chance is there a way say, if a user clicks a button, it opens a radWindow on the page. If they then hit the browser's back button, is there a way to code it so in this situation clicking the browser's back button it would just close the radWindow (when the radWindow is visible, otherwise, it would work as normal)?

Our users often try to use the back button for everything, despite there being very visible close/cancel/back custom buttons on a page.
Marin Bratanov
Telerik team
 answered on 26 Oct 2012
1 answer
100 views
Hello,
I am using RadToolTip control to display a Tooltip. its working fine on IE versions but not working on Mozilla and chrome version.
Any suggestion would be appreciated.
Thanks
Marin Bratanov
Telerik team
 answered on 26 Oct 2012
1 answer
59 views
Hi,
I try to create a selection board when clicking on a dropdownlist.
here is my code and it works unless at Android version 2.2.3.

<asp:DropDownList ID="itemDropDownList" runat="server" AutoPostBack="True">
    <asp:ListItem text="(Select - One)"/>
</asp:DropDownList>
 
<telerik:RadToolTip runat="server" ID="booboo" HideEvent="ManualClose" Position="BottomRight" Width="350px" Height="70px" Animation="Fade" ShowEvent="OnClick" ShowDelay="0" RelativeTo="Element" TargetControlID="itemDropDownList" Skin="Windows7">
    I'm your RADTOOLTIP
</telerik:RadToolTip>

Thanks
Tabitha
Marin Bratanov
Telerik team
 answered on 26 Oct 2012
14 answers
685 views
Hi all,

I have  RadNumericTextBox with 10 DecimalDigits. I would like to hide any trailing zeros. If value is 0.1456000000, I want to display 0.1456.

Any ideas?
 


Vasil
Telerik team
 answered on 26 Oct 2012
4 answers
65 views
Referring to forum append: http://www.telerik.com/community/forums/aspnet-ajax/grid/gridhtmleditorcolumn---how-to-control-size-in-edit-form.aspx
I'm still learning the grid.  I see how the size of the actual editing control (either the GridHtmlEditorColumn itself or a custom) can be controled.

What I'd like to know is if there's a way to control the area of the surface on which the editor itself opens.

What I mean is, if for example I set the editor height to 600 pixels given the technique outlined above, the editor overflows the bounds of the entire grid.  Under some conditions it could obscure other controls.

Anyway to control this?

Boris
Top achievements
Rank 1
 answered on 26 Oct 2012
1 answer
443 views

I have followed the examples found elsewhere in the forums for adding a radcombobox to a listbox. Now that I have that working, how do I add the items to the control?
In the item template I have the following:

<ItemTemplate>
   <span> <%# DataBinder.Eval(Container, "Text")%>
   <telerik:RadComboBox ID="radTimeClockIDs" runat="server" CausesValidation="False">
    <Items>
        <telerik:RadComboBoxItem Text="1" Value="1"/>
        <telerik:RadComboBoxItem Text="2" Value="2"/>
    </Items>
   </telerik:RadComboBox>
   </span>
</ItemTemplate>

In the codebehind, I am adding items to the radlistbox, but they do not appear. I suspect that is because of the item template.

Now that I have the template in place, how do I add list items programmatically? Also, preliminarily I simply placed some items in the RadComboBox that is displayed. However, I will need to be able to put different items in the combobox based on the item that is placed as the list item.

My specific scenario requires a list of items that can be checked so the information can be supplied to a database function, however, each of the items that will populate the list will have a secondary value that is part of a configuration setting. The possible configuration values should appear in the RadComboBox, but each combobox may hold different values.
Essentially it will be three columns in the listbox. One with a checkbox, one with a text value and one with a combobox that is filled based on the text value in the listitem.

Is that possible with this control? If not, is there a better solution?

Thanks!

Nencho
Telerik team
 answered on 26 Oct 2012
4 answers
491 views
hi guys (and telerik)

i am creating a custom skin based on the instruction from this page: http://www.telerik.com/help/aspnet-ajax/grdcreatingnewskins.html

it references another page: http://demos.telerik.com/aspnet-ajax/grid/examples/styles/customskin/defaultcs.aspx

where you can get the full CSS for the grid; however the CSS in the example is for the calendar?!

anybody have the CSS for the RadGrid (any of the skins) that i can manipulate?

Cheers
Galin
Telerik team
 answered on 26 Oct 2012
6 answers
117 views
Dear Supporter,

I've just started using Telerik, I could achieve a few things very nicely, but now I've run into a strange problem.
I'm trying to bind a grid to a hierarchical structure of business objects. I've set up the NeedDataSource event handler and even the DetailTableDataBind, and with the HierarchyDefaultExpanded = true parameter the hierarchy displays in the grid just as I need, the problem comes when the detail tables get collapsed and expanded again.

The code behind for a simple RadGrid (with 'RadGrid1' name):

public partial class Default : System.Web.UI.Page
{
    public class Customer
    {
        public int id { get; set; }
        public string name { get; set; }
        public string city { get; set; }
        public List<Contact> Contacts { get; set; }
    }
 
    public class Contact
    {
        public int id { get; set; }
        public string name { get; set; }
        public string email { get; set; }
    }
 
    public static List<Customer> Customers = new List<Customer> {
        new Customer() { id = 1, name = "Bridget", city = "New York", Contacts = new List<Contact>() {
                new Contact() { id = 1, name = "John", email = "johnny@hotmail.com" },
                new Contact() { id = 2, name = "Mark", email = "mark@hotmail.com" }
            }
        },
        new Customer() { id = 2, name = "Carol", city = "London", Contacts = new List<Contact>() {
                new Contact() { id = 1, name = "Henry", email = "henry@hotmail.com" },
                new Contact() { id = 2, name = "Hugo", email = "hugo@hotmail.com" },
            }
        }
    };
 
    void RadGrid1_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
    {
        GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
        e.DetailTableView.DataSource = ((Customer)dataItem.DataItem).Contacts;
    }
 
    void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        if (!e.IsFromDetailTable)
            RadGrid1.DataSource = Customers;
    }
 
    protected void Page_Init(object sender, EventArgs e)
    {
        RadGrid1.NeedDataSource += RadGrid1_NeedDataSource;
        RadGrid1.DetailTableDataBind += RadGrid1_DetailTableDataBind;
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;
            RadGrid1.MasterTableView.AutoGenerateColumns = true;
 
            RadGrid1.MasterTableView.DataKeyNames = new string[] { "id" };
 
            GridTableView contactsTable = new GridTableView(RadGrid1);
            contactsTable.AutoGenerateColumns = true;
 
            RadGrid1.MasterTableView.DetailTables.Add(contactsTable);
        }
    }
}


When I collapse a detail table (by clicking on the expand/collapse button at the left side of the master row) and when I try to expand that again, the DetailsTableDataBind event handler throws an exception, because it doesn't receive the real business object (of the master row) which would contain the needed Contacts child list (the dataItem.DataItem in  RadGrid1_DetailTableDataBind event handler is null after the collapse+expand action, but at first render it contains the needed Customer object as needed).

I have no more idea about the issue and I searched over the forum and googled a lot, but I always find solutions which binds to dataset or sqldatasources, but in our case custom classes is the only option.
I don't think I'm doing everything badly because the grid in full expanded mode displays correctly, only after collapse+expand the child table disappears (actually I think the master row's datasource is lost somewhere).

The pasted sample is a simplified version of our current situation, but it reflects my problem.
Btw. I was using RadControls for ASP.NET AJAX Q2 2012 SP2, Bin40 assemblies, 2012.2.912.40 versions.

Any help would be appreciated.


Regards,
Dexx
Andrey
Telerik team
 answered on 26 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?