Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
379 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
84 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
312 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
102 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
186 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
0 answers
103 views
Hello everybody, I have a problems. I want merge rows and header columns in radgrid? I will try, but I can't find merge rows. Have you any ideas? Thanks you very much? 
Pham
Top achievements
Rank 1
 asked on 06 Aug 2012
1 answer
118 views
Hello, I am trying to set the OnItemCommand in the code behind in visual basic with no luck.

For example, I am trying to set the property like this which works in C#,

grid1.ItemCommand += New GridCommandEventHandler(RadGridView_ItemCommand)
 However in VB.net I don't even have access to the ItemCommand event.

Any help is greatly appreciated.

Thanks,
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2012
1 answer
87 views
Hi!

I'm trying to use a very simple RadUpload control:

<telerik:RadUpload ID="LogoFileUpload" MaxFileInputsCount="1" ControlObjectsVisibility="None"
                            Skin="Web20" runat="server" />

Now I want increase the width of the text area and also the "Select" button.  How can I do this?

Thanks!
Princy
Top achievements
Rank 2
 answered on 06 Aug 2012
1 answer
137 views
I have a base page with the next code in the .aspx
<telerik:RadSplitter runat="Server" ID="splMain" Width="100%" BorderSize="0"
    BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal"
    VisibleDuringInit="false">
    <telerik:RadPane ID="topPane" runat="server" Height="60px" BackColor="#157164">
        <telerik:RadAjaxPanel ID="radAjaxPanel01" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            <telerik:RadMenu id="mnuTop01" runat="server" EnableViewState="false" CausesValidation="false" OnClientItemClicked="OnClientItemClicked" CollapseAnimation-Type="None" 
        EnableShadows="true" EnableRoundedCorners="true" Style="float: none; position:absolute; top:20px; z-index:2000;" Width="100%"  >       
            </telerik:RadMenu>
            <div class="div02" style="float: none; position:absolute; top:45px; height:16px; text-align:center;">
                <asp:Label ID="lblApp" runat="server" cssclass="tb2" Text="Inicio"/>
            </div>
        </telerik:RadAjaxPanel>
    </telerik:RadPane>
    <telerik:RadPane runat="server" ID="pnlContenido" Scrolling="Both" ContentUrl="ePageEmpty00.aspx?a=some" ShowContentDuringLoad="false">
    </telerik:RadPane>
</telerik:RadSplitter>

vía a javascript function I change the Label (LblApp) text.

function fnT(a) {
    var l = document.getElementById("lblApp");
    l.innerHTML = a;
}


Here is myquestion, I´m loading in the pnlContenido RadPane an external .aspx, how can I change the LblApp text, from the external.aspx:
I have tried this in the external.aspx, but it doesnt work:

window.onload = function () {
    window.parent.fnT('Some Info');
}


Can somebody help me, please.

Thanks in advance.


iomega 55
Top achievements
Rank 1
 answered on 05 Aug 2012
0 answers
46 views
I use Drag and drop demo on telerik site. But DetailTables get collaps after Drag and Drop after grid rebind. please help me
Anu
Top achievements
Rank 1
 asked on 04 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?