Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
97 views
So I have a items that I need fill into the combo box without having to bind the combo to a table in the database. How do I do that?

Nencho
Telerik team
 answered on 06 Aug 2012
1 answer
108 views
Such "topology" how should do ???
 
1, The "topology" is divided into three layers. Click on the first floor, it will turn to the second floor of the corresponding. Click on the second floor, jump to the third floor of the corresponding.
 
2,The "Topology" dynamic generation according to the database of the "table relationship".
 
Is there instance can reference ?    Is there some third party controls   of  telerik  can be used? 
 
Thanks a lot... 
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2012
2 answers
196 views
Hi,

I have something like the following code:

<div id="wrapper" class="fontsize-2">
    <telerik:RadDatePicker ...>
        <DateInput font-size="1.0em"></DateInput>
    </telerik:RadDatePicker>
</div>

fontsize-2 is dynamically added by a javascript depending on the user's preference. There can be different font-sizes.
The fontsize-2 class is defined as:
#wrapper.fontsize-2 { font-size: 133%; line-height: 1.4285; }


However, it is not working. The font-size of the raddatepicker does not increase.
What can I do?


Thanks in advance.

Rafferty
Rafferty
Top achievements
Rank 1
 answered on 06 Aug 2012
7 answers
205 views
Hi everyone,

I followed Telerik examples in order to add tooltips on my chart. I have just copied and paste the example and this is working.
I tried to do the same on one of my chart. I add every items on the serie with a "for" loop"

o_gaussianItem.YValue = f_resultFormula;
o_gaussianCurve.Items.Add(o_gaussianItem);

So, in order to have my tooltips, i made the following modification :

o_gaussianItem.YValue = f_resultFormula;
o_gaussianItem.ActiveRegion.Tooltip = "x :" + Math.Round(o_gaussianItem.YValue,3);
o_gaussianCurve.Items.Add(o_gaussianItem);

I have also added a RadTooltipManager on my aspx page :

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"
 width="200px" Animation="None" Position="TopCenter" EnableShadow="true"
    ToolTipZoneID="CHT_AvgHistogramme" AutoTooltipify="true">
</telerik:RadToolTipManager>

But this is not working. :/
I have 200 points on my spline.
Any help ? :)
Maxime
Top achievements
Rank 1
 answered on 06 Aug 2012
1 answer
76 views

Hello,

Currently I am using telerik Asp.Net Radchart.

How can I use 2D feature for this chart without integrating with Silverlight?

Thanks.

Peshito
Telerik team
 answered on 06 Aug 2012
1 answer
401 views
HI,

I am using below code
<telerik:GridBoundColumn DataField="ActualAuctionStartTime" HeaderText="Actual Start" DataType="System.DateTime"
                            SortExpression="ActualAuctionStartTime" UniqueName="ActualAuctionStartTime" DataFormatString="{0:MM/dd/yyyy HH:mm}">
                            <HeaderStyle Width="10%" />
                        </telerik:GridBoundColumn>

Now my Server is in PST timezone while i am accessing this in IST time zone.

When Time is : 7/31/2012 22:56 its converting it to 08/01/2012 11:26.

Can you please resolve my problem as soon as possible. Its been critical to me.

Thanks
Dheeraj
Andrey
Telerik team
 answered on 06 Aug 2012
1 answer
90 views
I have a radgrid that displays product information. One of the product information is Product Group. In EditForm, I have a RadComboBox that will enable the user to change the Product Group for the product. The RadComboBox will lists all available Product Groups (sorted in ascending).

For example:
I have a product Z that is currently a member of Product Group B. There are 3 Product Groups available, namely A, B and C. Currently, when I open the EditForm for product Z, the item that is displayed as the default product group on the RadComboBox is Product Group A. I want the combobox to display the default product group based on the product's current product group, in this case Product Group B.

I tried to follow this guide (http://www.telerik.com/help/aspnet-ajax/combobox-insert-default-item-when-databinding.html), but when the RadComboBox DataBound event is fired, I don't have the information on which product calls for it, hence I cannot make it display the correct product group name.

Currently I put the code for inside RadGrid ItemDataBound event. I get the default product group to be displayed accordingly but it creates a duplicate and I don't think this is the correct way to do this.

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
    {
        GridEditFormItem item = e.Item as GridEditFormItem;
         RadComboBox statusComboBox = (RadComboBox)item.FindControl("RadComboBox1");
 
        // get the parent GridDataItem for this form
        // (i.e. which row this edit form is generated for)
        GridDataItem parentGridItem;
        parentGridItem = item.ParentItem;
 
        // put the current product group on combobox's first entry
        statusComboBox.Items.Insert(0, new RadComboBoxItem(parentGridItem["product_group"].Text, string.Empty));
    }
}

Please help.

Thanks.
Iris
Top achievements
Rank 1
 answered on 06 Aug 2012
6 answers
324 views
Hi all,, 

I have a check box and 3 combo box.. when the check box checked that time only the combo box state change to enable.. when check box state is false combo gone disabled.. this validation work at client side 

Script
<script type="text/javascript" language="javascript">
        function EnableControl_3() {
            var combo3 = $find("<%= RadCmbxSections.ClientID %>");
            var combo4 = $find("<%= RadCmbxDepartment.ClientID %>");
            var combo = $find("<%= RadCmbxEmployee.ClientID %>");
 
            var checkbox = document.getElementById('<%= chkEmployee.ClientID %>');
            if (checkbox.checked) {
                combo.enable();
 
                combo3.enable();
                combo4.enable();
            } else {
                combo.disable();
 
                combo3.disable();
                combo4.disable();
            }
        }
    </script>

Aspx
<telerik:RadComboBox runat="server" ID="RadCmbxEmployee" Height="190px" EmptyMessage="Select supplier"
                                                            Width="410px" MarkFirstMatch="true" DataSourceID="SqlDataSource2" EnableLoadOnDemand="true"
                                                            HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"
                                                            OnDataBound="RadCmbxEmployee_DataBound" OnItemDataBound="RadCmbxEmployee_ItemDataBound"
                                                            OnItemsRequested="RadCmbxEmployee_ItemsRequested" AutoPostBack="True">
                                                            <HeaderTemplate>
                                                                <ul class="rcbHovered">
                                                                    <li class="col1">Name</li>
                                                                    <li class="col2">Code</li>
                                                                    <li class="col3">ContactPerson</li>
                                                                </ul>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <ul>
                                                                    <li class="col1">
                                                                        <%#DataBinder.Eval(Container.DataItem, "Name")%></li>
                                                                    <li class="col2">
                                                                        <%#DataBinder.Eval(Container.DataItem, "Code")%></li>
                                                                    <li class="col3">
                                                                        <%#DataBinder.Eval(Container.DataItem, "ContactPerson")%></li>
                                                                </ul>
                                                            </ItemTemplate>
                                                            <FooterTemplate>
                                                                A total of
                                                                <asp:Literal runat="server" ID="RadComboItemsCount" />
                                                                items
                                                            </FooterTemplate>
                                                        </telerik:RadComboBox>

Combo box auto post back is true..
when i try to select a row of that combo box the combo box state changed to disable automatically.. 
but still the check box state has been checked.. why this happen like this..

Regards,

Prassin
Prassin
Top achievements
Rank 1
 answered on 06 Aug 2012
3 answers
112 views
Hi,

Added main node(Main1). 
Under the main node, added sub node (Sub1). Again under this, added another sub node (sub2) .. etc upto nodes 170 levels

tree is formed like
Main1
 - Sub1
- Sub2
- Sub3
-Sub4
-Sub5
...............etc upto -Sub170


Problem1: Mozilla Firefox is not getting display after subnode 92 (1FirefoxProblem.jpg).

Problem2: Some times nodes are displaying like vertical line is not attached with the parent node(Tree not displaying.jpg).  
Chakradhar
Top achievements
Rank 1
 answered on 06 Aug 2012
3 answers
190 views
I have a grid that uses an edit form template. The template includes a dropdown that needs to control the visibility of other controls on the form based on the selection. I intend to do this with a selected index changed event. How do I get a reference to the edit form controls on the page within a SelectedIndexChanged event of a dropdown?

<EditFormSettings EditFormType="Template">
    <EditColumn ButtonType="ImageButton" />
    <FormTemplate>
        <table cellpadding="2" cellspacing="1" border="0" style="font-size: small; border-collapse: collapse;
            background: white;">
            <tr valign="top">
                <td colspan="2" align="left">
                    <b>Document Details</b>
                </td>
            </tr>
            <tr valign="top">
                <td class="ContentWhite">
                    <span class="Error">*</span>Document Type:
                </td>
                <td class="ContentWhite" align="left">
                    <telerik:RadComboBox ID="rcbDocumentType" runat="server" EnableItemCaching="true" MaxHeight="300px"
                     OnSelectedIndexChanged="rcbDocumentType_SelectedIndexChanged">
                        <Items>
                            <telerik:RadComboBoxItem Value="-Select-" Text="-Select-" />
                            <telerik:RadComboBoxItem Value="1" Text="W9" />
                            <telerik:RadComboBoxItem Value="2" Text="E&O" />
                            <telerik:RadComboBoxItem Value="3" Text="License" />
                            <telerik:RadComboBoxItem Value="4" Text="Vendor Acknowledgement" />
                            <telerik:RadComboBoxItem Value="5" Text="Master Listing Agreement" />
                            <telerik:RadComboBoxItem Value="6" Text="State Registration" />
                        </Items>
                    </telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="None"
                        ValidationGroup="vgDocument" ControlToValidate="rcbDocumentType" InitialValue="-Select-"
                        ErrorMessage=" Document Type is required " />
                </td>
            </tr>
            <tr valign="top">
                <td class="ContentWhite">
                    <asp:Label ID="lblManagingBrokerFirstName" runat="server" Text="First Name:" Visible="false" />
                </td>
                <td class="ContentWhite" align="left">
                    <telerik:RadTextBox ID="rtbManagingBrokerFirstName" runat="server" MaxLength="128" />
                </td>
            </tr>
            <tr valign="top">
                <td class="ContentWhite">
                    <asp:Label ID="lblManagingBrokerLastName" runat="server" Text="Last Name:" />
                </td>
                <td class="ContentWhite" align="left">
                    <telerik:RadTextBox ID="rtbManagingBrokerLastName" runat="server" MaxLength="128" />
                </td>
            </tr>


How do I toggle the visibility of the radtextbox (rtbManagingBrokerLastName) in the selected index changed event of the combobox (rcbDocumentType)?
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?