How to ajaxify Rad Button with in Rad Grid .

2 posts, 0 answers
  1. Sairam
    Sairam avatar
    56 posts
    Member since:
    May 2013

    Posted 21 May 2013 Link to this post

     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"><br>
            <AjaxSettings><br>
                <telerik:AjaxSetting AjaxControlID=" "><br>
                    <UpdatedControls><br>
                        <telerik:AjaxUpdatedControl ControlID=" " LoadingPanelID="RadAjaxLoadingPanel1" /><br>
                    </UpdatedControls><br>
                </telerik:AjaxSetting><br>
            </AjaxSettings><br>
        </telerik:RadAjaxManager><br>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"><br>
        </telerik:RadAjaxLoadingPanel><br>
    <br>
    <br>
    <telerik:RadGrid ID="RgCheckSetUp" runat="server"><br>
     <MasterTableView  AutoGenerateColumns="false" DataKeyNames="FedTaxID,FractionCode,chkNumber"><br>
     <telerik:GridTemplateColumn Visible="true" DataField="chkNumber" HeaderText="Check Number"<br>
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="chkNumber"><br>
                        <ItemTemplate><br>
                            <%# Eval("chkNumber")%><%--.ToString().PadLeft(4, '0')%>--%><br>
                        </ItemTemplate><br>
                        <InsertItemTemplate><br>
                            <telerik:RadTextBox ID="rdtxtchkNumber1" runat="server" Width="160px" MaxLength="4"<br>
                                onclick="shouldConfirm = true;" Text='<%# Eval("chkNumber") %>'><br>
                            </telerik:RadTextBox><br>
                            <telerik:RadButton ID="RbtnReset1" runat="server" Width="40px" AutoPostBack="true"<br>
                                CausesValidation="false" Text="Reset" OnClick="RbtnResetCheckNoinInsert_Click"><br>
                            </telerik:RadButton><br>
                            <asp:RequiredFieldValidator ID="rqrdchkNumber1" runat="server" SetFocusOnError="true"<br>
                                CssClass="error" ControlToValidate="rdtxtchkNumber1" ValidationGroup="g" ErrorMessage="Check number is required"></asp:RequiredFieldValidator><br>
                        </InsertItemTemplate><br>
                        <EditItemTemplate><br>
                            <telerik:RadTextBox ID="rdtxtchkNumber" runat="server" Width="160px" MaxLength="4"<br>
                                onclick="shouldConfirm = true;" Text='<%# Eval("chkNumber") %>'><br>
                            </telerik:RadTextBox><br>
                            <telerik:RadButton ID="RbtnReset" runat="server" Width="40px" AutoPostBack="true"<br>
                                CausesValidation="false" Text="Reset" OnClick="RbtnResetCheckNo_Click"><br>
                            </telerik:RadButton><br>
                        <br>
                            <asp:RequiredFieldValidator ID="rqrdchkNumber" runat="server" SetFocusOnError="true"<br>
                                CssClass="error" ControlToValidate="rdtxtchkNumber" ValidationGroup="g" ErrorMessage="Check number is required"></asp:RequiredFieldValidator><br>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
    <MasterTableView>
    </RadGrid>

    I dint' want to entire rad grid ajaxify ...I want to ajaxify only reset button of above one ,when in insert mode as well as ,In Edit Mode.
    In the above Grid, i have the async upload when ,I click on the reset button,Present I loos the image ,so I don't want loss the Image and also I want to Ajaxify the  reset Button only plz help me.
  2. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 24 May 2013 Link to this post

    Hello Sairam,

    The best approach is to ajaxify the whole grid. Check out the following ajax settings.
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RgCheckSetUp">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RgCheckSetUp" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top