Radnumerictextbox align right

33 posts, 0 answers
  1. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Feb 2014 in reply to Romi Link to this post

    Hi Romi,

    Please try to ajaxify the RadGrid to avoid postback while paging. Please have a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true">
        <ContentTemplate>
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false"      DataSourceID="SqlDataSource1" AllowPaging="true">
                <MasterTableView DataKeyNames="OrderDate" CommandItemDisplay="Top">
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="OrderID" DataField="OrderID" HeaderText="OrderID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" UniqueName="ShipCity" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Northwind_newConnectionString%>"
                SelectCommand="SELECT  * FROM [Orders]"></asp:SqlDataSource>
        </ContentTemplate>
    </telerik:RadWindow>

    Thanks,
    Princy.
  2. Romi
    Romi avatar
    21 posts
    Member since:
    Sep 2012

    Posted 12 Feb 2014 in reply to Princy Link to this post

    Hi,

    I want to make Radnumerictextbox readonly.In IE its image is blinking.How to make its image disabled also in case of readonly.

    Thanks
    Romi
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Feb 2014 in reply to Romi Link to this post

    Hi Romi,

    You can handle the OnError event of RadNumericTextBox to hide the warning image as follows.

    ASPX:
    <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" ReadOnly="true"
        ClientEvents-OnError="OnError">
    </telerik:RadNumericTextBox>

    JavaScript:
    <script type="text/javascript">
        function OnError(sender, args) {
            args.set_cancel(true);
        }
    </script>

    Thanks,
    Princy.
Back to Top