This is a migrated thread and some comments may be shown as answers.

radajaxmanager keeping checkbox from postback

3 Answers 77 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 26 Aug 2008, 04:03 PM
I dont know where to look here to fix. I am using RadAjax Manager v1.8.2.0. I have a simple asp checkbox defined in the manager to update a callbackPanel:
<rada:radajaxmanager id="RadAjaxManager1" runat="server" DESIGNTIMEDRAGDROP="278">  
                <AjaxSettings> 
                    <rada:AjaxSetting AjaxControlID="lbtRefresh">  
                        <UpdatedControls> 
                            <rada:AjaxUpdatedControl ControlID="CallbackPanel1"></rada:AjaxUpdatedControl> 
                        </UpdatedControls> 
                    </rada:AjaxSetting> 
                    <rada:AjaxSetting AjaxControlID="lbPullCredit">  
                        <UpdatedControls> 
                            <rada:AjaxUpdatedControl ControlID="CallbackPanel1"></rada:AjaxUpdatedControl> 
                        </UpdatedControls> 
                    </rada:AjaxSetting> 
                    <rada:AjaxSetting AjaxControlID="cxShowAllSubmissions">  
                        <UpdatedControls> 
                            <rada:AjaxUpdatedControl ControlID="CallbackPanel1"></rada:AjaxUpdatedControl> 
                        </UpdatedControls> 
                    </rada:AjaxSetting> 
                    <rada:AjaxSetting AjaxControlID="DataGrid1">  
                        <UpdatedControls> 
                            <rada:AjaxUpdatedControl ControlID="CallbackPanel1"></rada:AjaxUpdatedControl> 
                        </UpdatedControls> 
                    </rada:AjaxSetting> 
                    <rada:AjaxSetting AjaxControlID="btClose">  
                        <UpdatedControls> 
                            <rada:AjaxUpdatedControl ControlID="CallbackPanel1"></rada:AjaxUpdatedControl> 
                        </UpdatedControls> 
                    </rada:AjaxSetting> 
                </AjaxSettings> 
                <ClientEvents OnResponseEnd="OnResponseEnd" OnRequestStart="OnRequestStart"></ClientEvents> 
            </rada:radajaxmanager> 
the checkbox is set with autopostback true
<TR> 
                                    <TD style="HEIGHT: 20px" vAlign="top">  
                                        <asp:CheckBox id="cxShowAllSubmissions" runat="server" Text="Show All Submissions" AutoPostBack="True"></asp:CheckBox></TD>  
                                </TR> 

and it is attached to event

private

void cxShowAllSubmissions_CheckedChanged(object sender, System.EventArgs e)

{

BindSubmissions(

false);

}
 in code behind.

so the problem is that the event does not fire when Manager has code above, but if remove then it fires. The problem is that i need that control ajaxafied. I am new to Telerik and am sure im just misusing somehow.

Any Suggestions would be great.

BTW this is a .Net 1.1 app

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 27 Aug 2008, 10:37 AM
Hello Scott,

Could you please elaborate a little bit more on your scenario. What kind of control is the "CallBackPanel1"? What is the required functionality you need to acheive? More info on your project will be very helpful to trace the problem.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Scott
Top achievements
Rank 1
answered on 27 Aug 2008, 03:33 PM

Basically the checkbox does nothing but updates the grid which is inside the CallBackPanel1 (this is a just a asp panel not the old telerik callbackpanel).

The checking of the checkbox needs to fire the event which runs the serverside event to repull the data and bind the grid . I want this ajaxified though which is the issue here.

If we have the ajaxmanager set to have the checkbox's container(which is a different panel), update the grid then it works.

<asp:Panel id=pnSubmissions runat="server" Width="100%">  
                                            <TABLE id=Table1 cellSpacing=5 cellPadding=0 border=0>  
                                            <TR> 
                                                <TD style="HEIGHT: 20px" vAlign=top>  
                                            <asp:CheckBox id=cxShowAllSubmissions runat="server" Text="Show All Submissions" Font-Size="X-Small" AutoPostBack="True"></asp:CheckBox></TD></TR> 
                                            <TR> 
                                                <TD vAlign=top>  
                                                <asp:DataGrid id=DataGrid1 runat="server" Font-Size="X-Small" PageSize="5" CellPadding="3" AutoGenerateColumns="False">  
                                                <AlternatingItemStyle BackColor="OldLace"></AlternatingItemStyle> 
                                                <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="Navy"></HeaderStyle> 
                                                <Columns> 
                                                    <asp:TemplateColumn> 
                                                        <HeaderStyle Width="15px"></HeaderStyle> 
                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                                        <ItemTemplate> 
                                                            <asp:Image id="imgCheck" runat="server" Visible="False" ImageUrl="Images/checkmark_5.jpg"></asp:Image> 
                                                        </ItemTemplate> 
                                                    </asp:TemplateColumn> 
                                                    <asp:TemplateColumn HeaderText="Date">  
                                                        <ItemTemplate> 
                                                            <asp:LinkButton id=LinkButton1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SubmitDate", "{0:G}") %>' CausesValidation="False" CommandName="Select" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ApplicationSubmitDetail_id") %>'>  
                                                            </asp:LinkButton> 
                                                        </ItemTemplate> 
                                                    </asp:TemplateColumn> 
                                                    <asp:TemplateColumn HeaderText="Valid">  
                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                                        <ItemTemplate> 
                                                            <asp:Label id="lbValid" runat="server" Font-Size="Small" Font-Bold="True">*</asp:Label> 
                                                        </ItemTemplate> 
                                                    </asp:TemplateColumn> 
                                                    <asp:BoundColumn DataField="Bureau" SortExpression="Bureau" HeaderText="Bureau"></asp:BoundColumn> 
                                                    <asp:BoundColumn DataField="CreditScore" SortExpression="CreditScore" HeaderText="Score"></asp:BoundColumn> 
                                                    <asp:BoundColumn DataField="Applicant" SortExpression="Applicant" HeaderText="Applicant"></asp:BoundColumn> 
                                                    <asp:BoundColumn DataField="SSN" SortExpression="SSN" HeaderText="SSN"></asp:BoundColumn> 
                                                    <asp:BoundColumn DataField="DateOfBirth" SortExpression="DateOfBirth" HeaderText="DOB" DataFormatString="{0:d}"></asp:BoundColumn> 
                                                    <asp:BoundColumn DataField="Address" SortExpression="Address" HeaderText="Address"></asp:BoundColumn> 
                                                    <asp:BoundColumn DataField="CSZ" SortExpression="CSZ" HeaderText="CSZ"></asp:BoundColumn> 
                                                    <asp:BoundColumn DataField="Description" SortExpression="Description" HeaderText="Housing Type" /> 
                                                    <asp:BoundColumn DataField="AddressYears" SortExpression="AddressYears" HeaderText="Address Years" /> 
                                                    <asp:BoundColumn DataField="EmployerName" SortExpression="EmployerName" HeaderText="Employer Name" /> 
                                                    <asp:BoundColumn DataField="CurrentJobYears" SortExpression="CurrentJobYears" HeaderText="Job Years" /> 
                                                </Columns> 
                                                <PagerStyle HorizontalAlign="Right" ForeColor="Navy" Mode="NumericPages"></PagerStyle> 
                                            </asp:DataGrid> 
                                        </TD> 
                                    </TR> 
                                    <TR> 
                                        <TD height=15></TD></TR>  
                                    <TR> 
                                        <TD align=center>  
                                            <asp:Button id=btClose runat="server" Text="Close"></asp:Button> 
                                        </TD> 
                                    </TR> 

Love 1.1 formatting. :)

All other controls EXCEPT the checkbox control seem to work just fine in the manager.

So to conclude process.
1. checkbox needs to be ajaxified
2. checkbox needs fire server side event(which updates grid/panel)

0
Maria Ilieva
Telerik team
answered on 28 Aug 2008, 12:33 PM
Hi Scott,

Would it be convenient for you to open a regular support ticket and send us small runnable project which replicates the problem. We will test it locally and advise you further.

Thank you.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Scott
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Scott
Top achievements
Rank 1
Share this question
or