Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
148 views
Hi.

I have a GridNumericColumn in a RadGrid that I put a lot of very small numbers in.

If i put 0.01 in edit mode everything is fine. If I put 0.001 in it is changed to 0 when my cursor leaves the box. If I put my cursor back in the box it displays 0.001 again. It saves the value fine but the behaviour will mislead users and is not ideal. How can I stop this happening?

And if I put in values as small as 0.00001, which is quite often, the row won't save at all. I click on update and nothing happens. I know the database field datatype is fine (decimal(18, 12)) because at the moment i have to go and enter the smaller values straight into the database table when the grid won't save. I have to enter values as small 0.000000001.

What can I do to get around this problem?
Thanks for your help. My code is below. It is the "Factor" GridNumericColumn that is giving me the problem...

<form id="form1" runat="server">
<div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <!-- content start -->
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="True" DataSourceID="SqlDataSource1" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" GridLines="None" ShowGroupPanel="True" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true">
        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
        <MasterTableView DataSourceID="SqlDataSource1" AutoGenerateColumns="False" DataKeyNames="EmissionFactorGroupID" AllowMultiColumnSorting="True" PageSize="20" CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText=" Add New Emission Factor Group" CommandItemSettings-ShowAddNewRecordButton="true" CommandItemSettings-ShowExportToExcelButton="true">
            <DetailTables>
                <telerik:GridTableView DataKeyNames="EmissionFactorID" DataSourceID="SqlDataSource2" Width="100%" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="false" CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText=" Add New Emission Factor" CommandItemSettings-ShowAddNewRecordButton="true">
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="EmissionFactorGroupID" MasterKeyField="EmissionFactorGroupID" />
                    </ParentTableRelation>
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="EmissionGasBreakdownID" DataSourceID="SqlDataSource3" Width="100%" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="false" CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText=" Add New Gas" CommandItemSettings-ShowAddNewRecordButton="true">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="EmissionFactorID" MasterKeyField="EmissionFactorID" />
                            </ParentTableRelation>
                            <Columns>
                                <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionGasBreakdownID" DataType="System.Int32" SortExpression="EmissionGasBreakdownID" UniqueName="EmissionGasBreakdownID">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorID" SortExpression="EmissionFactorID" UniqueName="EmissionFactorID" DataType="System.Int32">
                                </telerik:GridBoundColumn>
                                <telerik:GridDropDownColumn DropDownControlType="RadComboBox" DataType="System.Int32" DataField="GasID" HeaderText="Gas" SortExpression="GasID" UniqueName="GasID" DataSourceID="SqlDataSource4" ListTextField="GasName" ListValueField="EmissionGasID">
                                </telerik:GridDropDownColumn>
                                <telerik:GridNumericColumn DataField="Factor" DataType="System.Decimal" HeaderText="Factor" SortExpression="Factor" UniqueName="Factor" KeepNotRoundedValue="true">
                                </telerik:GridNumericColumn>
                                <telerik:GridBoundColumn DataField="UOM" HeaderText="UOM" SortExpression="UOM" UniqueName="UOM">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorID" DataType="System.Int32" HeaderText="EmissionFactorID" SortExpression="EmissionFactorID" UniqueName="EmissionFactorID">
                        </telerik:GridBoundColumn>
                        <telerik:GridNumericColumn DataField="Factor" DataType="System.Decimal" HeaderText="Factor" SortExpression="Factor" UniqueName="Factor" KeepNotRoundedValue="true" AllowRounding="false" NumericType="Number" DataFormatString="{0:0.0000000000}">
                        </telerik:GridNumericColumn>
                        <telerik:GridDateTimeColumn DataField="EffectiveFrom" DataType="System.DateTime" HeaderText="Effective From" SortExpression="EffectiveFrom" UniqueName="EffectiveFrom">
                        </telerik:GridDateTimeColumn>
                        <telerik:GridDateTimeColumn DataField="EffectiveTo" DataType="System.DateTime" HeaderText="Effective To" SortExpression="EffectiveTo" UniqueName="EffectiveTo">
                        </telerik:GridDateTimeColumn>
                        <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" UniqueName="Description">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Source" HeaderText="Source" SortExpression="Source" UniqueName="Source">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorGroupID" DataType="System.Int32" HeaderText="EmissionFactorGroupID" SortExpression="EmissionFactorGroupID" UniqueName="EmissionFactorGroupID">
                        </telerik:GridBoundColumn>
                        <telerik:GridNumericColumn DataField="IPCCTier" DataType="System.Byte" HeaderText="IPCC" SortExpression="IPCCTier" UniqueName="IPCCTier" HeaderStyle-Width="20px" ItemStyle-Width="20px" NumericType="Number">
                        </telerik:GridNumericColumn>
                    </Columns>
                    <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                    <ExpandCollapseColumn Visible="True">
                    </ExpandCollapseColumn>
                </telerik:GridTableView>
            </DetailTables>
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorGroupID" DataType="System.Int32" HeaderText="EmissionFactorGroupID" SortExpression="EmissionFactorGroupID" UniqueName="EmissionFactorGroupID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="GroupName" HeaderText="Group Name" SortExpression="GroupName" UniqueName="GroupName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ResourceType" HeaderText="Resource Type" SortExpression="ResourceType" UniqueName="ResourceType">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ResourceName" HeaderText="Name" SortExpression="ResourceName" UniqueName="ResourceName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ResourceUOM" HeaderText="UOM" SortExpression="ResourceUOM" UniqueName="ResourceUOM">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Region" HeaderText="Region" SortExpression="Region" UniqueName="Region">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="OwnerTenantID" HeaderText="Owner Tenant ID" SortExpression="OwnerTenantID" UniqueName="OwnerTenantID" DataType="System.Int32">
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DataField="Shared" DataType="System.Boolean" HeaderText="Shared" SortExpression="Shared" UniqueName="Shared">
                </telerik:GridCheckBoxColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings AllowDragToGroup="True">
        </ClientSettings>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" DeleteCommand="
    DELETE FROM [_FFEmissionGasBreakdown] WHERE [EmissionFactorID] IN (SELECT [EmissionFactorID] FROM [_FFEmissionFactor] WHERE ([EmissionFactorGroupID] = @EmissionFactorGroupID));
    DELETE FROM [_FFEmissionFactor] WHERE [EmissionFactorGroupID] = @EmissionFactorGroupID;
    DELETE FROM [_FFEmissionFactorGroupToGroupSetLink] WHERE [EmissionFactorGroupID] = @EmissionFactorGroupID;
    DELETE FROM [_FFEmissionFactorGroup] WHERE [EmissionFactorGroupID] = @EmissionFactorGroupID;
    " InsertCommand="
    INSERT INTO [_FFEmissionFactorGroup] ([GroupName], [ResourceType], [ResourceName], [ResourceUOM], [Region], [OwnerTenantID], [Shared]) VALUES (@GroupName, @ResourceType, @ResourceName, @ResourceUOM, @Region, @OwnerTenantID, @Shared);
    INSERT INTO [_FFEmissionFactorGroupToGroupSetLink] ([EmissionFactorGroupID], [EmissionFactorGroupSetID]) VALUES ((SELECT TOP 1 EmissionFactorGroupID FROM _FFEmissionFactorGroup ORDER BY EmissionFactorGroupID DESC), (SELECT TOP 1 EmissionFactorGroupSetID FROM _FFEmissionFactorGroupSet WHERE GroupSetOwnerTenantID = @OwnerTenantID));
    " SelectCommand="SELECT * FROM [_FFEmissionFactorGroup] WHERE ([OwnerTenantID] = @OwnerTenantID) ORDER BY [Region], [GroupName], [ResourceUOM]" UpdateCommand="UPDATE [_FFEmissionFactorGroup] SET [GroupName] = @GroupName, [ResourceType] = @ResourceType, [ResourceName] = @ResourceName, [ResourceUOM] = @ResourceUOM, [Region] = @Region, [OwnerTenantID] = @OwnerTenantID, [Shared] = @Shared WHERE [EmissionFactorGroupID] = @EmissionFactorGroupID">
        <SelectParameters>
            <asp:SessionParameter Name="OwnerTenantID" SessionField="OwnerTenantID" Type="Int32" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="EmissionFactorGroupID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="GroupName" Type="String" />
            <asp:Parameter Name="ResourceType" Type="String" />
            <asp:Parameter Name="ResourceName" Type="String" />
            <asp:Parameter Name="ResourceUOM" Type="String" />
            <asp:Parameter Name="Region" Type="String" />
            <asp:Parameter Name="OwnerTenantID" Type="Int32" />
            <asp:Parameter Name="Shared" Type="Boolean" />
            <asp:Parameter Name="EmissionFactorGroupID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="GroupName" Type="String" />
            <asp:Parameter Name="ResourceType" Type="String" />
            <asp:Parameter Name="ResourceName" Type="String" />
            <asp:Parameter Name="ResourceUOM" Type="String" />
            <asp:Parameter Name="Region" Type="String" />
            <asp:SessionParameter Name="OwnerTenantID" SessionField="OwnerTenantID" Type="Int32" />
            <asp:Parameter Name="Shared" Type="Boolean" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" SelectCommand="SELECT [EmissionFactorID], [Factor], [EffectiveFrom], [EffectiveTo], [Description], [Source], [EmissionFactorGroupID], [IPCCTier] FROM [_FFEmissionFactor] WHERE ([EmissionFactorGroupID] = @EmissionFactorGroupID) ORDER BY [EffectiveFrom], [Description]" DeleteCommand="DELETE FROM [_FFEmissionGasBreakdown] WHERE [EmissionFactorID] = @EmissionFactorID; DELETE FROM [_FFEmissionFactor] WHERE [EmissionFactorID] = @EmissionFactorID" InsertCommand="INSERT INTO [_FFEmissionFactor] ([Factor], [EffectiveFrom], [EffectiveTo], [Description], [Source], [EmissionFactorGroupID], [IPCCTier], [MaterialID]) VALUES (@Factor, @EffectiveFrom, @EffectiveTo, @Description, @Source, @EmissionFactorGroupID, @IPCCTier, 1)"
        UpdateCommand="UPDATE [_FFEmissionFactor] SET [Factor] = @Factor, [EffectiveFrom] = @EffectiveFrom, [EffectiveTo] = @EffectiveTo, [Description] = @Description, [Source] = @Source, [IPCCTier] = @IPCCTier WHERE [EmissionFactorID] = @EmissionFactorID">
        <SelectParameters>
            <asp:SessionParameter Name="EmissionFactorGroupID" SessionField="EmissionFactorGroupID" Type="Int32" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="EmissionFactorID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="Factor" Type="Decimal" />
            <asp:Parameter Name="EffectiveFrom" Type="DateTime" />
            <asp:Parameter Name="EffectiveTo" Type="DateTime" />
            <asp:Parameter Name="Description" Type="String" />
            <asp:Parameter Name="Source" Type="String" />
            <asp:SessionParameter Name="EmissionFactorGroupID" SessionField="EmissionFactorGroupID" Type="Int32" />
            <asp:Parameter Name="IPCCTier" Type="Byte" />
            <asp:Parameter Name="EmissionFactorID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Factor" Type="Decimal" />
            <asp:Parameter Name="EffectiveFrom" Type="DateTime" />
            <asp:Parameter Name="EffectiveTo" Type="DateTime" />
            <asp:Parameter Name="Description" Type="String" />
            <asp:Parameter Name="Source" Type="String" />
            <asp:Parameter Name="EmissionFactorGroupID" Type="Int32" />
            <asp:Parameter Name="IPCCTier" Type="Byte" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" DeleteCommand="DELETE FROM [_FFEmissionGasBreakdown] WHERE [EmissionGasBreakdownID] = @EmissionGasBreakdownID" InsertCommand="INSERT INTO [_FFEmissionGasBreakdown] ([EmissionFactorID], [GasID], [Factor], [UOM]) VALUES (@EmissionFactorID, @GasID, @Factor, @UOM)" SelectCommand="SELECT * FROM [_FFEmissionGasBreakdown] WHERE EmissionFactorID = @EmissionFactorID ORDER BY [GasID]" UpdateCommand="UPDATE [_FFEmissionGasBreakdown] SET [GasID] = @GasID, [Factor] = @Factor, [UOM] = @UOM WHERE [EmissionGasBreakdownID] = @EmissionGasBreakdownID">
        <SelectParameters>
            <asp:SessionParameter Name="EmissionFactorID" SessionField="EmissionFactorID" Type="String" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="EmissionGasBreakdownID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="GasID" Type="Int32" />
            <asp:Parameter Name="Factor" Type="Decimal" />
            <asp:Parameter Name="UOM" Type="String" />
            <asp:Parameter Name="EmissionGasBreakdownID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="EmissionFactorID" Type="Int32" />
            <asp:Parameter Name="GasID" Type="Int32" />
            <asp:Parameter Name="Factor" Type="Decimal" />
            <asp:Parameter Name="UOM" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" SelectCommand="SELECT EmissionGasID, GasName FROM _FFEmissionGas Order By GasName" />
</div>
</form>

Mira
Telerik team
 answered on 20 Jul 2011
1 answer
77 views
Hi there,

Iam using a Rad grid which has three hierarchial levels when iam trying to export data to excel it is exporting only parent data not the child data on searching of forums i found like hierarchyDefaultexpanded=true in source page with this onpage load the first level of the child getting expanded and on exporting it is sending the data with the first child only not the remaining two childs.What i want is like on page load the child shouldn't be expanded and on click of export button all childs must be exported.Here is the code iam using
gviewFormBlok.MasterTableView.HierarchyDefaultExpanded = true;
        gviewFormBlok.ExportSettings.ExportOnlyData = true;
        gviewFormBlok.ExportSettings.IgnorePaging = true;
         
          gviewFormBlok.ExportSettings.OpenInNewWindow = true;
  
        
          
  
          
        gviewFormBlok.MasterTableView.ExportToExcel();
Can you suggest me on how to achieve requirement and iam using Q3 2009 sp1 version
Mira
Telerik team
 answered on 20 Jul 2011
2 answers
80 views
We're working on a customized advanced form & running into what appears to be some strange behavior. For example, there are a couple of checkboxes in the advanced insert form which fire CheckChanged events, but the events are only fired every other time a user interacts with the checkbox (initial change fires event, second change does not, third does, etc). So, seems like perhaps the checkboxes are somehow only firing the events when their state has changed from their value when the form was created. Is this a state maintenance issue?

I have enabled ViewState on both the RadScheduler and then on the checkbox controls themselves (when they didnt appear to be inheriting that from the scheduler). Also, the scheduler is inside an AJAX update panel.

Thanks for your help!

Sean
Peter
Telerik team
 answered on 20 Jul 2011
2 answers
182 views
Hello,

I have a RadButton on my page which has an OnClientClicking function tied to it.  If I click the button with my mouse, this code is executed as expected.  However, at some points in my page I need to programmatically call the click event.  When I do this, the OnClientClicking is not being called.  OnClientClicked is fired, but I was hoping that the clicking event would be as well.  Is this the intended behavior of the RadButton, or is there something else other than 'click' that I need to call to get this event to fire?  Or is there a way to cancel an event in the 'onclientclicked' function so I can just use that and not the clicking event?  Below is a sample of what I'm talking about (not my exact code but hopefully should give you an idea of what is occuring). 

Thanks!
Richard

// button definition
<telerik:RadButton onclientclicking='Clicking' runat='server' text='Test' id="myButton" />

// javascript
function Clicking(sender, args)
{
   if (!confirm('Ok to continue this action?'))
       args.set_cancel(true);
}

// this function programically causes a click
function ProgramClick()
{
   var btn = $find('myButton');
   btn.click(); // the Clicking event will not be fired.
}
Richard
Top achievements
Rank 1
 answered on 20 Jul 2011
3 answers
85 views
If you add a table to a RadEditor in Firefox, and set its alignment to center, the drag handles remain left or right aligned with the edge of the editor, depending on where it was located prior to setting the alignment to center.

Please see the attached picture for an example.

I can only reproduce this in Firefox. I am using Firefox version 3.6.10, and Telerik version 2010.2.826
Rumen
Telerik team
 answered on 20 Jul 2011
2 answers
82 views
I have a grid tied to an EntityDataSource and can show the columns fine. One of the columns is a guid and I want to show a related table value instead of the guid. I include the related table in the EDS definitions. How do I refernce in the column? The following does not work. Thanks.

<telerik:GridBoundColumn DataField="it.Facility.FacilityName" DataType="System.String"

    FilterControlAltText="Filter Facility column" ReadOnly="True"

    HeaderText="Facility" SortExpression="Facility"

    UniqueName="Facility">
</
telerik:GridBoundColumn>

 

Genti
Telerik team
 answered on 20 Jul 2011
2 answers
272 views
hi dear telerik team :
i want to copy a textbox text property to another when typing (should be exactly the same)...
so please see the below codes (copy and paste and Test them) :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="keyup.Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <style type="text/css">
        fieldset
        {
            width:300px;
        }
        legend
        {
            color:Blue;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <fieldset>
            <legend>keyup</legend>
            <asp:TextBox ID="TextBox1" runat="server" onkeyup="onkeyup_TextBox1();"></asp:TextBox>
            <br />
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        </fieldset>
        <br />
        <br />
        <fieldset>
            <legend>keydown</legend>
            <asp:TextBox ID="TextBox3" runat="server" onkeydown="onkeydown_TextBox3();"></asp:TextBox>
            <br />
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
        </fieldset>
        <br />
        <br />
        <fieldset>
            <legend>keypress</legend>
            <asp:TextBox ID="TextBox5" runat="server" onkeypress="onkeypress_TextBox5();"></asp:TextBox>
            <br />
            <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
        </fieldset>
        <br />
        <br />
        <fieldset>
            <legend>Telerik - keyup</legend>
            <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" DataType="System.Int32"
                onkeyup="onkeyup_RadNumericTextBox1();">
                <NumberFormat DecimalDigits="0" />
            </telerik:RadNumericTextBox>
            <br />
            <telerik:RadNumericTextBox ID="RadNumericTextBox2" runat="server"
                DataType="System.Int32" Culture="fa-IR" Width="125px">
                <NumberFormat DecimalDigits="0" />
            </telerik:RadNumericTextBox>
        </fieldset>
    </div>
        <script type="text/javascript">
            function onkeyup_TextBox1() {
                $('#TextBox2').val($('#TextBox1').val());
            }
            function onkeydown_TextBox3() {
                $('#TextBox4').val($('#TextBox3').val());
            }
            function onkeypress_TextBox5() {
                $('#TextBox6').val($('#TextBox5').val());
            }
            function onkeyup_RadNumericTextBox1() {
                var RadNumericTextBox1 = $find("<%= RadNumericTextBox1.ClientID %>");
                var RadNumericTextBox2 = $find("<%= RadNumericTextBox2.ClientID %>");
 
                RadNumericTextBox2.set_value(RadNumericTextBox1.get_value());
            }
    </script>
    </form>
</body>
</html>


for my purpose onkeyup event on regular asp.net textbox controls is ok...
but it does n't work sometimes in telerik input controls!(there is no problem about onkeyup syntax , just when typing in first text box the other one have 1 character less , why ?)

which event should i use for telerik input controls for doing this job?

thanks in advance

Majid Darab
Top achievements
Rank 1
 answered on 20 Jul 2011
2 answers
71 views
Could you please show some examples of creating a context menu from server side code?

Thanks
Kate
Telerik team
 answered on 20 Jul 2011
1 answer
95 views
Hi Dear
I have project and use rad grid & menu to this project and work well.
but after publish project on windows 2003 server and run in IIS, I can log in and use project
and redirect the other page when i click in radmenu items don't navigate to other page
and go to Default page.

Thanks.

Peter
Telerik team
 answered on 20 Jul 2011
6 answers
90 views
Hi,
I’m using the Rad schedular in one of my pages. I'm using the advancedEditForm with no templates. I have one extra customized attribute called location. The problem I’m have is happening during editing an appointment or insert new one specifically when I click on the combos for "startdate", "starttime", "enddate" or "endtime" I get the following JavaScript error "Error: 'iframeShim.style' is null or not an object" when i debug the error i find it is happening in the following line "b.iframeShim.style.top=(RadHelperUtils.IsDefined(c))?(c+"px"):b.style.top; " within the ScriptResource.axd file
I can't undertand why is this error hapening. The telerik dll version I'm using is 2010.1.519.35. Could you pleae helpmeon this matter.
Thanks,
Nasiem
Peter
Telerik team
 answered on 20 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?